Skip to content
Snippets Groups Projects
Commit 8dfbb43e authored by Miguel Arroyo's avatar Miguel Arroyo Committed by Lorenz Meier
Browse files

Adds Navio Kill Switch Logic (#5461)

parent 06bfecd8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment