|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: Timer Question
Yes, that will work.
About 38 cycles = a second so you could do something like: int delaySeconds = 38 * sec; int counter = 0; MOVE_FOWARD; if(counter < delaySeconds) { counter++; }else{ STOP_MOVING; } Remember to declare the int's at the top of the routine and good luck! ![]() Note: You could use software timers like the one posted above, but just for simplicity, fastness, and realiblity, it won't matter if you choice either one. Last edited by pheadxdll : 28-03-2007 at 22:45. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timer questions | Rick TYler | Programming | 3 | 12-02-2006 19:24 |
| Quick Timer Question | et1337 | Programming | 3 | 02-02-2006 15:19 |
| Accelerometer Timer Question | psquared | Programming | 3 | 12-02-2005 01:34 |
| timer | omega | Programming | 3 | 30-03-2004 18:52 |
| Timer Preview | Nate Smith | General Forum | 2 | 05-03-2003 12:25 |