forked from Archive/PX4-Autopilot
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…
Reference in New Issue