Quote:
|
Originally Posted by Donut
If you write your own code for finding the magnitude and direction of the joystick, avoid using arctan and square root functions at all costs...
|
We decided at the outset to use integer math, so I don't have any data on using floating point. Your experience, however, is insightful. We wrote table lookups for sine/cosine and arctan, and, like you, wrote an integer square root. We had no timing problems with the main loop.
Eric