From 29ff0d7b45cb3e9ac50aeea91654ac3d1473b8b7 Mon Sep 17 00:00:00 2001 From: George Hines Date: Fri, 16 Sep 2016 09:31:33 -0700 Subject: [PATCH] Copter: lock qbert forward during level cal --- ArduCopter/calibrations.pde | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArduCopter/calibrations.pde b/ArduCopter/calibrations.pde index 2d76722462..6bd089ce04 100644 --- a/ArduCopter/calibrations.pde +++ b/ArduCopter/calibrations.pde @@ -34,6 +34,10 @@ static void compass_cal_update() { static void accel_cal_update() { accelcal.update(); + if( accelcal.get_status() == ACCEL_CAL_WAITING_FOR_ORIENTATION || accelcal.get_status() == ACCEL_CAL_COLLECTING_SAMPLE ) { + camera_mount.set_mode(MAV_MOUNT_MODE_NEUTRAL); + } + if (motors.armed() && accelcal.get_status() != ACCEL_CAL_NOT_STARTED) { accelcal.clear(); }