implement MAV_CMD_MISSION_START

This commit is contained in:
Daniel Agar
2016-11-06 15:24:34 +01:00
committed by Lorenz Meier
parent 223595e978
commit 8ac4dd04ae
7 changed files with 96 additions and 54 deletions
+3 -8
View File
@@ -91,6 +91,8 @@ public:
MISSION_YAWMODE_BACK_TO_HOME = 3,
MISSION_YAWMODE_MAX = 4
};
bool set_current_offboard_mission_index(unsigned index);
private:
/**
@@ -108,12 +110,6 @@ private:
*/
void advance_mission();
/**
* Check distance to first waypoint (with lat/lon)
* @return true only if it's not too far from home (< MIS_DIST_1WP)
*/
bool check_dist_1wp();
/**
* Set new mission items
*/
@@ -214,7 +210,7 @@ private:
void set_mission_finished();
/**
* Check wether a mission is ready to go
* Check whether a mission is ready to go
*/
void check_mission_valid(bool force);
@@ -258,7 +254,6 @@ private:
float _min_current_sp_distance_xy; /**< minimum distance which was achieved to the current waypoint */
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 */