Go to Post I hope that all of our new members are as helpful as the one above. We will be in for an amazing season if that is the case. - Greg Needel [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 10-02-2012, 01:33
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Distance Algorithm

So far it's generally accurate within a few inches. Tweak the FOV number a little though, if you need. And keep in mind that FOV will change depending on if you're using the Axis 206 or the Axis M1011 camera.

Since we're using the height of the rectangle, you will notice increased error if you're driving up really close to it, since your angle will start getting funky, but the alternative is using the width, and that'll get thrown off by moving left to right at all. What we figure is since we're shooting we're not too likely to be up really close to the target anyways, so it's better to make that tradeoff.

Also, I accidentally have width*x_res writte in that image, that should be y_res if you're using the height of the rectangle.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi