mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 01:43:33 +08:00
mission_feasibility_checker: takeoff: fix logic to return as valid
This commit is contained in:
@@ -181,10 +181,10 @@ MissionFeasibilityChecker::checkRotarywing(const mission_s &mission, float home_
|
|||||||
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
|
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else {
|
|
||||||
// all checks have passed
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// all checks have passed
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
@@ -461,10 +461,10 @@ MissionFeasibilityChecker::checkFixedWingTakeoff(const mission_s &mission, float
|
|||||||
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
|
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else {
|
|
||||||
// all checks have passed
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// all checks have passed
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
Reference in New Issue
Block a user