From 68aa5e468254aa50340cfcf474f6fcc7265529b9 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Wed, 28 Nov 2012 21:38:58 +0800 Subject: [PATCH] AC add ability to start new accel_scale via mavlink --- ArduCopter/GCS_Mavlink.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index cef9b22373..6bfa7d8422 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -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;