Thread: toggle switch
View Single Post
  #22   Spotlight this post!  
Unread 22-01-2006, 15:50
iBheat's Avatar
iBheat iBheat is offline
Registered User
FRC #0418 (Lasa Robotics)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Austin, TX
Posts: 24
iBheat is on a distinguished road
Re: toggle switch

Quote:
Originally Posted by KenWittlief
you have the basic idea, but you need a few more lines of code.

the way its written 'loops' will keep incrementing, eventually it will get to zero and your switches will be ignored for almost a second (till it gets to 30 again, 786mS later)
Small mistake ... I fixed it in the code above!