(SOLVED) WPI_TalonSRX import for Visual Studio

I’m trying to set up my Talon SRXes but the old import from eclipse com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX says D:\Team 2869\Documents\VS Code\2019code\src\main\java\org\usfirst\frc\team2869\robot\RobotMap.java:11: error: package com.ctre.phoenix.motorcontrol.can does not exist import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;


D:\Team 2869\Documents\VS Code\2019code\src\main\java\org\usfirst\frc\team2869\robot\RobotMap.java:30: error: cannot find symbol public static WPI_TalonSRX leftFront = new WPI_TalonSRX(1);

Was the import renamed or do I need an extra plugin for VS Code?

You need to install the CTRE Phoenix offline installer and then add it to your project. See 3rd Party Libraries — FIRST Robotics Competition documentation

1 Like

Thanks! I installed the CTRE Phoenix but I didn’t add it to my project and that’s why I was confused.