mirror of https://github.com/ArduPilot/ardupilot
AP_SmartRTL: add point made public
This commit is contained in:
parent
19223fba1e
commit
4200902c4e
|
@ -41,6 +41,9 @@ public:
|
|||
// get a point on the path
|
||||
const Vector3f& get_point(uint16_t index) const { return _path[index]; }
|
||||
|
||||
// add point to end of path. returns true on success, false on failure (due to failure to take the semaphore)
|
||||
bool add_point(const Vector3f& point);
|
||||
|
||||
// get next point on the path to home, returns true on success
|
||||
bool pop_point(Vector3f& point);
|
||||
|
||||
|
@ -109,9 +112,6 @@ private:
|
|||
IgnorePilotYaw = (1U << 2),
|
||||
};
|
||||
|
||||
// add point to end of path
|
||||
bool add_point(const Vector3f& point);
|
||||
|
||||
// routine cleanup attempts to remove 10 points (see SMARTRTL_CLEANUP_POINT_MIN definition) by simplification or loop pruning
|
||||
void routine_cleanup(uint16_t path_points_count, uint16_t path_points_complete_limit);
|
||||
|
||||
|
|
Loading…
Reference in New Issue