navigator: skip takeoff if already above takeoff altitude

This commit is contained in:
Anton Babushkin
2014-08-16 11:16:27 +02:00
parent e9b0ee7501
commit ee254be845
2 changed files with 45 additions and 34 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ private:
int _current_onboard_mission_index;
int _current_offboard_mission_index;
bool _need_takeoff;
bool _takeoff;
bool _need_takeoff; /**< if true, then takeoff must be performed before going to the first waypoint (if needed) */
bool _takeoff; /**< takeoff state flag */
orb_advert_t _mission_result_pub;
struct mission_result_s _mission_result;