Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava


Ignore:
Timestamp:
Oct 7, 2019, 9:39:18 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/IntroRobotJava

    v1 v2  
    2929* In the Class definition where variables are defined, add {{{   private XboxController xbox; }}}
    3030* 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
     33Your program should look like [wiki://ControlSystems/IntroRobotJava/XboxExample this]
    3234
    3335Use the WPILib icon to build your new program: W->Build Robot Code