View Single Post
  #4   Spotlight this post!  
Unread 05-09-2011, 04:36 PM
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Wait(); function

Quote:
Originally Posted by Ether View Post
Is there a specific reason why you want to do this? i.e. Is there a problem you are trying to solve?

yes!, the problem is that whenever I use wait, we would lose control of our robot until what ever it is doing is finished.

I tried this:

if(Thirdstick.GetTrigger())
{
int timer = 0;
timer++;
motor->Set(1.0);
if(timer >= 1000)
{
motor->Set(0.0);
}
}
but it never worked
Reply With Quote