Mecanum Drive

programming

#1

We are trying to create a MecanumDrive but the constructor only accepts speed controllers and we can’t cast our talons to those. Help!


#2

Java?


#3

In both C++ and Java, CTRE provides a WPI_TalonSRX and WPI_VictorSPX object that uses WPILib compatible interfaces that can be passed to MecanumDrive. Just instantiate the motor controllers as such after importing and it should work just fine.

Hope this helps!