View Single Post
  #1   Spotlight this post!  
Unread 14-01-2017, 12:51
PM_ME_UR_ROBOT PM_ME_UR_ROBOT is offline
Registered User
FRC #4206
 
Join Date: Sep 2016
Location: Texas
Posts: 7
PM_ME_UR_ROBOT is an unknown quantity at this point
CTRE CANTalon library installation not working

Hey everyone.

Due to the fact that WPI no longer supports the TalonSRX officially in their library, I went ahead and downloaded the CTR sponsored version and, because I'm on a Mac, I placed it into the folder I was instructed to place it in.

I went ahead and started Eclipse, and even though I had no errors importing the new class (com.ctre.CANTalon), the compile still failed when I tried to push the code onto the robot. I'll paste the error below, any help is appreciated.

compile:
[mkdir] Created dir: /Users/fitz/Documents/workspace/Tank Drive/build
[echo] [athena-compile] Compiling src with classpath=/Users/fitz/wpilib/java/current/lib/WPILib.jar:/Users/fitz/wpilib/java/current/lib/NetworkTables.jar:/Users/fitz/wpilib/java/current/lib/opencv.jar:/Users/fitz/wpilib/java/current/lib/cscore.jar to build
[javac] Compiling 1 source file to /Users/fitz/Documents/workspace/Tank Drive/build
[javac] /Users/fitz/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4206/robot/Robot.java:3: error: package com.ctre does not exist
[javac] import com.ctre.CANTalon;
[javac] ^
[javac] /Users/fitz/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4206/robot/Robot.java:27: error: cannot find symbol
[javac] CANTalon left, right, strafe;
[javac] ^
[javac] symbol: class CANTalon
[javac] location: class Robot
[javac] /Users/fitz/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4206/robot/Robot.java:33: error: cannot find symbol
[javac] left = new CANTalon(1);
[javac] ^
[javac] symbol: class CANTalon
[javac] location: class Robot
[javac] /Users/fitz/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4206/robot/Robot.java:34: error: cannot find symbol
[javac] right = new CANTalon(2);
[javac] ^
[javac] symbol: class CANTalon
[javac] location: class Robot
[javac] /Users/fitz/Documents/workspace/Tank Drive/src/org/usfirst/frc/team4206/robot/Robot.java:35: error: cannot find symbol
[javac] strafe = new CANTalon(3);
[javac] ^
[javac] symbol: class CANTalon
[javac] location: class Robot
[javac] 5 errors

BUILD FAILED
/Users/fitz/wpilib/java/current/ant/build.xml:92: Compile failed; see the compiler error output for details.

Total time: 1 second
Reply With Quote