From 5651d8761d4d3d44f3a2cc1aee92984f97bb8090 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 1 Jun 2022 17:01:30 +0900 Subject: [PATCH] AP_Mount: remove unimplemented send_gimbal_report --- libraries/AP_Mount/AP_Mount.cpp | 10 ---------- libraries/AP_Mount/AP_Mount.h | 3 --- libraries/AP_Mount/AP_Mount_Backend.h | 3 --- libraries/AP_Mount/AP_Mount_SoloGimbal.cpp | 7 ------- libraries/AP_Mount/AP_Mount_SoloGimbal.h | 3 --- 5 files changed, 26 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index 56e2536a60..6cbde41ba9 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -734,16 +734,6 @@ void AP_Mount::handle_param_value(const mavlink_message_t &msg) } } -// send a GIMBAL_REPORT message to the GCS -void AP_Mount::send_gimbal_report(mavlink_channel_t chan) -{ - for (uint8_t instance=0; instancesend_gimbal_report(chan); - } - } -} - // singleton instance AP_Mount *AP_Mount::_singleton; diff --git a/libraries/AP_Mount/AP_Mount.h b/libraries/AP_Mount/AP_Mount.h index 8d189110ae..ae0a9c86a0 100644 --- a/libraries/AP_Mount/AP_Mount.h +++ b/libraries/AP_Mount/AP_Mount.h @@ -132,9 +132,6 @@ public: void handle_param_value(const mavlink_message_t &msg); void handle_message(mavlink_channel_t chan, const mavlink_message_t &msg); - // send a GIMBAL_REPORT message to GCS - void send_gimbal_report(mavlink_channel_t chan); - // send a MOUNT_STATUS message to GCS: void send_mount_status(mavlink_channel_t chan); diff --git a/libraries/AP_Mount/AP_Mount_Backend.h b/libraries/AP_Mount/AP_Mount_Backend.h index 821bf56871..e657da20b0 100644 --- a/libraries/AP_Mount/AP_Mount_Backend.h +++ b/libraries/AP_Mount/AP_Mount_Backend.h @@ -79,9 +79,6 @@ public: // handle a PARAM_VALUE message virtual void handle_param_value(const mavlink_message_t &msg) {} - // send a GIMBAL_REPORT message to the GCS - virtual void send_gimbal_report(const mavlink_channel_t chan) {} - // handle a GLOBAL_POSITION_INT message bool handle_global_position_int(uint8_t msg_sysid, const mavlink_global_position_int_t &packet); diff --git a/libraries/AP_Mount/AP_Mount_SoloGimbal.cpp b/libraries/AP_Mount/AP_Mount_SoloGimbal.cpp index 5b636f0e22..cd271f8fe5 100644 --- a/libraries/AP_Mount/AP_Mount_SoloGimbal.cpp +++ b/libraries/AP_Mount/AP_Mount_SoloGimbal.cpp @@ -159,11 +159,4 @@ void AP_Mount_SoloGimbal::handle_gimbal_torque_report(mavlink_channel_t chan, co _gimbal.disable_torque_report(); } -/* - send a GIMBAL_REPORT message to the GCS - */ -void AP_Mount_SoloGimbal::send_gimbal_report(mavlink_channel_t chan) -{ -} - #endif // HAL_SOLO_GIMBAL_ENABLED diff --git a/libraries/AP_Mount/AP_Mount_SoloGimbal.h b/libraries/AP_Mount/AP_Mount_SoloGimbal.h index d8238f0fa0..686f78a521 100644 --- a/libraries/AP_Mount/AP_Mount_SoloGimbal.h +++ b/libraries/AP_Mount/AP_Mount_SoloGimbal.h @@ -43,9 +43,6 @@ public: void handle_gimbal_torque_report(mavlink_channel_t chan, const mavlink_message_t &msg); void handle_param_value(const mavlink_message_t &msg) override; - // send a GIMBAL_REPORT message to the GCS - void send_gimbal_report(mavlink_channel_t chan) override; - void update_fast() override; private: