Skip to content

Commit

Permalink
mission_feasibility_checker: takeoff: change warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 authored and julianoes committed Feb 27, 2019
1 parent 5b151a5 commit 6bb84af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/navigator/mission_feasibility_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ MissionFeasibilityChecker::checkRotarywing(const mission_s &mission, float home_
// MIS_TAKEOFF_REQ param has to be set and the vehicle has to be landed - one can load a mission
// while the vehicle is flying and it does not require a takeoff waypoint
if (!has_takeoff && _navigator->get_takeoff_required() && _navigator->get_land_detected()->landed) {
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: No takeoff waypoint found!");
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
return false;

} else {
Expand Down Expand Up @@ -368,7 +368,7 @@ MissionFeasibilityChecker::checkFixedWingTakeoff(const mission_s &mission, float
// MIS_TAKEOFF_REQ param has to be set and the vehicle has to be landed - one can load a mission
// while the vehicle is flying and it does not require a takeoff waypoint
if (!has_takeoff && _navigator->get_takeoff_required() && _navigator->get_land_detected()->landed) {
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: No takeoff waypoint found!");
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "Mission rejected: takeoff waypoint required!");
return false;

} else {
Expand Down

0 comments on commit 6bb84af

Please sign in to comment.