mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 00:04:07 +08:00
navigator allow mode changes when disarmed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
35985ad3ed
commit
d63fd7c627
@ -838,10 +838,10 @@ void Navigator::run()
|
||||
break;
|
||||
}
|
||||
|
||||
// Do not execute any state machine while we are disarmed
|
||||
if (_vstatus.arming_state != vehicle_status_s::ARMING_STATE_ARMED) {
|
||||
navigation_mode_new = nullptr;
|
||||
}
|
||||
// // Do not execute any state machine while we are disarmed
|
||||
// if (_vstatus.arming_state != vehicle_status_s::ARMING_STATE_ARMED) {
|
||||
// navigation_mode_new = nullptr;
|
||||
// }
|
||||
|
||||
/* we have a new navigation mode: reset triplet */
|
||||
if (_navigation_mode != navigation_mode_new) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user