Tracker: use AP::ahrs() for GCS_MAVLink

This commit is contained in:
Peter Barker 2018-01-06 14:47:21 +11:00 committed by Francisco Ferreira
parent 5671b3173e
commit 0d04e916a1
1 changed files with 0 additions and 10 deletions

View File

@ -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);