mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 08:01:35 +08:00
fixed empty if body
This commit is contained in:
@@ -562,11 +562,8 @@ bool set_nav_state(struct vehicle_status_s *status, const bool data_link_loss_en
|
|||||||
status->nav_state = NAVIGATION_STATE_TERMINATION;
|
status->nav_state = NAVIGATION_STATE_TERMINATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stay where you are */
|
/* stay where you are if you should stay in failsafe, otherwise everything is perfect */
|
||||||
} else if (stay_in_failsafe){
|
} else if (!stay_in_failsafe){
|
||||||
|
|
||||||
/* everything is perfect */
|
|
||||||
} else {
|
|
||||||
status->nav_state = NAVIGATION_STATE_AUTO_MISSION;
|
status->nav_state = NAVIGATION_STATE_AUTO_MISSION;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user