mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 06:18:52 +08:00
mavlink: don't send out GPS_GLOBAL_ORIGIN too early (#26115)
This prevents PX4 from sending out the GPS_GLOBAL_ORIGIN message immediately when a SET_GPS_GLOBAL_ORIGIN message arrives. Instead, we apply the new origin in the EKF, and only then send out the new origin, which is much more intuitive and doesn't confuse a user of the API.
This commit is contained in:
@@ -1283,8 +1283,6 @@ MavlinkReceiver::handle_message_set_gps_global_origin(mavlink_message_t *msg)
|
||||
vcmd.timestamp = hrt_absolute_time();
|
||||
_cmd_pub.publish(vcmd);
|
||||
}
|
||||
|
||||
handle_request_message_command(MAVLINK_MSG_ID_GPS_GLOBAL_ORIGIN);
|
||||
}
|
||||
|
||||
#if defined(MAVLINK_MSG_ID_SET_VELOCITY_LIMITS) // For now only defined if development.xml is used
|
||||
|
||||
Reference in New Issue
Block a user