Skip to content

Commit

Permalink
[arming] Fix auto-rearm incase of accidental kill
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed Oct 18, 2023
1 parent f8eb958 commit d3f3638
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/firmwares/rotorcraft/autopilot_arming_yaw.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ static inline void autopilot_arming_check_motors_on(void)
// If the vehicle was killed accidentally, allow rapid re-arm
if ( (get_sys_time_float() - motor_kill_time) < MOTOR_RE_ARM_TIME) {
autopilot_check_motor_status = STATUS_MOTORS_ON;
autopilot.motors_on = true; // Bypass preflight-checks and force the motors on
} else {
autopilot_check_motor_status = STATUS_MOTORS_AUTOMATICALLY_OFF;
autopilot_arming_motors_on(false);
Expand Down

0 comments on commit d3f3638

Please sign in to comment.