Skip to content

Commit

Permalink
Copter: lock qbert forward during level cal
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehines committed Sep 16, 2016
1 parent 65b142f commit 29ff0d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ArduCopter/calibrations.pde
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 29ff0d7

Please sign in to comment.