bool MissionFeasibilityChecker::checkFixedwing(const mission_s &mission, float home_alt, bool home_alt_valid, bool land_start_req) { /* Perform checks and issue feedback to the user for all checks */ bool resTakeoff = checkFixedWingTakeoff(mission, home_alt, home_alt_valid); bool resLanding = checkFixedWingLanding(mission, land_start_req); /* Mission is only marked as feasible if all checks return true */ return (resTakeoff && resLanding); }
bool MissionFeasibilityChecker::checkFixedwing(dm_item_t dm_current, size_t nMissionItems, fw_pos_ctrl_status_s *fw_pos_ctrl_status, float home_alt, bool home_alt_valid, float default_acceptance_rad, bool land_start_req) { /* Perform checks and issue feedback to the user for all checks */ bool resTakeoff = checkFixedWingTakeoff(dm_current, nMissionItems, home_alt, home_alt_valid, land_start_req); bool resLanding = checkFixedWingLanding(dm_current, nMissionItems, fw_pos_ctrl_status, land_start_req); /* Mission is only marked as feasible if all checks return true */ return (resTakeoff && resLanding); }