View Single Post
  #14   Spotlight this post!  
Unread 01-02-2002, 18:26
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,575
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
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