View Single Post
  #2   Spotlight this post!  
Unread 15-07-2010, 01:10
rahilm's Avatar
rahilm rahilm is offline
Registered User
AKA: Rahil Mehta
FRC #0668 (The Apes of Wrath)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2007
Location: San Jose, CA
Posts: 116
rahilm has a spectacular aura aboutrahilm has a spectacular aura about
Re: Throttle Axis on Logitech Extreme 3D Pro

What we do is instead of creating a custom joystick object is to instead use the default joystick object. Using that, and the getRawAxis() function, with printf or cout, you can see which axis is being manipulated when you change the throttle.

Basically:

joystick *MyJoystick;

MyJoystick = new joystick();

printf("Axis 1: %f Axis 2: %f ....", MyJoystick->getRawAxis(1), MyJoystick->getRawAxis(2));
__________________
Team 668 - Apes of Wrath - 2008-2011
Team 668 - Apes of Wrath - 2011-Present (Mentor)

Last edited by rahilm : 15-07-2010 at 01:21.