mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 00:21:36 +08:00
Implement RC and DL failsafe action handling for multirotors
Move RC and DL failsafe actions handling from navigator to commander (credits to @AndreasAntener) Separate manual kill switch handling via manual_lockdown to prevent override and release of software lockdown by RC switch Other changes: Add failsafe tune Fix LED blinking for Pixracer Return back support for rc inputs in simulator but now it is configurable via cmake
This commit is contained in:
committed by
Lorenz Meier
parent
964dabe179
commit
3a17c07b1e
@@ -1462,11 +1462,11 @@ PX4IO::io_set_arming_state()
|
||||
|
||||
_armed = armed.armed;
|
||||
|
||||
if (armed.lockdown && !_lockdown_override) {
|
||||
if ((armed.lockdown || armed.manual_lockdown) && !_lockdown_override) {
|
||||
set |= PX4IO_P_SETUP_ARMING_LOCKDOWN;
|
||||
_lockdown_override = true;
|
||||
|
||||
} else if (!armed.lockdown && _lockdown_override) {
|
||||
} else if (!(armed.lockdown || armed.manual_lockdown) && _lockdown_override) {
|
||||
clear |= PX4IO_P_SETUP_ARMING_LOCKDOWN;
|
||||
_lockdown_override = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user