diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 4654aa11f7..a003110297 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -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; diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 85e5ff1379..c4450d1bb7 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -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;