Mecanum with VictorSPX issues

We are trying to get our old bot able to drive again but have ran into some weird issue

Code: https://github.com/Snake5151/Mecanum/blob/main/Robot.java

Any help is appreciated im very confused from it Thanks

In order to use the MecanumDrive class and other WPILib drive classes with CTRE, you have to use the WPI_VictorSPX class in place of the standard VictorSPX.

Are your Victor SPXs connected via PWM or CAN?

we are using Can

This seems to have fixed the issue thanks alot!

1 Like

If you ever move from Victors to TalonSRX or TalonFX (falcons) it will be the same thing with a WPI_ prefix. The Victor SPX doesn’t support direct encoder feedback like the other two. That might be useful for mecanum control.

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