Programming a swerve

Alright so I’m running into a small problem. Basically when I run my path through the SwerveAutoBuilder i only get 0.5 meters error with minimal tuning. But when I run the path with the PPSwerveController it throws a 6 meter error. Do you know why this could be occuring. This is done through simulation.

Measure your wheel diameter, it may be smaller than you think it is.