|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Incrementation Code not working | benhulett | Programming | 6 | 12-02-2007 17:39 |
| easyc demo code not working | sniggel | Programming | 5 | 28-01-2007 16:40 |
| Camera not working in autonomous | Roger | Programming | 9 | 09-03-2006 07:38 |
| Camera code not working.... | DemonYawgmoth | Programming | 5 | 11-02-2006 09:21 |
| Gyro not working in Autonomous? | kaszeta | Programming | 7 | 11-02-2006 01:28 |