|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Solution to Timing Loops
I have found out how to time. Based of the information from Innovation First, a loop is every 26.2 ms, assuming your code does't lengthen it. Based off of that, there are 38.167938931297709923664122137405 loops per sec. So to do close timing without overloading the stamp, you do:
Time VAR byte RealTime VAR byte Time = Time + delta_t + 1 if Time > 38 then Time = Time - 38 RealTime = RealTime + 1 EndIf This way only uses 2 bytes insted of a byte and a word. I tryed the delta_t * 262 / 10 but it overloaded the stamp and was very inaccurate. Based of of this formula, then the basic stamp will be 0.530431579 seconds fast at end of match. You can check this information on this xls I inclosed. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Timing of nats for next year | Ian W. | Championship Event | 13 | 03-03-2003 18:28 |
| Way back there. Size of Nationals, and a solution | archiver | 2001 | 23 | 24-06-2002 03:28 |
| what is or isn't a timing belt? | archiver | 2001 | 6 | 23-06-2002 23:26 |
| two sided timing belt | archiver | 2001 | 3 | 23-06-2002 22:34 |
| Dual Sided Timing Belts | Lachuck894 | Technical Discussion | 9 | 14-01-2002 10:10 |