View Single Post
  #6   Spotlight this post!  
Unread 10-02-2015, 20:22
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,113
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: Programming Pneumatics in Autonomous

Quote:
Originally Posted by rich2202 View Post
In autonomousinit...
The Patriots are using LabVIEW.



You will probably have the easiest time using what's called a Flat Sequence structure. It's like a filmstrip. Inside each frame you can set something to happen, and you can put a Wait function in the frame to determine how long until the next frame can start.

You control the solenoid exactly as you would in Teleop, using a Solenoid Set function. But instead of choosing which direction to control it based on a Joystick or gamepad button, you use a constant.

If you don't know how to control solenoids in Teleop, Team 358's examples might be useful. Look at the Single Solenoid Example and the Double Solenoid Example immediately following it.