Thread: Program Delay
View Single Post
  #4   Spotlight this post!  
Unread 02-09-2010, 03:49 PM
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Program Delay

You need to instantiate an object of the Timer class, and then call the Timer->Start(); function in your button code. Then in the routine that runs when the timer expires, you do something else.

Look up the WPILib Documentation on the Timer class.
Reply With Quote