|
Re: Need help with timing auton
The "easy" way to do this is probably to use Autonomous Independent and string together a sequence using the error terminals of each VI.
Use the Watchdog Delay & Feed VI for delays between events to keep the watchdog happy.
So you want to connect the error wires of the VIs in the sequence you want to run.
Ex.
Arcade Drive VI (Set to 1 for forward)
|
V
Watchdog Delay & Feed (Drive forward time)
|
V
Arcade Drive VI (Set to 0 for stop)
|
V
Solenoid Set (Set to 1 to extend)
|
V
Watchdog Delay & Feed (Wait for firing to finish)
|
V
Solenoid Set (Set to 0 to retract)
To repeat this sequence exactly you can either use a loop or you can just keep stringing elements onto the sequence, allowing you to make the sequence slightly different for the further iterations.
If this isn't clear enough, let me know and I can probably post up a sample VI for you.
__________________
2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
|