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
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