View Single Post
  #10   Spotlight this post!  
Unread 04-01-2012, 20:22
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: USB Game controllers

Quote:
Originally Posted by Mike AA View Post
But you have to remap what axis you are reading.
In Java or C++,,,, How do you do the remappings ?

I'm not quite getting how to read the joysticks with the WPI libs.

EDIT: I found the following in another thread.

Use controller.getRawAxis(int axis)

The axis numbers are below:

Left Stick:
X - 1
Y - 2

Right Stick:
X - 3
Y - 4

Triggers(These are one axis. They are sitting at zero when neither trigger is pressed)
Axis 5
__________________
Ed Barker

Last edited by ebarker : 04-01-2012 at 21:09.
Reply With Quote