Changes between Version 2 and Version 3 of ControlSystems/SoftwareTeam/Training/GettingStarted/XboxController


Ignore:
Timestamp:
Oct 30, 2019, 10:43:29 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

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

    v2 v3  
    2626          import edu.wpi.first.wpilibj.GenericHID.Hand;
    2727    }}}
    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    }}}
    3140
    3241Your program should look like [wiki://ControlSystems/SoftwareTeam/Training/IntroRobotJava/XboxExample this]