mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
Adds Navio Kill Switch Logic (#5461)
This commit is contained in:
committed by
Lorenz Meier
parent
06bfecd829
commit
8dfbb43e00
@@ -360,7 +360,13 @@ void task_main(int argc, char *argv[])
|
|||||||
pwm,
|
pwm,
|
||||||
&_pwm_limit);
|
&_pwm_limit);
|
||||||
|
|
||||||
send_outputs_pwm(pwm);
|
|
||||||
|
if (_armed.lockdown) {
|
||||||
|
send_outputs_pwm(disarmed_pwm);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
send_outputs_pwm(pwm);
|
||||||
|
}
|
||||||
|
|
||||||
if (_outputs_pub != nullptr) {
|
if (_outputs_pub != nullptr) {
|
||||||
orb_publish(ORB_ID(actuator_outputs), _outputs_pub, &_outputs);
|
orb_publish(ORB_ID(actuator_outputs), _outputs_pub, &_outputs);
|
||||||
|
|||||||
Reference in New Issue
Block a user