Changes between Version 20 and Version 21 of ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders


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

--

Legend:

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

    v20 v21  
    5757   // A quadrature encoder is connected to the TalonSRX
    5858   m_Left.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);
     59   // Reset encoder count to 0
     60   m_Left.setSelectedSensorPosition(0);
    5961  }}}
    60 * In robotPeriodic() read and display the encoder valuey
     62* In robotPeriodic() read and display the encoder value
    6163  {{{
    6264    SmartDashboard.putNumber("Encoder value", m_Left.getSelectedSensorPosition());