forked from Archive/PX4-Autopilot
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:
parent
e68ba81d6d
commit
44f831c41a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue