WPI_TalonSRX and WPI_VictorSPX

I’m having problems when trying to code with WPI_TalonSRX and WPI_VictorSPX, when I import them
(import edu.wpi.first.wpilibj.WPI_VictorSPX; and import edu.wpi.first.wpilibj.WPI_VictorSPX;) they show up as errors and the only options java gives me is to change them to Talon and VictorSP or to remove them. Anyone have any ideas?

Have you installed the CTRE libraries? They are packaged separately from wpilib as are all 3rd party libraries. I believe you can find them here: http://www.ctr-electronics.com/hro.html#product_tabs_technical_resources

Also, I believe the first time you build with them, you have to be connected to the internet finish the download/install.

1 Like

The imported package is also incorrect. You would not find those classes in the edu.wpi.first.wpilibj package, but rather in the com.ctre.phoenix.motorcontrol.can package.

And of course you would have to install the vendor library for that to work.

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