Skip to content

Commit

Permalink
mavlink receiver: fix HITL home pos ref
Browse files Browse the repository at this point in the history
  • Loading branch information
haitomatic committed Jun 12, 2024
1 parent e6b3915 commit 60b79f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2348,9 +2348,9 @@ MavlinkReceiver::handle_message_hil_gps(mavlink_message_t *msg)

if (_mavlink->get_hil_enabled()) {
_hitl_sim_gps_time_usec = hil_gps.time_usec;
_hitl_sim_home_lat = hil_gps.lat;
_hitl_sim_home_lon = hil_gps.lon;
_hitl_sim_home_alt = hil_gps.alt;
_hitl_sim_home_lat = hil_gps.lat / 1e7;
_hitl_sim_home_lon = hil_gps.lon / 1e7;
_hitl_sim_home_alt = hil_gps.alt / 1e3f;

} else {
sensor_gps_s gps{};
Expand Down

0 comments on commit 60b79f0

Please sign in to comment.