mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
navigator: MissionFeasibility: rename checkFixedWindLandApproach() (#26603)
* navigator:MissionFeasibility rename checkFixedWindLandApproach() to checkFixedWingLandApproach() Renames checkFixedWindLandApproach() to checkFixedWingLandApproach() to fix a typo in the function name. This improves code readability and makes the function name consistent with the intended FixedWing landing approach logic, without changing behavior. * navigator:MissionFeasibility rename checkFixedWindLandApproach() to checkFixedWingLandApproach() Renames checkFixedWindLandApproach() to checkFixedWingLandApproach() to fix a typo in the function name. This improves code readability and makes the function name consistent with the intended FixedWing landing approach logic, without changing behavior.
This commit is contained in:
@@ -215,7 +215,7 @@ void FeasibilityChecker::doFixedWingChecks(mission_item_s &mission_item, const i
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!_checks_failed.flags.fixed_wing_land_approach_failed) {
|
if (!_checks_failed.flags.fixed_wing_land_approach_failed) {
|
||||||
_checks_failed.flags.fixed_wing_land_approach_failed = !checkFixedWindLandApproach(mission_item, current_index);
|
_checks_failed.flags.fixed_wing_land_approach_failed = !checkFixedWingLandApproach(mission_item, current_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -378,7 +378,7 @@ bool FeasibilityChecker::checkTakeoff(mission_item_s &mission_item)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FeasibilityChecker::checkFixedWindLandApproach(mission_item_s &mission_item, const int current_index)
|
bool FeasibilityChecker::checkFixedWingLandApproach(mission_item_s &mission_item, const int current_index)
|
||||||
{
|
{
|
||||||
if (mission_item.nav_cmd == NAV_CMD_LAND && current_index > 0) {
|
if (mission_item.nav_cmd == NAV_CMD_LAND && current_index > 0) {
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ private:
|
|||||||
* @param current_index The current mission index
|
* @param current_index The current mission index
|
||||||
* @return False if the check failed.
|
* @return False if the check failed.
|
||||||
*/
|
*/
|
||||||
bool checkFixedWindLandApproach(mission_item_s &mission_item, const int current_index);
|
bool checkFixedWingLandApproach(mission_item_s &mission_item, const int current_index);
|
||||||
|
|
||||||
// methods which are called once at the end
|
// methods which are called once at the end
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user