PID Controller in 364's base swerve drive code

You can get weird behaviors if you don’t have the modules numbered correctly – in other words, if the CAN identifiers for the motors on each corner don’t match what is expected in the code. There is a coordinate system that applies, and also an ordering convention for the modules. Here’s one thread where this has come up on CD before. This is another thing to check out.