Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava
- Timestamp:
- Oct 7, 2019, 9:39:18 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava
v1 v2 29 29 * In the Class definition where variables are defined, add {{{ private XboxController xbox; }}} 30 30 * In the function robotInit() add: {{{ xbox = new XboxController(0); }}} 31 * In the function robotPeriodic() addd: {{{ SmartDashboard.putNumber("Left Joystick X", xbox.getX()); }}} 31 * In the function robotPeriodic() addd: {{{ SmartDashboard.putNumber("Left Joystick X", xbox.getX(Hand.kLeft)); }}} 32 33 Your program should look like [wiki://ControlSystems/IntroRobotJava/XboxExample this] 32 34 33 35 Use the WPILib icon to build your new program: W->Build Robot Code