![]() |
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 |
Re: CTRE CANTalon library installation not working
Nevermind! The issue was resolved by installing instead to users/<USER>/wpilib/user/java/lib
We may have messed up and used the wrong installation path, but we're pretty sure CTR's tutorial for installing told us to do the wrong thing. Either way, thanks to the guys in Discord for the help. |
Re: CTRE CANTalon library installation not working
We found that the CTRE tutorial was outdated and it was best to use the example projects on Github as models (https://github.com/CrossTheRoadElec/FRC-Examples).
Following these instructions seemed to solve our build problem: 1: Download CTRE Toolsuite (No Installer) package 4.4.1.9 (.zip) from http://www.ctr-electronics.com/hro.h...ical_resources 2: Extract the downloaded Zip file. 3: Take the Java folder and Copy and Paste the entire folder into wpilib/user/ 4: If you have any questions refer to the README in the root directory of the zipped folder. |
Re: CTRE CANTalon library installation not working
I added the post above just in case someone in the future stumbles upon this thread and has the same issue.
|
Re: CTRE CANTalon library installation not working
Hmm...interesting.... I seem to have the files in the correct place (checked with a teammate whose import worked without error). However, "com.ctre" cannot be resolved according to Eclipse. I wish the Talon software was still bundled with WPILIB :yikes:
|
Re: CTRE CANTalon library installation not working
If it's just eclipse's internal build throwing the error - and the ANT build step is not, check your classpath/libraries in Eclipse - the CTRE .jar files may not be included.
|
Re: CTRE CANTalon library installation not working
Has anyone found any documentation/source code for the TalonSRX's?
|
Re: CTRE CANTalon library installation not working
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: CTRE CANTalon library installation not working
Quote:
I'm guessing based on the distribution that the majority of the code is probably C++ code with a JNI wrapper, but every little bit helps. Thanks! Burt Smith FRC 571 Team Paragon |
| All times are GMT -5. The time now is 12:33. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi