Thread: Time
View Single Post
  #13   Spotlight this post!  
Unread 21-01-2003, 09:52
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,567
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 rust710
I have used delta_t and delta_t will not equal 1 if 1 packet has been sent. delta_t will tell you how many packets you missed while executing your code. If you only missed on it will return a 0. So the actually more like ((delta_t + 1)*25ms). I don't quite use this formula but you should keep in mind that if delta_t = 0 then 25ms has passed. If it equals 1 then 50ms and so on. Again this is not that exact but it is the closest you will be able to get.

In my personal experiance I found that the Stamp gains 3sec over 1min. I guess this is not too bad but it definitly is not good. Over 15sec it doesn't gain too much so if you are trying to keep track of time in Autonomous mode then you should be ok.
That is correct, delta_t is the number of packets missed.

The loop speed is actually 26ms, not 25. If you use 25, you will be off by 2.4 seconds over a minute.