|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get distance from cmucam | ModMan24 | Programming | 14 | 29-10-2010 17:51 |
| Sharp IR distance sensors | Gdeaver | Electrical | 13 | 10-02-2007 20:36 |
| Some ways to measure distance during autonomous | shamu1001 | Programming | 2 | 06-02-2006 15:24 |
| Center to Center Distance for 2002 Chaiphua and Cluster gear | sanddrag | Motors | 1 | 20-07-2005 07:36 |
| Long distance... | Ashley Christine | Chit-Chat | 6 | 27-04-2005 15:11 |