Go to Post Accidents happen, but they can be prevented with just a LITTLE bit of forethought. - AdamC [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-06-2012, 11:22
Happy Birthday! TEAM1100soft506 TEAM1100soft506 is offline
The runaway renegade of 1100
AKA: Connor Moroney
FRC #1100 (The T-hawks)
 
Join Date: Mar 2011
Rookie Year: 2008
Location: Northborough MA
Posts: 32
TEAM1100soft506 is infamous around these partsTEAM1100soft506 is infamous around these partsTEAM1100soft506 is infamous around these parts
CAN BUS help

My team is deciding to look into implementing CAN on our robot next year to communicate with our jaguar speed controllers. I have been put in charge of figuring this out. here is the problem. i know little about code (i can read it but cant write it), i know nothing about the jaguar speed controllers and i know nothing about the CAN system. My team codes in java. I need to know what would be a good place to start if i am going to learn about CAN before next season.
__________________
EX Team member and mentor of TEAM 1100!!! The T-hawks!!!
Finalists WPI regional 2011 along with 177 2011
Winners of the engineering excellence award at Boston Regional 2011
WPI regional 2013 Chairmans award winners


Now the runaway renegade.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-06-2012, 14:40
daniel_dsouza daniel_dsouza is offline
does what needs to be done.
FRC #2449 (Out of Orbit Robotics)
Team Role: Alumni
 
Join Date: May 2011
Rookie Year: 2011
Location: Chandler, AZ
Posts: 231
daniel_dsouza has a spectacular aura aboutdaniel_dsouza has a spectacular aura about
Re: CAN BUS help

If you search the white papers, there are plenty of good papers detailing the hardware portion of CAN.

As for programming, the provided javadoc in netbeans contains all the details about the different methods. Here is the same thing online.

You can use this program from TI to manage your Jaguars. It is useful for testing. Make sure you have a serial cable.

The only thing we used CAN for last year was our shooter motor. We controlled it using the voltage mode, because our encoder/PID loop wasn't giving consistent results. (If you take the time to read the CAN subforums, methods for determining PID constants are detailed). I've attached our [commented] file containing all our CAN code from last year.

Good Luck!
Attached Files
File Type: java Shooter.java (2.0 KB, 21 views)
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 22:41.

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