Navigator mission FOH use previous loiter altitude

-the previous item altitude wasn't valid if switching from LOITER ->
MISSION
-fixes #5395
This commit is contained in:
Daniel Agar
2016-09-26 23:11:08 +02:00
committed by Lorenz Meier
parent 660a9e13e7
commit 7b03bce416
2 changed files with 11 additions and 14 deletions
+1 -2
View File
@@ -257,8 +257,7 @@ private:
MissionFeasibilityChecker _missionFeasibilityChecker; /**< class that checks if a mission is feasible */
float _min_current_sp_distance_xy; /**< minimum distance which was achieved to the current waypoint */
float _mission_item_previous_alt; /**< holds the altitude of the previous mission item,
can be replaced by a full copy of the previous mission item if needed */
float _on_arrival_yaw; /**< holds the yaw value that should be applied when the current waypoint is reached */
float _distance_current_previous; /**< distance from previous to current sp in pos_sp_triplet,
only use if current and previous are valid */