Go to Post I can't believe that I said the CD community could be patient - in December. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-10-2006, 07:02 AM
Joshua Lynn Joshua Lynn is offline
Registered User
FRC #0423 (SEC Mechanical Mayhem)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Elkins Park, PA
Posts: 16
Joshua Lynn is on a distinguished road
GetPacketNumber usage

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
Reply With Quote
  #2   Spotlight this post!  
Unread 02-11-2006, 08:10 AM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 537
BradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud ofBradAMiller has much to be proud of
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gear Sensor Competition Usage Feedback de_ Electrical 6 05-15-2005 02:15 PM
Yellow card / Red card usage at 2004 IRI Andy Baker Rules/Strategy 53 08-01-2004 11:35 PM
Linux usage of PBASIC djcapelis Programming 2 05-25-2003 10:49 PM
Multiple files usage punarhero Programming 2 01-12-2003 10:45 AM
Kit Materials Usage & Limitations Rockstar75 Rules/Strategy 1 01-10-2002 04:19 PM


All times are GMT -5. The time now is 11:15 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi