Changes between Version 6 and Version 7 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN


Ignore:
Timestamp:
Nov 12, 2019, 7:57:06 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous/CAN

    v6 v7  
    2020    leftMotor.configFactoryDefault();
    2121    rightMotor.configFactoryDefault();
     22    // Right motor must turn in opposite direction
     23    rightMotor.setInverted(true);
    2224    // Quadrature encoders are connected directly to the motor controllers
    2325    leftMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);
     
    4951    // start motors turning forward at 20% power
    5052    leftMotor.set(0.20);
    51     // to go forward, left motor turns clockwise, right motor counter-clockwise
    52     rightMotor.set(-0.20);
     53    rightMotor.set(0.20);
    5354  }}}
    5455