Quote:
Originally posted by gwross
I don't remember whether Delta_T means the-number-of-packets-your-program-missed-since-you-successfully-received-a-data-packet, or the-number-of-cycles-since-you-last-successfully-received-a-data-packet. So the question is: should you add 1+Delta_T to your counter each time (if the former is true), or just Delta_T?
|
delta_t contains the number of packets missed, so to do a counter you would need to say counter = counter + 1 + delta_t
Quote:
Originally posted by Ian W.
I haven't tried the Delta_T thing yet, because I'm not sure where it goes into the Serin command.
|
You will notice in the code that there are two serin statements. The top one is commented out, but has all the variables listed in it in the proper order. The second one is the one that is actually used. put delta_t in the same spot as it is in the first one (almost for sure it would be last). You also need to change C_deta_t to 1 like Joe J. said in an earlier message.
Hope this helps