mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
parent
9cb3ea44fb
commit
6bf4745144
@ -215,7 +215,7 @@ void FeasibilityChecker::doFixedWingChecks(mission_item_s &mission_item, const i
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
|
||||
@ -201,7 +201,7 @@ private:
|
||||
* @param current_index The current mission index
|
||||
* @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
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user