[examples] Remove "this" keyword from SwerveModule (#4043)

This commit is contained in:
Leonard Abbas
2022-02-21 09:27:00 -08:00
committed by GitHub
parent 18e262a100
commit a260bfd83b

View File

@@ -49,9 +49,9 @@ public class SwerveModule {
m_driveMotor = new Spark(driveMotorChannel);
m_turningMotor = new Spark(turningMotorChannel);
this.m_driveEncoder = new Encoder(driveEncoderPorts[0], driveEncoderPorts[1]);
m_driveEncoder = new Encoder(driveEncoderPorts[0], driveEncoderPorts[1]);
this.m_turningEncoder = new Encoder(turningEncoderPorts[0], turningEncoderPorts[1]);
m_turningEncoder = new Encoder(turningEncoderPorts[0], turningEncoderPorts[1]);
// Set the distance per pulse for the drive encoder. We can simply use the
// distance traveled for one rotation of the wheel divided by the encoder