Skip to content

Commit

Permalink
AP_SmartRTL: add point made public
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 23, 2024
1 parent 230269b commit cd5c64b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/AP_SmartRTL/AP_SmartRTL.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class AP_SmartRTL {
// 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);

Expand Down Expand Up @@ -109,9 +112,6 @@ class AP_SmartRTL {
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);

Expand Down

0 comments on commit cd5c64b

Please sign in to comment.