|
YEA!
OK, we figured it out - and far more acurately than the pegasus code (natururally, there is the trade off of program space, but it actually takes up less variable space than their's).
Basically, we devided the joystick up into octants, than used a taylor approximation on the inverse sine, and decided the power and direction by quadrant using some modified x>y if statements.
If you would like the code, e-mail me.
__________________
"Without the wind, the grass does not move. Without software, hardware is useless.''
Thus spake the Master Programmer
The Tao of Programming
Translated by: Geoffrey James
|