Tracker: move handling of MAG_CAL command longs up

This commit is contained in:
Peter Barker 2017-07-17 10:47:16 +10:00 committed by Francisco Ferreira
parent 3586f0e8fb
commit 663d454119
2 changed files with 6 additions and 6 deletions

View File

@ -657,12 +657,6 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg)
break;
}
case MAV_CMD_DO_START_MAG_CAL:
case MAV_CMD_DO_ACCEPT_MAG_CAL:
case MAV_CMD_DO_CANCEL_MAG_CAL:
result = tracker.compass.handle_mag_cal_command(packet);
break;
case MAV_CMD_ACCELCAL_VEHICLE_POS:
result = MAV_RESULT_FAILED;
@ -904,3 +898,8 @@ void Tracker::gcs_retry_deferred(void)
gcs().send_message(MSG_RETRY_DEFERRED);
gcs().service_statustext();
}
Compass *GCS_MAVLINK_Tracker::get_compass() const
{
return &tracker.compass;
}

View File

@ -16,6 +16,7 @@ protected:
// as currently Tracker may brick XBees
uint32_t telem_delay() const override { return 0; }
Compass *get_compass() const override;
AP_Mission *get_mission() override { return nullptr; };
AP_Rally *get_rally() const override { return nullptr; };
AP_ServoRelayEvents *get_servorelayevents() const override { return nullptr; }