mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
preflight check: only conduct if pre-armed
This commit is contained in:
parent
6e5f3a6099
commit
dea58db757
@ -1871,7 +1871,9 @@ void Commander::run()
|
||||
_status_changed = true;
|
||||
}
|
||||
|
||||
if (!isArmed()) {
|
||||
// do the control surface preflight check only if pre-armed. this means we need:
|
||||
// COM_PREARM_MODE = 1 (Safety Button) or 2 (Always).
|
||||
if (_actuator_armed.prearmed) {
|
||||
if (_param_com_do_cs_check.get()) {
|
||||
_prev_nav_state = _vehicle_status.nav_state;
|
||||
_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_CS_PREFLIGHT_CHECK);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user