View Single Post
  #6   Spotlight this post!  
Unread 20-01-2011, 22:07
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: Logitech Dual Action Setup for 2 Axis help please?

Quote:
Originally Posted by robotic321 View Post
alright, but how would i declare it? This is the way i thought it could work itself :


Joystick joy1 = new Joystick(1);


But, how would i refer to the axis number that i desire and not have it get a heart attack (stay away literal types (_v)
Yes, thats exactly how to do it. As Robby Unruh said, you would them call

Code:
joy1.getRawAxis(1)
to get the value of the first axis, and you would use the proper index from the list that Robby Unruh posted. For a two sided drive system, I believe you would want 2 and 5.
Reply With Quote