commander: auto transition to LOITER if disarmed with no RC only requires a valid global position

This commit is contained in:
Daniel Agar
2020-12-08 18:26:03 -05:00
committed by GitHub
parent 82746af07a
commit cd1ffa63cd
+1 -1
View File
@@ -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);
}