properly handle takeoff waypoint when not currently at takeoff location

This commit is contained in:
Andreas Antener
2016-01-07 22:24:32 +01:00
committed by Lorenz Meier
parent 20c8c6a2fa
commit 4b9a793c8f
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -185,6 +185,7 @@ private:
int _current_offboard_mission_index;
bool _need_takeoff; /**< if true, then takeoff must be performed before going to the first waypoint (if needed) */
bool _takeoff; /**< takeoff state flag */
bool _takeoff_finished; /**< set if takeoff was requested before and is now done */
enum {
MISSION_TYPE_NONE,