View Single Post
  #2   Spotlight this post!  
Unread 15-02-2014, 14:14
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: Autonomous backup solution?

In CommandBase autonomous is pretty simple if you use command groups. You basically just write a list of the commands you'd like to use in the order you want to use them.

The two commands you use are:
addSequential(new Command(), timeout)
addParallel(new Command(), time out)
They each run the command for the amount of time

For Example:
addSequential(new JagsBackwards(),2);
addSequential(new JagsStop(),0);
addParallel(new UpperJagsIn(),2);
addParallel(new LowerJagsIn(),2);
etc...
Reply With Quote