Navigator: Fix RTL command lnd logic for missions

The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
This commit is contained in:
Lorenz Meier
2017-05-16 08:40:53 +02:00
parent 32685338c9
commit 9be5193965
3 changed files with 1 additions and 17 deletions
+1 -2
View File
@@ -858,8 +858,7 @@ Mission::do_need_vertical_takeoff()
_mission_item.nav_cmd == NAV_CMD_WAYPOINT ||
_mission_item.nav_cmd == NAV_CMD_VTOL_TAKEOFF ||
_mission_item.nav_cmd == NAV_CMD_LOITER_TIME_LIMIT ||
_mission_item.nav_cmd == NAV_CMD_LOITER_UNLIMITED ||
_mission_item.nav_cmd == NAV_CMD_RETURN_TO_LAUNCH)) {
_mission_item.nav_cmd == NAV_CMD_LOITER_UNLIMITED)) {
_need_takeoff = false;
return true;