mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 17:40:34 +08:00
Navigator, waypoints: save index in mission item and use this in navigator
This commit is contained in:
@@ -80,6 +80,7 @@ struct mission_item_s
|
||||
float radius; /**< radius in which the mission is accepted as reached in meters */
|
||||
float time_inside; /**< time that the MAV should stay inside the radius before advancing in seconds */
|
||||
bool autocontinue; /**< true if next waypoint should follow after this one */
|
||||
int index; /**< index matching the mavlink waypoint */
|
||||
};
|
||||
|
||||
struct mission_s
|
||||
|
||||
@@ -67,6 +67,10 @@ struct mission_item_triplet_s
|
||||
struct mission_item_s previous;
|
||||
struct mission_item_s current;
|
||||
struct mission_item_s next;
|
||||
|
||||
int previous_index;
|
||||
int current_index;
|
||||
int next_index;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user