AntennaTracker: add support for mavlink in-progress message

This commit is contained in:
Peter Barker 2022-12-08 17:47:13 +11:00 committed by Peter Barker
parent 11ec22900b
commit 2f15b79619
2 changed files with 3 additions and 3 deletions

View File

@ -402,9 +402,9 @@ uint8_t GCS_MAVLINK_Tracker::sysid_my_gcs() const
return tracker.g.sysid_my_gcs;
}
MAV_RESULT GCS_MAVLINK_Tracker::_handle_command_preflight_calibration_baro()
MAV_RESULT GCS_MAVLINK_Tracker::_handle_command_preflight_calibration_baro(const mavlink_message_t &msg)
{
MAV_RESULT ret = GCS_MAVLINK::_handle_command_preflight_calibration_baro();
MAV_RESULT ret = GCS_MAVLINK::_handle_command_preflight_calibration_baro(msg);
if (ret == MAV_RESULT_ACCEPTED) {
// zero the altitude difference on next baro update
tracker.nav_status.need_altitude_calibration = true;

View File

@ -19,7 +19,7 @@ protected:
uint8_t sysid_my_gcs() const override;
MAV_RESULT handle_command_component_arm_disarm(const mavlink_command_long_t &packet) override;
MAV_RESULT _handle_command_preflight_calibration_baro() override;
MAV_RESULT _handle_command_preflight_calibration_baro(const mavlink_message_t &msg) override;
MAV_RESULT handle_command_long_packet(const mavlink_command_long_t &packet) override;
int32_t global_position_int_relative_alt() const override {