View Single Post
  #5   Spotlight this post!  
Unread 01-26-2011, 11:36 PM
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: CAN from scratch

Quote:
Originally Posted by ygd View Post
Thanks for the summary.

We are using C++, not Labview.

The link you gave me seems to be broken, I'm getting a "404" type page.

When you image the cRIO, it has an option for a CAN driver. Do I need to put anything there?
The link seems fine to me, perhaps you should try again

To switch C++ software to CAN, instead of creating Jaguar objects you should create CANJaguar objects. The only other change needed is updating the port numbers in the constructors with the CAN IDs of the jaguars.

In the cRIO imaging software you should select the method of connecting to the CAN bus you are using. If you are going with a serial-jaguar connection, select BlackJaguarBridge. If you're using a 2CAN, select 2CANBridge (I'm not 100% sure those are the exact names)
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote