mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 18:30:34 +08:00
navigator: RTL on failsafe bug fixed
This commit is contained in:
@@ -729,7 +729,9 @@ Navigator::task_main()
|
||||
|
||||
} else if (_vstatus.failsafe_state == FAILSAFE_STATE_RTL) {
|
||||
/* RTL on failsafe */
|
||||
dispatch(EVENT_RTL_REQUESTED);
|
||||
if (myState != NAV_STATE_READY || _rtl_state != RTL_STATE_LAND) {
|
||||
dispatch(EVENT_RTL_REQUESTED);
|
||||
}
|
||||
|
||||
} else {
|
||||
/* shouldn't act */
|
||||
|
||||
Reference in New Issue
Block a user