UBCSailbot / raye-local-pathfinding

UBC Sailbot's Local Pathfinding Repository: OMPL-based pathfinding that avoids upwind/downwind sailing, minimizes turning, and minimizes path length.
https://www.ubcsailbot.org/
MIT License
2 stars 0 forks source link

Increment global path index to first unreached waypoint on new path #300

Closed patrick-5546 closed 2 years ago

patrick-5546 commented 2 years ago

This handles the case where we lose power in the middle of a global path. On startup local pathfinding assumes that the next global waypoint is index 1 of the global path, so I decided to increment the global path index to the first unreached waypoint whenever a new global path is published