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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);
}