Browse Source

AP_Mount: remove unimplemented send_gimbal_report

apm_2208
Randy Mackay 3 years ago committed by Andrew Tridgell
parent
commit
5651d8761d
  1. 10
      libraries/AP_Mount/AP_Mount.cpp
  2. 3
      libraries/AP_Mount/AP_Mount.h
  3. 3
      libraries/AP_Mount/AP_Mount_Backend.h
  4. 7
      libraries/AP_Mount/AP_Mount_SoloGimbal.cpp
  5. 3
      libraries/AP_Mount/AP_Mount_SoloGimbal.h

10
libraries/AP_Mount/AP_Mount.cpp

@ -734,16 +734,6 @@ void AP_Mount::handle_param_value(const mavlink_message_t &msg) @@ -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; instance<AP_MOUNT_MAX_INSTANCES; instance++) {
if (_backends[instance] != nullptr) {
_backends[instance]->send_gimbal_report(chan);
}
}
}
// singleton instance
AP_Mount *AP_Mount::_singleton;

3
libraries/AP_Mount/AP_Mount.h

@ -132,9 +132,6 @@ public: @@ -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);

3
libraries/AP_Mount/AP_Mount_Backend.h

@ -79,9 +79,6 @@ public: @@ -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);

7
libraries/AP_Mount/AP_Mount_SoloGimbal.cpp

@ -159,11 +159,4 @@ void AP_Mount_SoloGimbal::handle_gimbal_torque_report(mavlink_channel_t chan, co @@ -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

3
libraries/AP_Mount/AP_Mount_SoloGimbal.h

@ -43,9 +43,6 @@ public: @@ -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:

Loading…
Cancel
Save