View Single Post
  #1   Spotlight this post!  
Unread 21-06-2011, 22:31
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Jaguar communication issue

Quote:
Originally Posted by kenavt View Post
Hello,

While trying out some drive code, I have had problems with one of our four Jaguars that control the four drive motors. I have verified that the wiring is correct multiple times, and when the robot is enabled the LED on the Jaguar is a solid amber - indicating a connection to the cRIO. However, when I should be sending power to the motor, the LED still indicates a solid amber instead of green or red.

Frankly, I cannot find any fault with my code, but that seems to be the only possible thing. I have tested out other code with the same Jaguar, and it responded, so it cannot be a problem with the Jaguar. I've attached pictures of my LabVIEW code in the Begin.vi and Teleop.vi. I am honestly stumped. Can any of you guys help?
First off, do you have the right pwm cable connected, and connected in the right way? Is your joystick code correct as well? Are your jaguars calibrated? I would assume so. I remember having a problem similar to this, this past season. We killed one jaguar because we forgot to calibrate, so one jaguar killed another. I remember we also played around with what jaguar got what motor. If you try switching around the pwm cables to different jaguars, that can possibly work.
The last thing i can think of in LabVIEW, would be to see what the motor output is. I don't really remember how to do it as the programming computer is not with me, but i think you right click a wire in the code, and something is an option that allows you to see the number/output of something like a jaguar or the speed applied when the joystick is pushed. I think you would have to put it on the wire that is connected from motor to set motor in the teleop code. Not exactly sure as I only learned how to do that at the competition when i had a programming alumni present to help me out.
Let me know how things go