Team-2502 / RobotCode2018

All of our code for our 2018 robot.
GNU General Public License v3.0
3 stars 0 forks source link

PP sometimes has issues when it comes to progressing to the next segment #77

Closed ritikmishra closed 6 years ago

ritikmishra commented 6 years ago

i.e distanceTo < 0 is true inside PurePursuitUtils#generateSpeedUsed

distanceTo is the distance along the path. 0 means that the path is completed. If it's negative, it should have moved on.

ritikmishra commented 6 years ago

This is potentially caused by 2 subsequent waypoints that have the same location.

ritikmishra commented 6 years ago

Fixed in 59751025553e6f0c3f8dd367f1286e07acc6eaad