![]() |
Calculating Camera Distance
We have the camera set up on our robot, but we are having some very annoying problems. When we hook up our laptop to the rc, it shows the distance being anywhere between -30 to 67000. If anyone has any idea on the equation for calculating distance from the camera to the green cathodes, please post here. Thanks
|
Re: Calculating Camera Distance
Kevin Watson has an idea, why not try here
http://kevin.org/frc/2007_frc_range_calc.pdf |
Re: Calculating Camera Distance
we have that already and it is still not working
|
Re: Calculating Camera Distance
Are you able to get different tilt angles when you move the robot manually towards the light? We did that as an initial test and had the robot stop when it was ten feet away from the light.
Are you using Kevin's default camera code? That seemed to work fine for us. |
Re: Calculating Camera Distance
Make sure when you are printf'ing you cast the data as an unsigned int.
|
Re: Calculating Camera Distance
Where in the code is the angle defined?
|
Re: Calculating Camera Distance
Quote:
|
| All times are GMT -5. The time now is 04:15. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi