View Single Post
  #2   Spotlight this post!  
Unread 11-02-2006, 09:10
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: GetPacketNumber usage

Quote:
Originally Posted by Joshua Lynn
Can it be determined that there is fresh data from the OI By detecting a change in the Packet Number?

The goal is to perform some actions only once when new data arrives.

tnx
Yes, I didn't think it was necessary at first, but ended up adding it later for exactly that reason. The number is just a byte so it wraps around, so just look for changes to know if a new packet is there.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute