View Single Post
  #1   Spotlight this post!  
Unread 05-02-2017, 23:54
WSiggs WSiggs is offline
Pb Programmer
FRC #4908 (Dragons)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Duxbury Massachusetts
Posts: 38
WSiggs is on a distinguished road
How to calculate target distance?

Our team is working on implementing vision processing, and we have rotation calculations down, but are unsure about how to approach calculating distance. I have seen that some people use a scale factor as a direct ratio between height of the target and that seems easy enough, but I have heard that this doesn't have the best properties (from 254). They recommend using "line - plane intersections", but I have had trouble finding some examples of this. Where would I be able to find examples of these calculations? And are there any other better ways to calculate distance?
Reply With Quote