View Single Post
  #5   Spotlight this post!  
Unread 13-02-2011, 16:28
lucoytoa's Avatar
lucoytoa lucoytoa is offline
Programmer
AKA: Nicolas Xiong
FRC #2276 (STARS of Cypress)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Spring, TX
Posts: 20
lucoytoa is an unknown quantity at this point
Re: Pneumatics Not Working

Quote:
Originally Posted by Mark McLeod View Post
It looks like your Relay code in Teleop is using the wrong enumeration (see the red dots).
  • Delete the ennums and delete the one wire into the Relay Set.
  • Do a Create->Constant on the Relay Set input node to get the correct enum.
  • Copy and paste the enum to the places it's needed.
  • Now you can delete the enum connected to Relay Set and rewire the original Select back into it again.
If you do it right, then the red dots will disappear.

Are the Relay green/red LEDs on the sidecar lighting as you work the controls?

------------------
The compressor code goes in Begin. Please take it out of Teleop. Nothing else is required anywhere else.
It doesn't run just once. Start begins a background process that keeps going forever checking the pressure switch and turning the compressor on and off accordingly.


You should not be modifying Robot Main whatsoever.
Keep all your changes in the vi's under Team Code. That's why they call them that.
Thank you for the information. It works!
__________________
FRC - STARS of Cypress, 2008, 2009, 2010
FTC - SOAR Club - 2011
FLL - DNAbots - 2009, 2010
BEST - STARS of Cypress - 2008, 2009, 2010
MATE - STARS of Cypress - 2008
MATE - SOAR Club - 2011
VEX - Discobots - 2010
Robofest - 2008
Houston: Energy City of the Future - RNKL Engineering - 2009