mirror of https://github.com/ArduPilot/ardupilot
Tracker: use AP::ahrs() for GCS_MAVLink
This commit is contained in:
parent
5671b3173e
commit
0d04e916a1
|
@ -180,11 +180,6 @@ bool GCS_MAVLINK_Tracker::try_send_message(enum ap_message id)
|
|||
tracker.send_location(chan);
|
||||
break;
|
||||
|
||||
case MSG_LOCAL_POSITION:
|
||||
CHECK_PAYLOAD_SIZE(LOCAL_POSITION_NED);
|
||||
send_local_position(tracker.ahrs);
|
||||
break;
|
||||
|
||||
case MSG_NAV_CONTROLLER_OUTPUT:
|
||||
CHECK_PAYLOAD_SIZE(NAV_CONTROLLER_OUTPUT);
|
||||
tracker.send_nav_controller_output(chan);
|
||||
|
@ -215,11 +210,6 @@ bool GCS_MAVLINK_Tracker::try_send_message(enum ap_message id)
|
|||
send_sensor_offsets(tracker.ins, tracker.compass, tracker.barometer);
|
||||
break;
|
||||
|
||||
case MSG_AHRS:
|
||||
CHECK_PAYLOAD_SIZE(AHRS);
|
||||
send_ahrs(tracker.ahrs);
|
||||
break;
|
||||
|
||||
case MSG_SIMSTATE:
|
||||
CHECK_PAYLOAD_SIZE(SIMSTATE);
|
||||
tracker.send_simstate(chan);
|
||||
|
|
Loading…
Reference in New Issue