diff --git a/src/modules/navigator/mission_feasibility_checker.cpp b/src/modules/navigator/mission_feasibility_checker.cpp index afe8f3ba00..75ba23391e 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -97,7 +97,7 @@ MissionFeasibilityChecker::checkMissionFeasible(const mission_s &mission) failed |= _feasibility_checker.someCheckFailed(); - failed |= !checkGeofence(mission, _navigator->get_home_position()->alt, home_valid); + failed |= !checkMissionAgainstGeofence(mission, _navigator->get_home_position()->alt, home_valid); _navigator->get_mission_result()->warning = failed; @@ -105,7 +105,7 @@ MissionFeasibilityChecker::checkMissionFeasible(const mission_s &mission) } bool -MissionFeasibilityChecker::checkGeofence(const mission_s &mission, float home_alt, bool home_valid) +MissionFeasibilityChecker::checkMissionAgainstGeofence(const mission_s &mission, float home_alt, bool home_valid) { if (_navigator->get_geofence().isHomeRequired() && !home_valid) { mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Geofence requires valid home position\t"); diff --git a/src/modules/navigator/mission_feasibility_checker.h b/src/modules/navigator/mission_feasibility_checker.h index 0eedaf7366..1d263d5d4e 100644 --- a/src/modules/navigator/mission_feasibility_checker.h +++ b/src/modules/navigator/mission_feasibility_checker.h @@ -57,7 +57,7 @@ private: DatamanClient &_dataman_client; FeasibilityChecker _feasibility_checker; - bool checkGeofence(const mission_s &mission, float home_alt, bool home_valid); + bool checkMissionAgainstGeofence(const mission_s &mission, float home_alt, bool home_valid); public: MissionFeasibilityChecker(Navigator *navigator, DatamanClient &dataman_client) :