Changes between Version 5 and Version 6 of ControlSystems/SampleCode/XboxController


Ignore:
Timestamp:
Nov 3, 2019, 10:09:51 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SampleCode/XboxController

    v5 v6  
    7676If you're stuck and want to see the solution, it's [wiki://ControlSystems/SampleCode/XboxController/Solution here]
    7777
    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    [[BR]]
    86    So, for example, to read the right joystick Y-axis position:
    87    {{{
    88       double right_Y = xbox.getRawAxis(5);
    89    }}}
     78* NOTE: the Logitech F310 game controller works slightly differently from the standard xbox controller; to use the joysticks on the Logitech controller see [wiki://ControlSystems/GameControllers/LogitechF310 here]