Browse Source

Adds Navio Kill Switch Logic (#5461)

sbg
Miguel Arroyo 9 years ago committed by Lorenz Meier
parent
commit
8dfbb43e00
  1. 8
      src/drivers/navio_sysfs_pwm_out/navio_sysfs_pwm_out.cpp

8
src/drivers/navio_sysfs_pwm_out/navio_sysfs_pwm_out.cpp

@ -360,7 +360,13 @@ void task_main(int argc, char *argv[]) @@ -360,7 +360,13 @@ void task_main(int argc, char *argv[])
pwm,
&_pwm_limit);
send_outputs_pwm(pwm);
if (_armed.lockdown) {
send_outputs_pwm(disarmed_pwm);
} else {
send_outputs_pwm(pwm);
}
if (_outputs_pub != nullptr) {
orb_publish(ORB_ID(actuator_outputs), _outputs_pub, &_outputs);

Loading…
Cancel
Save