Browse Source

Sub: Remove unused command_ack_counter

master
Jacob Walser 8 years ago
parent
commit
697b095e99
  1. 5
      ArduSub/GCS_Mavlink.cpp
  2. 3
      ArduSub/Sub.h

5
ArduSub/GCS_Mavlink.cpp

@ -1475,11 +1475,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg) @@ -1475,11 +1475,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
break;
}
case MAVLINK_MSG_ID_COMMAND_ACK: { // MAV ID: 77
sub.command_ack_counter++;
break;
}
case MAVLINK_MSG_ID_SET_ATTITUDE_TARGET: { // MAV ID: 82
// decode packet
mavlink_set_attitude_target_t packet;

3
ArduSub/Sub.h

@ -145,9 +145,6 @@ private: @@ -145,9 +145,6 @@ private:
// AP_Notify instance
AP_Notify notify;
// used to detect MAVLink acks from GCS to stop compassmot
uint8_t command_ack_counter;
// has a log download started?
bool in_log_download;

Loading…
Cancel
Save