navigator: check fixedwing mission for VTOL

A VTOL mission can also contain a fixedwing landing. Therefore, I think,
it makes sense to run the fixedwing checks as well, however, don't check
for a landing start necessarily.
This commit is contained in:
Julian Oes
2019-12-23 21:47:16 +01:00
committed by Lorenz Meier
parent de95e3d274
commit f8c10b706a
@@ -87,6 +87,10 @@ MissionFeasibilityChecker::checkMissionFeasible(const mission_s &mission,
|| _navigator->get_vstatus()->is_vtol) {
failed = failed || !checkRotarywing(mission, home_alt);
if (_navigator->get_vstatus()->is_vtol) {
failed = failed || !checkFixedwing(mission, home_alt, false);
}
} else {
failed = failed || !checkFixedwing(mission, home_alt, land_start_req);
}