View Single Post
  #3   Spotlight this post!  
Unread 05-03-2006, 18:34
abrockhoff abrockhoff is offline
Team 11 Programming Captain
AKA: Alex Brockhoff
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: New Jersey
Posts: 16
abrockhoff will become famous soon enough
Send a message via AIM to abrockhoff
Re: calculating distance

.. because of your phrasing im not sure if your talking about shooting distance or the distance your robot travels in autonomous mode.

If I'm correct in thinking that your talking about driving distance in autonomous mode, there are quite a few options to find the distance your traveling, the first is encoders, which you say your having trouble with.

You can also try to use timer interrupts, but if your having trboule with that, you can just count program loops. Each loop is 26 milliseconds, so depending on you robots speed you can estimate the loop count you need to travel a certain distance, and then jsut test your autonomous mode to perfect it.