Quote:
Originally Posted by rich2202
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.