|
Re: JAVA Gamepad help.
A little note about the XBox controllers: The joysticks tend to not center perfectly(depends on controller, but all of them seem to develop this issue over usage), so you may want to program a deadband into it before it goes anywhere useful. I can provide you with some example deadband code if you would like.
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
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.
2017 - San Diego Regional / Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
|