Path Planner not following trajectory correctly, speeds super fast and goes past the end pose

Hello,

Our team has just started experimenting with using PathPlanner to create Autonomous commands to use. However, whenever we were testing the paths ( just going straight forward 1 meter or lower) that it was making, we saw that it did not follow them closely at all. It always veered off to the left and went at a very high speed. We checked our encoders and odometry, and they seem to be fine. Here is our code:
Link

We recently had a similar issue - both our rotation PID and max speeds were wrong.

In your Autobuilder I would recommend updating both of your PID’s to 5, 0, 0
(up from 0.05, 0, 0) This seems to be a very common setup that worked for us, and i’ve seen in a number of othre github repos

Thank you for your reply! While it wasn’t completely the issue we had (apparently we missed a checkbox), it was helpful. The problem we had was that we forgot to check the preset starting pose button, so odometry wasn’t getting reset.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.