mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:23:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user