View Single Post
  #5   Spotlight this post!  
Unread 01-11-2012, 12:58 AM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: New to 2CAN and Jaguar

Quote:
Originally Posted by Mike Copioli View Post
I noticed that you are calling the closed loop functions. If you are trying to just control the Jag in voltage control mode you do not need to to do this.
What do you mean? The loop is reading the joystick values and programming the Jaguar in speed mode accordingly. If that's not the proper way to program the Jaguar, please show me the proper way.
Quote:
Originally Posted by Mike Copioli View Post
Also I do not see where you init the Jaguars.
How do you initialize the Jags? Wouldn't the CANJaguar constructor initialize it for me? I looked at the source code for the CANJaguar module and it calls the InitCANJaguar method. In the InitCANJaguar method, it checks the firmware version to make sure it's between 92 and 3329. Then it send a transaction to the Jag to enable the specified operating mode. That should be enough to initialize the Jags, right?
Quote:
Originally Posted by Mike Copioli View Post
The functions used in CAN are the same regardless of the gateway used (serial or 2CAN). The only difference is the plugin. Make sure you have the most recent plugin and 2CAN firmware (version 2.18).
When I imaged the cRIO, I selected 2CAN. According to documentation, this will automatically add the 2CAN driver to the cRIO plug-in list.
Quote:
Originally Posted by Mike Copioli View Post
A couple questions:

1. What is the state of the Jaguar LED? blinking orange or solid orange.
2. What version of 2CAN firmware and plugin are you running?
The Jaguar LEDs are blinking either Yellow or Green depending on which angle you are looking at them. According to the Diagnostic page of the 2CAN web dash:
Quote:
Version: 2.5

Build Date: Mar 13 2011 04:56:34
Is it the latest? If not, please point me to the latest firmware. It's not easy to determine which version I should download. According to the web site:
I picked version 2.5 because the other seems to be for 2CAN V2. So I am not sure if I picked the correct version.

Thanks for your help.
__________________

Last edited by mikets : 01-11-2012 at 01:36 AM.
Reply With Quote