View Single Post
  #5   Spotlight this post!  
Unread 02-18-2016, 11:44 AM
Yaseen Yaseen is offline
Registered User
FRC #0069 (HYPER)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: New England
Posts: 3
Yaseen is an unknown quantity at this point
Re: Autonomous Time Delay

I'd recommend using a CommandGroup and using its timeout function.

Let's say you have a command for AutoDriving called AutoDrive that takes parameters for left and right speeds.

In the CommandGroup, you'd write something like this:

PHP Code:
addSequential(new AutoDrive(1.0,1.0), 3.0); 
Reply With Quote