View Single Post
  #7   Spotlight this post!  
Unread 18-02-2011, 00:26
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: WHATS WRONG WITH OUR CODE???!!!

Are you properly opening these inputs and outputs in Begin.vi? The drive train and first joystick are initialized by default, but you will need to add references to others sensors and actuators as you add them.

It sounds like your main loop is running too slowly, making the Safety on your drive motors timeout. The drive motors by default have Safety enabled with a 100ms timeout. This means that you need to update the output values to these jags at least every 100ms, or the code will turn it off (for Safety). With nice friendly code, the main robot loop containing Teleop.vi should run at anywhere from 20 to 80ms, but will go over if you have lots of code, or, as it seems is the case, there are errors that are slowing everything down.

This safety timeout error can be identified on the Driver Station and going to the "Diagnostics" tab. There is a readout of error messages that will likely include something about Safety Timeout on Kicker (or whatever your mechanism is), the loop is not running fast enough. My guess is that its not running fast enough because of your interesting method of controlling other actuators. I second the need to use Motor Control from the WPILib>>Actuators>>Motor Control pallette, and emphasize that it needs to be initialized properly. If you hit a wall, feel free to ask, we're happy to help. I (and many others) can post screenshots of some of this if it helps. Just looking through Begin.vi will probably help some too.

Another thing, are you using PWM or CAN for the jaguar signal?

And the double joystick reference should compile fine, its just unnecessarily redundant.