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


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

--

Legend:

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

    v5 v6  
    2323    leftMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);
    2424    rightMotor.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);
    25     // Reset encoder counts to 0
    26     leftMotor.setSelectedSensorPosition(0);
    27     rightMotor.setSelectedSensorPosition(0);
    2825  }}}
    2926
     
    4744* In autonomousInit() start the motors:
    4845  {{{
     46    // Reset encoder counts to 0
     47    leftMotor.setSelectedSensorPosition(0);
     48    rightMotor.setSelectedSensorPosition(0);
    4949    // start motors turning forward at 20% power
    5050    leftMotor.set(0.20);