Quote:
Originally Posted by JesseK
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