Plane: support simple accelcal

This commit is contained in:
Andrew Tridgell 2017-06-17 15:22:55 +10:00
parent f25e8631ef
commit f81ec9b1b3
1 changed files with 3 additions and 0 deletions

View File

@ -1204,6 +1204,9 @@ void GCS_MAVLINK_Plane::handleMessage(mavlink_message_t* msg)
} else {
result = MAV_RESULT_FAILED;
}
} else if (is_equal(packet.param5,4.0f)) {
// simple accel calibration
result = plane.ins.simple_accel_cal(plane.ahrs);
}
else {
send_text(MAV_SEVERITY_WARNING, "Unsupported preflight calibration");