Drive Train Programming Speed Controller Group undefined

My program is giving me an error saying that the SpeedControllerGroup is undefined. How do you fix this?

There is a WPI_ prefix for the CTRE controllers. It’s a subclass that makes it compatible with the wpi drive stuff. Use WPI_VictorSPX.

1 Like

If you are using the Victor SPX over the CAN bus, you don’t actually need to create SpeedControllerGroups. You can just choose one Victor to be the “leader” and the other to be the “follower” and use followerMotor.follow(leaderMotor).

I’m assuming you created the SpeedControllerGroups to feed into a DifferentialDrive class.
By using the following technique, you can create the DifferentialDrive class by using the following:
DifferentialDrive drive = new DifferentialDrive(leftLeaderMotor, rightLeaderMotor)

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