28 | | * In the Robot class definition where variables are defined, add {{{ XboxController xbox; }}} |
29 | | * In the function robotInit() add: {{{ xbox = new XboxController(0); }}} |
30 | | * In the function robotPeriodic() add: {{{ SmartDashboard.putNumber("Left Joystick X", xbox.getX(Hand.kLeft)); }}} |
| 28 | * In the Robot class definition where variables are defined, add |
| 29 | {{{ |
| 30 | XboxController xbox; |
| 31 | }}} |
| 32 | * In the function robotInit() add: |
| 33 | {{{ |
| 34 | xbox = new XboxController(0); |
| 35 | }}} |
| 36 | * In the function robotPeriodic() add: |
| 37 | {{{ |
| 38 | SmartDashboard.putNumber("Left Joystick X", xbox.getX(Hand.kLeft)); |
| 39 | }}} |