enable PWM with safety switch off

This commit is contained in:
Mark Whitehorn
2016-02-29 11:11:38 -07:00
parent 7adaccfe67
commit 29b0520263

View File

@@ -1110,7 +1110,7 @@ PX4FMU::cycle()
_throttle_armed = _safety_off && _armed.armed && !_armed.lockdown;
/* update PWM status if armed or if disarmed PWM values are set */
bool pwm_on = _safety_off && (_armed.armed || _num_disarmed_set > 0);
bool pwm_on = _armed.armed || _num_disarmed_set > 0;
if (_pwm_on != pwm_on) {
_pwm_on = pwm_on;