View Single Post
  #3   Spotlight this post!  
Unread 10-12-2007, 15:14
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Help with Angles and distance

Quote:
Originally Posted by JesseK View Post
That distance, minus all negligible mathematical components, is roughly the distance between the GPS unit and the center of rotation.
Actually, it is the location of the GPS receive antenna that is the critical item. The location of the GPS engine is irrelevant, but the point remains valid.

Instead of trig, how about just using a ratio, for example for every n units in X you need to also move i units in Y. If your units are meters, and to get to New(X,Y) you need to move 4,11 meters, break that up into little bites and for every 4 bites in the X direction you should move 11 bites in Y.

Doesn't satisfy your assignment, but computationally it is much easier.

Another alternative is a look-up table, just calculate the angles & distance for every possibility (say, up to 50 meters) and store them in a table, so when X,Y = n,i, just look up the answer.

Don
__________________

I am N2IRZ - What's your callsign?