Thread: Atonomous
View Single Post
  #6   Spotlight this post!  
Unread 13-02-2013, 21:48
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Atonomous

Quote:
Originally Posted by inkspell4 View Post
How could i add a wait statement into the code between the commands as they run?
You can either add a WaitCommand:
Code:
addSequential(new WaitCommand(5));
or you can use a command that does nothing (we have a command called DoNothing which does nothing and returns false from isFinished()) along with addSequential's timeout parameter:
Code:
addSequential(new DoNothing(),5);
__________________
I code stuff.
Reply With Quote