View Single Post
  #3   Spotlight this post!  
Unread 06-02-2013, 22:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Some programming help on compressors and cylinder pressure

You'll need to Open the compressor in Begin, then Start it, then Set its RefNum with a handy name such as "Compressor". In Periodic Tasks there's already a bit of code that runs the Compressor Control Loop; you just need to enable it and make sure the RefNum Get name matches what you gave it in Begin.

The Compressor functions are in the WPI Robotics Library >> Actuators >> Compressor function subpalette.
Reply With Quote