Quote:
Originally Posted by Ether
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