Blimp: remove unused command_ack counter

This commit is contained in:
Peter Barker 2021-04-01 19:41:39 +11:00 committed by Andrew Tridgell
parent 051be6c160
commit c064e09806
3 changed files with 0 additions and 10 deletions

View File

@ -126,9 +126,6 @@ private:
Parameters g; Parameters g;
ParametersG2 g2; ParametersG2 g2;
// used to detect MAVLink acks from GCS to stop compassmot
uint8_t command_ack_counter;
// primary input control channels // primary input control channels
RC_Channel *channel_right; RC_Channel *channel_right;
RC_Channel *channel_front; RC_Channel *channel_front;

View File

@ -484,12 +484,6 @@ void GCS_MAVLINK_Blimp::handle_rc_channels_override(const mavlink_message_t &msg
GCS_MAVLINK::handle_rc_channels_override(msg); GCS_MAVLINK::handle_rc_channels_override(msg);
} }
void GCS_MAVLINK_Blimp::handle_command_ack(const mavlink_message_t &msg)
{
blimp.command_ack_counter++;
GCS_MAVLINK::handle_command_ack(msg);
}
MAV_RESULT GCS_MAVLINK_Blimp::_handle_command_preflight_calibration(const mavlink_command_long_t &packet) MAV_RESULT GCS_MAVLINK_Blimp::_handle_command_preflight_calibration(const mavlink_command_long_t &packet)
{ {
return GCS_MAVLINK::_handle_command_preflight_calibration(packet); return GCS_MAVLINK::_handle_command_preflight_calibration(packet);

View File

@ -47,7 +47,6 @@ protected:
private: private:
void handleMessage(const mavlink_message_t &msg) override; void handleMessage(const mavlink_message_t &msg) override;
void handle_command_ack(const mavlink_message_t &msg) override;
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override; bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override; void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
void handle_rc_channels_override(const mavlink_message_t &msg) override; void handle_rc_channels_override(const mavlink_message_t &msg) override;