mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_PX4: fix UAVCAN armed state to depend on safety switch
This commit is contained in:
parent
e7bd64b7d6
commit
7dca7933fa
@ -499,8 +499,7 @@ void PX4RCOutput::_send_outputs(void)
|
||||
ap_uc->rco_write(_period[i], i);
|
||||
}
|
||||
|
||||
bool armed = hal.util->get_soft_armed();
|
||||
if (armed) {
|
||||
if (hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_DISARMED) {
|
||||
ap_uc->rco_arm_actuators(true);
|
||||
} else {
|
||||
ap_uc->rco_arm_actuators(false);
|
||||
|
Loading…
Reference in New Issue
Block a user