|
Robot Drive for 10 seconds
unsigned int timer = 0;
//Forward for 10 seconds
if(timer < 382){
pwm01 = pwm02 = 225;
timer++;
}
since the autonomus loops every 26.2ms
10 / 0.0262 = ~382
would this work to drive the robot forward for 10s/
thanks
__________________
2007 Greater Kansas City Regional Champions
2008 Greater Kansas City Regional Finalists
|