Navigator: Mission feasibilty check: set _has_landing also for normal landing waypoints (without pattern)

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2022-11-18 16:55:50 +01:00
parent e68ba81d6d
commit 44f831c41a
1 changed files with 4 additions and 0 deletions

View File

@ -478,6 +478,8 @@ MissionFeasibilityChecker::checkFixedWingLanding(const mission_s &mission)
if (missionitem.nav_cmd == NAV_CMD_LAND) {
mission_item_s missionitem_previous {};
_has_landing = true;
float param_fw_lnd_ang = 0.0f;
const param_t param_handle_fw_lnd_ang = param_find("FW_LND_ANG");
@ -658,6 +660,8 @@ MissionFeasibilityChecker::checkVTOLLanding(const mission_s &mission)
if (missionitem.nav_cmd == NAV_CMD_LAND || missionitem.nav_cmd == NAV_CMD_VTOL_LAND) {
mission_item_s missionitem_previous {};
_has_landing = true;
if (i > 0) {
landing_approach_index = i - 1;