navigator: mission_feasibility_checker: remove lazy comparison

This commit is contained in:
TSC21
2019-02-27 11:54:51 +00:00
committed by Julian Oes
parent c9c86ae2ff
commit 12d29fd093

View File

@@ -106,11 +106,12 @@ MissionFeasibilityChecker::checkRotarywing(const mission_s &mission, float home_
bool
MissionFeasibilityChecker::checkFixedwing(const mission_s &mission, float home_alt, bool land_start_req)
{
/*
* Perform checks and issue feedback to the user for all checks
* Mission is only marked as feasible if all checks return true
*/
return (checkTakeoff(mission, home_alt) && checkFixedWingLanding(mission, land_start_req));
/* Perform checks and issue feedback to the user for all checks */
bool resTakeoff = checkTakeoff(mission, home_alt);
bool resLanding = checkFixedWingLanding(mission, land_start_req);
/* Mission is only marked as feasible if all checks return true */
return (resTakeoff && resLanding);
}
bool