|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
prolly a dumb question, but why do you add in delta_t?
[edit] o wait nevermind. but how often does the other processor send packets to the stamp? what about packetnum? what does that do? Last edited by Rickertsen2 : 08-02-2003 at 19:31. |
|
#2
|
||||
|
||||
|
Quote:
|
|
#3
|
||||||
|
||||||
|
Quote:
Using delta_t, you can determine if you missed any 26ms intervals between serins, so you would actually know that 52ms has passed in the previous example instead of "one loop" which could be either 26 or 52ms. --Rob |
|
#4
|
||||
|
||||
|
Ok, that makes sense, but does 26 some milliseconds in drive time really affect the robot as it drives? I ran automated code without this and had almost perfect position accuracy. It seems like an awfully tiny difference to me.
Last edited by Greg McCoy : 08-02-2003 at 21:26. |
|
#5
|
|||
|
|||
|
Greg, quit screwing up my posts and work on wiring our second drive base, our anti-gravity one. I need the electrical done so I can do the program.
|
|
#6
|
||||||
|
||||||
|
Quote:
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
adding delta_t won't make any difference in your code unless your loop takes more than 26ms.
does anybody know what packet_num does? |
|
#9
|
||||
|
||||
|
Blah...
I keep seeing posts on timer this, timer that.. why use software timers? So inaccurate if you have lots of code.. I mean, the loop isn't always a set period of time if you mod the code a lot (yeah, we aren't really using anything in the default code except the declarations.. and most of those are gone too.. lol). Using a hardware pulse generator (555 anyone?) allows you to have multiple software timers without worrying too much about loop periods and other useless complex crapola. I mean, you only need a resolution of around 1/4 second at most anyways.. Last edited by randomperson : 09-02-2003 at 23:25. |
|
#10
|
|||
|
|||
|
Quote:
|
![]() |
| 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 |