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:
Julian Oes
2025-12-30 07:31:00 +13:00
committed by GitHub
parent 1e618a7eb0
commit aa850d5c1c
-2
View File
@@ -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