View Single Post
  #2   Spotlight this post!  
Unread 01-12-2009, 15:41
clwilligham clwilligham is offline
Registered User
FTC #2845 (Team Duct Tape)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2006
Location: Florida
Posts: 4
clwilligham is an unknown quantity at this point
Re: [FTC]: Autonomous Code Ender

you can do that if you make sure you clear the timer first, or if you want to have it go through a loop a specific number of times you can use a for loop

for(int i=0; i < 10; i++)
{
//code here
}

if you want to use timers, i'm pretty sure the syntax is timer[T1] to read or write the timer.
to reset a timer you would just to timer[T1] = 0;
Reply With Quote