Skip to content

Commit

Permalink
Copter: lock gimbal forward during compass cal, default to RC targeting
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehines committed Sep 16, 2016
1 parent cd35922 commit 65b142f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ArduCopter/calibrations.pde
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static void compass_cal_update() {

static bool cal_has_run = false;
if (compass.is_calibrating()) {
camera_mount.set_mode(MAV_MOUNT_MODE_RETRACT);
camera_mount.set_mode(MAV_MOUNT_MODE_NEUTRAL);
cal_has_run = true;
if(!motors.armed() && g.rc_4.control_in < -4000 && g.rc_3.control_in > 900) {
compass.cancel_calibration_all();
Expand Down
1 change: 0 additions & 1 deletion mk/PX4/ROMFS/defaults.parm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ LOG_BACKEND_TYPE, 3.00000
LOG_BITMASK, 131070.000000
MNT_ANGMAX_TIL, 0.000000
MNT_ANGMIN_TIL, -9000.000000
MNT_DEFLT_MODE, 1.0
MNT_RC_IN_TILT, 6.000000
MNT_TYPE, 2.000000
MOT_CURR_MAX, 42.000000
Expand Down

0 comments on commit 65b142f

Please sign in to comment.