Tracker: support MAV_CMD_ACCELCAL_VEHICLE_POS

This commit is contained in:
Francisco Ferreira 2016-11-12 09:49:46 +00:00 committed by Tom Pittenger
parent e870c4bf99
commit 2879e78230

View File

@ -680,6 +680,14 @@ void GCS_MAVLINK_Tracker::handleMessage(mavlink_message_t* msg)
result = tracker.compass.handle_mag_cal_command(packet);
break;
case MAV_CMD_ACCELCAL_VEHICLE_POS:
result = MAV_RESULT_FAILED;
if (tracker.ins.get_acal()->gcs_vehicle_position(packet.param1)) {
result = MAV_RESULT_ACCEPTED;
}
break;
default:
break;
}