mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 13:58:53 +08:00
FeasibilityChecks: only require both or neither TO/LND when landed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -587,7 +587,10 @@ bool FeasibilityChecker::checkTakeoffLandAvailable()
|
||||
break;
|
||||
|
||||
case 5:
|
||||
if (!_is_landed && !_has_vtol_approach) {
|
||||
if (_is_landed) {
|
||||
result = hasMissionBothOrNeitherTakeoffAndLanding();
|
||||
|
||||
} else if (!_has_vtol_approach) {
|
||||
result = _landing_valid;
|
||||
|
||||
if (!result) {
|
||||
@@ -595,9 +598,6 @@ bool FeasibilityChecker::checkTakeoffLandAvailable()
|
||||
events::send(events::ID("feasibility_mis_in_air_landing_req"), {events::Log::Error, events::LogInternal::Info},
|
||||
"Mission rejected: Landing waypoint/pattern required");
|
||||
}
|
||||
|
||||
} else {
|
||||
result = hasMissionBothOrNeitherTakeoffAndLanding();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user