mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: auto transition to LOITER if disarmed with no RC only requires a valid global position
This commit is contained in:
parent
82746af07a
commit
cd1ffa63cd
@ -2383,7 +2383,7 @@ Commander::run()
|
||||
* we can as well just wait in a hold mode which enables tablet control.
|
||||
*/
|
||||
if (_status.rc_signal_lost && (_internal_state.main_state == commander_state_s::MAIN_STATE_MANUAL)
|
||||
&& _status_flags.condition_home_position_valid) {
|
||||
&& _status_flags.condition_global_position_valid) {
|
||||
|
||||
main_state_transition(_status, commander_state_s::MAIN_STATE_AUTO_LOITER, _status_flags, &_internal_state);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user