From 2f15b796199889a49a29b5d6ff93ac5b5f4790f0 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 8 Dec 2022 17:47:13 +1100 Subject: [PATCH] AntennaTracker: add support for mavlink in-progress message --- AntennaTracker/GCS_Mavlink.cpp | 4 ++-- AntennaTracker/GCS_Mavlink.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 77ce8d112f..02c48c6b94 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -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; diff --git a/AntennaTracker/GCS_Mavlink.h b/AntennaTracker/GCS_Mavlink.h index 82eb4ce0eb..5dcaaeda49 100644 --- a/AntennaTracker/GCS_Mavlink.h +++ b/AntennaTracker/GCS_Mavlink.h @@ -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 {