mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 08:10:35 +08:00
navigator: reset mission feasibility warning flag
Without reseting the warning flag commander would complain about a warning but still allow arming and flying the mission which was weird.
This commit is contained in:
@@ -58,6 +58,9 @@ MissionFeasibilityChecker::checkMissionFeasible(const mission_s &mission,
|
||||
float max_distance_to_1st_waypoint, float max_distance_between_waypoints,
|
||||
bool land_start_req)
|
||||
{
|
||||
// Reset warning flag
|
||||
_navigator->get_mission_result()->warning = false;
|
||||
|
||||
// trivial case: A mission with length zero cannot be valid
|
||||
if ((int)mission.count <= 0) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user