|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Distance calculations
We are looking for the complete code to calculate the distance from the camera to the light...
Thanks in advance. ![]() |
|
#2
|
||||
|
||||
|
Re: Distance calculations
http://www.chiefdelphi.com/forums/sh...amera+distance
Specifically Quote:
This might also be helplful, but it is about how to calculate the angle to which one should fire. http://www.chiefdelphi.com/forums/sh...e ra+distance |
|
#3
|
|||
|
|||
|
Re: Distance calculations
Then once you have an accurate tilt angle from the camera to the target it is normal trig (tangent) to use that angle and the vertical height between the camera and the target center.
The article Windward quoted I do not believe has any example code with it. I certainly never went that far since our team isn't using the enhanced accuracy values. |
|
#4
|
||||
|
||||
|
Re: Distance calculations
We had a nice Distance_Function() in our program using the tan function and everything, but we found it to not be necessary, since it correlates directly to the tilt_angle so we mapped out distances using the tilt angle as a primary source of measure, works the same, it's just much simpler.
|
![]() |
| 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 |
| Long distance... | Ashley Christine | Chit-Chat | 6 | 27-04-2005 15:11 |
| Distance timing out | bludstayne | Programming | 5 | 05-03-2004 13:47 |