Changes between Version 3 and Version 4 of ControlSystems/SampleCode/XboxController
- Timestamp:
- Nov 3, 2019, 10:05:37 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SampleCode/XboxController
v3 v4 75 75 76 76 If you're stuck and want to see the solution, it's [wiki://ControlSystems/SampleCode/XboxController/Solution here] 77 78 * NOTE: if you are using a Logitech F310 gamepad, note that the gamepad uses different constants for accessing the joysticks than the xbox controller; you can access the joystick axes using the method xbox.getRawAxis(n) where n is the axes number. 79 * 0=left X axis 80 * 1=left Y axis 81 * 2=left analog trigger 82 * 3=right analog trigger 83 * 4=right X axis 84 * 5=right Y axis 85 So, for example, to read the right-hand Y-axis position: 86 {{{ 87 double right_Y = xbox.getRawAxis(5); 88 }}}