Go to Post "FIRST: We take young human beings, born in captivity, educate them in science and technology, and re-release them into the wild." - kmcclary [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #6   Spotlight this post!  
Unread Today, 12:20
FuzzyLogic FuzzyLogic is offline
Registered User
FRC #3792 (Army Ants)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: Missouri
Posts: 3
FuzzyLogic is an unknown quantity at this point
Re: Distance Measurements to Target

We had this problem too with our vision measurements. We solved it by adjusting the viewing angle in our algorithm.

Take measurements from varying distances and plot them on a graph (actual distance on x axis, measured distance of y axis). It should be fairly linear. Find the slope of the line. Our slope was about 0.91.

tan(theta)/tan(current viewing angle) = slope

Theta is the viewing angle you should use in your algorithm.

After calibrating the viewing angle, our measurements are consistently with in 1-3 inches of the actual distance. I hope this works for you too!
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 20:37.

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