Go to Post We should have a 'Steps Taken For FIRST' contest. Everyone wear a pedometer and keep a log of how many miles you walked at the St. Louis Championship. That could be a lot of fun. Do they make pedometers for robot carts? - JaneYoung [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-06-2002, 00:19
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Counting using delta_t and packet_num

Posted by Kai Zhao at 2/5/2001 9:18 PM EST


Student on team #686, Botler & Associates, from Linganore High School, Frederick MD and NASA/GFSC and Smiths Industries.



I have read previous postings on how to do timing but I don't understand the exact data coming out of delta_t and packet_num. I would love to play around with delta_t and packet_num but my team doesn't have a working robot to test with.

From what I understand, delta_t is the time it took to complete the last? loop in milliseconds?
packet_num is a packet counter, it increments in 1's about every 40ms? It resets itself to zero after it reaches 254 or 255? Right? Wrong? Way off?

-kai


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 24-06-2002, 00:19
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
delta_t and packet_num

Posted by Joe Johnson at 2/5/2001 10:11 PM EST


Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.


In Reply to: Counting using delta_t and packet_num
Posted by Kai Zhao on 2/5/2001 9:18 PM EST:



My understanding is that delta_t is the number of data
packets MISSED by your PBASIC program. This occurs
when your code takes longer than the time it takes to
send another data packet (some say 40ms but I thought
it was 25ms -- these are very similar numbers and I can
never hold them straight in my head -- either it is 40
Hz and 25msec or it is 25Hz and 40msec -- somebody help
me out).

Packet number is an index that tells you the index of
the packet of data you just got. It increases by one
each time the OI sends a data packet and it wraps
around every
255 packets.

These two bytes carry the same information, just parsed
a bit differently.

Joe J.



__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #3   Spotlight this post!  
Unread 24-06-2002, 00:19
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
radio transmits at 40 packets/sec (eom)

Posted by Joe Ross at 2/6/2001 2:34 AM EST


Engineer on team #330, Beach Bot, from Hope Chapel Academy and NASA/JPL , J&F Machine, and Raytheon.


In Reply to: delta_t and packet_num
Posted by Joe Johnson on 2/5/2001 10:11 PM EST:



eom means end of message


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:13.

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


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