Only check mission when needed

This commit is contained in:
sander
2016-08-05 22:37:06 +02:00
committed by Lorenz Meier
parent 3e87ec5153
commit 9398a4819f
2 changed files with 152 additions and 105 deletions
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -211,7 +211,8 @@ private:
/**
* Check wether a mission is ready to go
*/
void check_mission_valid();
void check_mission_valid(bool force);
/**
* Reset offboard mission
@@ -244,6 +245,7 @@ private:
} _mission_type;
bool _inited;
bool _home_inited;
bool _need_mission_reset;
MissionFeasibilityChecker _missionFeasibilityChecker; /**< class that checks if a mission is feasible */