Go to Post That goal is going to commit suicide by the end of the regional........so many balls @_@... - DanDon [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi