Go to Post Comments and Documentation: Use them! You would never believe how fast you will forget how something works, especially when things are flying at you so fast. Other/future programmers will understand what you did and why you did it. - BigJ [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2017, 14:42
philmharner philmharner is offline
Registered User
FRC #5243
 
Join Date: Oct 2016
Location: Virginia
Posts: 5
philmharner is an unknown quantity at this point
CAN Talon SRX Programming

Hello, programming in Java and my entire team is unable to find any way to code these talons. ScreenStepsLive said that we could use external jars, from http://www.ctr-electronics.com/hro.h...ical_resources
We got the external jar, imported the CTRLib.jar into eclipse.


Image. Error on the bottom. CrossTheRoad Library on the left.
http://i.imgur.com/jlLfXQe.png

Github: https://github.com/CentrevilleRobotics/Steamworks

Error:
java.lang.UnsatisfiedLinkError: no CTRLibDriver in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at com.ctre.CTREJNIWrapper.<clinit>(CTREJNIWrapper.ja va:12)
at com.ctre.CANTalon.<init>(CANTalon.java:366)
at org.usfirst.frc.team5243.robot.subsystems.DriveSub system.<init>(DriveSubsystem.java:29)
at org.usfirst.frc.team5243.robot.Robot.robotInit(Rob ot.java:36)
at edu.wpi.first.wpilibj.IterativeRobot.startCompetit ion(IterativeRobot.java:64)
at edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:247)

Any help would be greatly appreciated. This error is tearing the team apart, literally.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2017, 15:49
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,602
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CAN Talon SRX Programming

What version of the FRC eclipse plugins are you using?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2017, 16:46
philmharner philmharner is offline
Registered User
FRC #5243
 
Join Date: Oct 2016
Location: Virginia
Posts: 5
philmharner is an unknown quantity at this point
Re: CAN Talon SRX Programming

Quote:
Originally Posted by Joe Ross View Post
What version of the FRC eclipse plugins are you using?
We had updated to the most recent plugins, where we could no longer use the CAN Talon that existed in older versions of wpilib.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2017, 16:49
philmharner philmharner is offline
Registered User
FRC #5243
 
Join Date: Oct 2016
Location: Virginia
Posts: 5
philmharner is an unknown quantity at this point
Re: CAN Talon SRX Programming

We have managed to get it working.
We used Filezilla to transfer the .so files(downloaded from http://www.ctr-electronics.com/hro.h...ical_resources) directly onto the roborio (usr/local/FRC/lib)
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2017, 17:21
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 559
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: CAN Talon SRX Programming

Quote:
Originally Posted by philmharner View Post
We have managed to get it working.
We used Filezilla to transfer the .so files(downloaded from http://www.ctr-electronics.com/hro.h...ical_resources) directly onto the roborio (usr/local/FRC/lib)
That would not have been necessary if you followed the README instructions in the zip you downloaded.
OR followed the instructions in section 4.3 in the CTRE Toolsuite Installation Guide.
OR looked up the error in section 3.3 in the CTRE Toolsuite Installation Guide.

http://www.ctr-electronics.com/hro.h...ical_resources
Reply With Quote
Reply


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 09:44.

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