View Single Post
  #8   Spotlight this post!  
Unread 20-01-2003, 15:58
Adam Collet Adam Collet is offline
Registered User
#0159 (Alpine Robotics)
 
Join Date: Nov 2002
Location: Ft. Collins, Colorado
Posts: 25
Adam Collet is an unknown quantity at this point
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