mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tracker: move handling of MAG_CAL command longs up
This commit is contained in:
parent
3586f0e8fb
commit
663d454119
@ -657,12 +657,6 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg)
|
|||||||
break;
|
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:
|
case MAV_CMD_ACCELCAL_VEHICLE_POS:
|
||||||
result = MAV_RESULT_FAILED;
|
result = MAV_RESULT_FAILED;
|
||||||
|
|
||||||
@ -904,3 +898,8 @@ void Tracker::gcs_retry_deferred(void)
|
|||||||
gcs().send_message(MSG_RETRY_DEFERRED);
|
gcs().send_message(MSG_RETRY_DEFERRED);
|
||||||
gcs().service_statustext();
|
gcs().service_statustext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Compass *GCS_MAVLINK_Tracker::get_compass() const
|
||||||
|
{
|
||||||
|
return &tracker.compass;
|
||||||
|
}
|
||||||
|
@ -16,6 +16,7 @@ protected:
|
|||||||
// as currently Tracker may brick XBees
|
// as currently Tracker may brick XBees
|
||||||
uint32_t telem_delay() const override { return 0; }
|
uint32_t telem_delay() const override { return 0; }
|
||||||
|
|
||||||
|
Compass *get_compass() const override;
|
||||||
AP_Mission *get_mission() override { return nullptr; };
|
AP_Mission *get_mission() override { return nullptr; };
|
||||||
AP_Rally *get_rally() const override { return nullptr; };
|
AP_Rally *get_rally() const override { return nullptr; };
|
||||||
AP_ServoRelayEvents *get_servorelayevents() const override { return nullptr; }
|
AP_ServoRelayEvents *get_servorelayevents() const override { return nullptr; }
|
||||||
|
Loading…
Reference in New Issue
Block a user