View Single Post
  #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.