To use a PID(f) controller with Roadrunner trajectories, you need to use async trajectories so that the PID controller can run in the background. You can do this by "
drive.followTrajectoryAsync(trajectory); "
You will also need to add another line of code inside of your loop:
drive.followTrajectoryAsync(trajectory);
For more information, consider looking at the roadrunner page on async following.
To use a PID(f) controller with Roadrunner trajectories, you need to use async trajectories so that the PID controller can run in the background. You can do this by " drive.followTrajectoryAsync(trajectory); " You will also need to add another line of code inside of your loop: drive.followTrajectoryAsync(trajectory);
For more information, consider looking at the roadrunner page on async following.