View Single Post
  #14   Spotlight this post!  
Unread 11-02-2012, 13:50
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

Quote:
Originally Posted by nickpeq View Post
You should be able to account for being under the targets by checking when width:height > 1.33 and calculating an angle from that ratio.
This wouldn't really work very well though unless you're directly in line with the target. Being at all to the left or the right would mean both x and y lengths are skewing, and not necessarily proportionally.
Reply With Quote