AC add ability to start new accel_scale via mavlink

This commit is contained in:
Michael Oborne 2012-11-28 21:38:58 +08:00
parent 3ea89eb987
commit 68aa5e4682

View File

@ -1095,6 +1095,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
if (packet.param4 == 1) {
trim_radio();
}
if (packet.param5 == 1) {
// this blocks
ins.calibrate_accel(mavlink_delay, flash_leds, gcs_send_text_fmt, setup_wait_key);
}
result = MAV_RESULT_ACCEPTED;
break;