mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
added check for MAIN_STATE_OFFBOARD @#1152 so that we dont get thrown out of this state
This commit is contained in:
parent
6ed6c5bb1f
commit
dfedbcb855
@ -1149,7 +1149,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
status_changed = true;
|
||||
}
|
||||
|
||||
if (status.main_state != MAIN_STATE_AUTO && armed.armed) {
|
||||
if (status.main_state != MAIN_STATE_AUTO && armed.armed && status.main_state != MAIN_STATE_OFFBOARD) {
|
||||
transition_result_t res = main_state_transition(&status, MAIN_STATE_AUTO);
|
||||
|
||||
if (res == TRANSITION_CHANGED) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user