AP_SmartRTL: add point made public

This commit is contained in:
Randy Mackay 2024-07-23 21:42:25 +09:00 committed by Andrew Tridgell
parent 93528168c5
commit e468302184
1 changed files with 3 additions and 3 deletions

View File

@ -41,6 +41,9 @@ public:
// get a point on the path // get a point on the path
const Vector3f& get_point(uint16_t index) const { return _path[index]; } 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 // get next point on the path to home, returns true on success
bool pop_point(Vector3f& point); bool pop_point(Vector3f& point);
@ -109,9 +112,6 @@ private:
IgnorePilotYaw = (1U << 2), 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 // 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); void routine_cleanup(uint16_t path_points_count, uint16_t path_points_complete_limit);