Go to Post I owe it to the FIRST community and the awesome users of this site to keep working on this site and making it better. I will do so until someone from Chief Delphi pulls me away from it and tells me to stop. - Brandon Martus [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 09-02-2017, 15:59
TheBrushGeek TheBrushGeek is offline
Registered User
FRC #4386 (Mecha-Maniacs)
Team Role: Mentor
 
Join Date: Dec 2015
Rookie Year: 2014
Location: Brush, Colorado
Posts: 4
TheBrushGeek is an unknown quantity at this point
Re: Need help solving the CAN mystery

Quote:
Originally Posted by mikets View Post
All CAN devices tap onto these two wires. So when talking to them, you need to address the device by its CAN ID. So you need to set up each of the CAN Talon controller with its unique ID generally in the range of 1 to 63 (don't use 0 because that's the default ID came from the manufacturer). You need to use the web interface of the RoboRIO to change the CAN ID of each CAN Talon. You need to do this just once and the ID is saved in non-volatile memory in the controller.
This was exactly what I needed to finally understand CAN. Thanks to MikeTS for your response and your code samples! We are using a mechanum drive this year so your code especially for that was extremely helpful!
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2017, 16:17
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: Need help solving the CAN mystery

Quote:
Originally Posted by TheBrushGeek View Post
This was exactly what I needed to finally understand CAN. Thanks to MikeTS for your response and your code samples! We are using a mechanum drive this year so your code especially for that was extremely helpful!
I'm glad you made progress, but isn't that basically section 1 of the Talon SRX Software Reference Manual?

Were our github examples helpful? Here's a java one with RobotDrive and many talons.
https://github.com/CrossTheRoadElec/...bot/Robot.java

And section 3.4 in the software reference manual specifically calls out how to use RobotDrive.
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 04:04.

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