mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
enable PWM with safety switch off
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user