|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|