Go to Post Don't underestimate the ability of a highly skilled technician with simple tools (and don't overestimate the ability of an unskilled fool with exotic tools!). - dlavery [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, 02:43
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
Code cycles per second

Posted by Patrick Dingle at 03/24/2001 9:19 AM EST


Coach on team #639, Red B^2, from Ithaca High School and Cornell University.



I'm pretty sure I heard (somewhere) the program cycles 40 times per second... Can anyone confirm or discomfirm that number? What i'm ultimately interested in knowing is how many packets per second the robot controller receives from the operator interface, and how many packets per second the operator interface receives from the controller. Does code size effect this rate?

Patrick


__________________
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, 02:43
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
Re: Code cycles per second

Posted by Joe Ross at 03/24/2001 3:48 PM EST


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


In Reply to: Code cycles per second
Posted by Patrick Dingle on 03/24/2001 9:19 AM EST:



: I'm pretty sure I heard (somewhere) the program cycles 40 times per second... Can anyone confirm or discomfirm that number? What i'm ultimately interested in knowing is how many packets per second the robot controller receives from the operator interface, and how many packets per second the operator interface receives from the controller. Does code size effect this rate?

The robot receives data from the modems 40 times a second. it is possible for your program to to execute slower than that, though it doesn't usually happen unless you have a lot of debug statements in your code. There is a variable "delta_t" that tells you how many packets you have missed since the last time that you went through the loop.


__________________
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, 02:43
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
Re: Code cycles per second

Posted by Matt Leese at 03/24/2001 9:38 PM EST


Other on team #73, Tigerbolt, from Edison Technical HS and Alstom & Fiber Technologies & RIT.


In Reply to: Re: Code cycles per second
Posted by Joe Ross on 03/24/2001 3:48 PM EST:



Ok, to further explain what Joe said:

A packet is sent from the OI to the RC 40 times every second. Your program, however, is not guaranteed to get every packet. This is because of the tri-microcontroller design of the RC. The Master Processor reads the data from the radio modem, the analog inputs, and the digital inputs. The Master Processor then passes it on to the BS2X (I believe all three microcontrollers are BS2X but the InnovationFIRST labels the user programmable one the BS2X). The BS2X reads the data at the beginning of a loop. The BS2X will block (meaning wait) until data is available. The variable packet_num will tell you which packet number you are on. This number does wrap around so beware. There also is a variable deltav that tells you how many packets you've missed. Therefore you can get a somewhat accurate measure of how much time has passed between loops. This should be accurate to .0225 seconds but I wouldn't count on that level accuracy.

Matt
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
Autonomous Code From Experience EbonySeraphim Programming 7 14-03-2003 21:56
Autonomous code PBoss Programming 7 14-01-2003 15:29
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
Patent source code? Kyle Fenton Chit-Chat 3 20-10-2001 17:53


All times are GMT -5. The time now is 01:34.

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