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


Ignore:
Timestamp:
Nov 8, 2019, 11:01:44 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/DCMotor/CANCode

    v2 v3  
     1{{{
    12/*----------------------------------------------------------------------------*/
    23/* Copyright (c) 2017-2018 FIRST. All Rights Reserved.                        */
     
    6263  @Override
    6364  public void teleopPeriodic() {
    64     // Read xbox controller left joystick x axis
     65    // Read xbox controller left joystick Y axis
    6566    // value returned is between -1.0 and 1.0
    6667
    6768    // For xbox controller, uncomment the following line
    68     // double x = xbox.getX(Hand.kLeft);
     69    // double x = xbox.getY(Hand.kLeft);
    6970    // For Logitech F310 controller, uncomment the following line
    70     // double x = xbox.getRawAxis(1);
     71    double x = -xbox.getRawAxis(1);
    7172   
    7273    // DC Motor controllers apply between -1.0 (full reverse)
     
    8384  }
    8485}
     86}}}