View Single Post
  #3   Spotlight this post!  
Unread 21-02-2006, 19:21
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: How can you figure out robot speed?!?!

if you need live speed a simple way to do it is like this:
Code:
 int time;
int gearteeth;
int speed;
if(time<38)
{
 gearteeth+=// put code in for gear tooth counter
time++;
}
else
{
speed = time;
time=0;
}
this will give you the amount of gear teeths over the given time since the default routine runs at roughly 38Hz that should give you a number fairly close to gear teeth count /sec
__________________
Team 701