View Single Post
  #1   Spotlight this post!  
Unread 01-02-2010, 23:15
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Logitech Dual Action (Axis Issue)

Quote:
Originally Posted by Alan Anderson View Post
The X axis is, as you probably could guess, Axis 1(x). The Y axis is similarly obvious as Axis 2(y). I don't know what third axis you are looking for.

However, the Holonomic drive vi doesn't want Joystick axis inputs. It wants a magnitude (0 to 1), a direction in degrees (0 to 360), and a turn rate (-1 to 1). You can do the Cartesian to polar conversion math yourself, or you can use the "Re/Im to r/theta" complex number vi to turn X and Y axis numbers into a magnitude and direction in radians, then scale the direction appropriately.
Top part- I understand X axis is 1(x) & opposite with 2 but which joysticks are those or is it the d pad (a logitech dual action has 6 axes (dpad(2)+left joy.(2)+right joy.(2)=6))

Bottom Part- I already have that long conversion in a sub vi that works

----------------
Now playing: Stevie Ray Vaughan - Tin Pan Alley (aka Roughest Place In Town) (Live)
via FoxyTunes
Reply With Quote