View Single Post
  #1   Spotlight this post!  
Unread 09-03-2007, 00:31
seanl's Avatar
seanl seanl is offline
"The Everything person"
FRC #0867 (Absolute Value)
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Arcadia, CA
Posts: 267
seanl will become famous soon enoughseanl will become famous soon enough
Question autonomous timing

how can i program the robot to do something for a amount of time because i want to program autonomous to just go toward the rack.
so far i got this but im not sure how the while loops are going to work
while(autocounter2<=10)
{
pwm01=200;
pwm02=254;
autocounter2=autocounter2++;
}
if(autocounter2==2)
{
while(autocounter<=50)
{
pwm01=254;
pwm02=254;
autocounter=autocounter++;
}
}