Go to Post Engineering still can't beat Physics! - Manoel [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 23-06-2002, 23:46
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
PBASIC Loop Speed?

Posted by Jay Lundy at 1/27/2001 10:22 PM EST


Student on team #254, The Cheesy Poofs, from Bellarmine College Preparatory.



Hey,
I'm new to this competition and the first time I ever looked at the PBASIC code was two days ago. Anyway, how do you accurately calculate the loop speed (the length of time each pass through the program takes) in PBASIC. My team and I are planning on using the Gyro and it requires this information. Thanks.


__________________
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 23-06-2002, 23:46
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: PBASIC Loop Speed?

Posted by Lloyd Burns at 1/28/2001 4:38 AM EST


Other on team #188, Woburn Robotics, from Woburn Collegiate and Canada 3000, ScotiaBank, Royal Bank Financial.


In Reply to: PBASIC Loop Speed?
Posted by Jay Lundy on 1/27/2001 10:22 PM EST:



: Hey,
: I'm new to this competition and the first time I ever looked at the PBASIC code was two days ago. Anyway, how do you accurately calculate the loop speed (the length of time each pass through the program takes) in PBASIC. My team and I are planning on using the Gyro and it requires this information. Thanks.

. Each time the OI sends a package of information, a packet number is assigned. Each time the RC receiver is kept waiting to receive a packet, it starts a timer, which appears to overflow for large amounts of time wasted. The results of the timer are available as delta_t.

. Into the default program, adjusted to allow variable "delta_t", I inserted, after the toggle 7 statement, "Debug home,dec delta_t,cr" and "Pause(x)". For 250
__________________
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 23-06-2002, 23:46
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
close enough for govt work...

Posted by control guy at 1/29/2001 10:29 AM EST


Student on team #250 from HVCC.


In Reply to: Re: PBASIC Loop Speed?
Posted by Lloyd Burns on 1/28/2001 4:38 AM EST:



The program loops are roughly 1/40 sec. Although, the time between loops can vary if you lose signal momentarily. Also, depending on your code, a program loop may take longer some times around than other times. Such as if you had many strings of if statements and you're having the program go here, then here, then here, etc., etc. Hope this helps.
__________________
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.
  #4   Spotlight this post!  
Unread 23-06-2002, 23:46
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: PBASIC Loop Speed?

Posted by Denny McBride at 1/28/2001 3:55 PM EST


Other on team #379, Robocats, from Girard High School.


In Reply to: PBASIC Loop Speed?
Posted by Jay Lundy on 1/27/2001 10:22 PM EST:



: Hey,
: I'm new to this competition and the first time I ever looked at the PBASIC code was two days ago. Anyway, how do you accurately calculate the loop speed (the length of time each pass through the program takes) in PBASIC. My team and I are planning on using the Gyro and it requires this information. Thanks.

If you are worried about how often the gyro is scanned, put it in a subroutine and call it up as often as you wish with in the main 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.
 


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
"Automatic Transmission" Madison Technical Discussion 70 24-11-2003 09:03
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
The New PBASIC rbayer Programming 10 07-01-2003 21:02
Power, speed, and torque... AGH Gui Cavalcanti Technical Discussion 5 10-11-2002 19:02
Calibrating speed controllers and joysticks thedillybar Technical Discussion 4 11-02-2002 13:24


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

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