Thread: triangulation
View Single Post
  #7   Spotlight this post!  
Unread 06-02-2004, 22:44
Gene F's Avatar
Gene F Gene F is offline
FIRST Fanatic
AKA: Gene Falendysz
#0343 (Metal in Motion)
Team Role: Engineer
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Oconee County, SC
Posts: 218
Gene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to beholdGene F is a splendid one to behold
Send a message via AIM to Gene F
Re: triangulation

Given that A and B are the lengths of the segments of the line between the beacons bisected by a perpendicular line to your robot of length C and the angles from that perpendicular to the beacons are given as T1 and T2.

A + B = 24

TAN = Opposite/Adjacent

T1 and T2 are angles gleaned from finding the beacons.

TAN(T1) = A/C

TAN(T2) =B/C

Therefore:

C*TAN(T1) = A

C*TAN(T2) = B

C*TAN(T1) + C*TAN(T2) = 24

C*( TAN(T1) + TAN(T2)) = 24

C = 24/( TAN(T1) + TAN(T2)) - The distance away from the middle of the field!

A = C*TAN(T1) - The distance from the left side of the field

B = C*TAN(T2) - The distance to the right side of the field.

Be careful this gets a little flakey as you approach the middle of the field.

The compass is required to determine the perpendicular and to determine which side of the field you are on.


I'm a little rusty on my Trig. So correct me if I've made a mistake!
__________________
- Gene Falendysz