Programming a swerve

You could also look at YAGSL (either to use or as a reference) for swerve drive programming. I would definitely recommend learning how it works however.