|
Re: Help Autonomous code not working
you cant do the delay like that it would delay the 26 ms. loop time which in turn would cause a code error on the robot. i figured that out in the summer. the only way you could pull off a delay is by adding a global vaiable that counts the number of iterations of the while loop in the autonomous code.
1. declare a variable at the top
2. put a (variable)++ in the loop
3. use the variable as a counter for your delay.
__________________
, Sean
TEAM 867
-electrical
-pneumatics
-programming

2008 Autodesk Visualization Grand Prize Winner
|