Changes between Version 20 and Version 21 of ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders
- Timestamp:
- Nov 8, 2019, 11:39:35 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders
v20 v21 57 57 // A quadrature encoder is connected to the TalonSRX 58 58 m_Left.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder); 59 // Reset encoder count to 0 60 m_Left.setSelectedSensorPosition(0); 59 61 }}} 60 * In robotPeriodic() read and display the encoder value y62 * In robotPeriodic() read and display the encoder value 61 63 {{{ 62 64 SmartDashboard.putNumber("Encoder value", m_Left.getSelectedSensorPosition());