Skip to content

Commit

Permalink
[autopilot] unkill in manual was not possible when AP_MODE_STARTING i…
Browse files Browse the repository at this point in the history
…s AP_MODE_KILL
  • Loading branch information
dewagter committed Dec 15, 2014
1 parent bef1557 commit 1bd5ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/firmwares/rotorcraft/autopilot.c
Expand Up @@ -515,8 +515,8 @@ void autopilot_on_rc_frame(void) {
/* an arming sequence is used to start/stop motors.
* only allow switching motor if not in KILL mode and ahrs is aligned
*/
autopilot_arming_check_motors_on();
if (autopilot_mode != AP_MODE_KILL && ahrs_is_aligned()) {
autopilot_arming_check_motors_on();
kill_throttle = ! autopilot_motors_on;
}

Expand Down

0 comments on commit 1bd5ba8

Please sign in to comment.