From 663d454119dac70af3968c82acf3b365f6927a3d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 17 Jul 2017 10:47:16 +1000 Subject: [PATCH] Tracker: move handling of MAG_CAL command longs up --- AntennaTracker/GCS_Mavlink.cpp | 11 +++++------ AntennaTracker/GCS_Mavlink.h | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AntennaTracker/GCS_Mavlink.cpp b/AntennaTracker/GCS_Mavlink.cpp index 4ef606b19d..07844dfd79 100644 --- a/AntennaTracker/GCS_Mavlink.cpp +++ b/AntennaTracker/GCS_Mavlink.cpp @@ -657,12 +657,6 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg) break; } - case MAV_CMD_DO_START_MAG_CAL: - case MAV_CMD_DO_ACCEPT_MAG_CAL: - case MAV_CMD_DO_CANCEL_MAG_CAL: - result = tracker.compass.handle_mag_cal_command(packet); - break; - case MAV_CMD_ACCELCAL_VEHICLE_POS: result = MAV_RESULT_FAILED; @@ -904,3 +898,8 @@ void Tracker::gcs_retry_deferred(void) gcs().send_message(MSG_RETRY_DEFERRED); gcs().service_statustext(); } + +Compass *GCS_MAVLINK_Tracker::get_compass() const +{ + return &tracker.compass; +} diff --git a/AntennaTracker/GCS_Mavlink.h b/AntennaTracker/GCS_Mavlink.h index 943269cb01..64ac42d053 100644 --- a/AntennaTracker/GCS_Mavlink.h +++ b/AntennaTracker/GCS_Mavlink.h @@ -16,6 +16,7 @@ protected: // as currently Tracker may brick XBees uint32_t telem_delay() const override { return 0; } + Compass *get_compass() const override; AP_Mission *get_mission() override { return nullptr; }; AP_Rally *get_rally() const override { return nullptr; }; AP_ServoRelayEvents *get_servorelayevents() const override { return nullptr; }