[examples] Updated type in Java SwerveModule (#3928)

Changed turnOutput from var to double in SwerveModule. It doesn't make sense for driveOutput and turnOutput to have different types so they should both be doubles.
This commit is contained in:
Lenny Abbas
2022-01-17 12:20:55 -08:00
committed by GitHub
parent f3a0b5c7d7
commit 5ba69e1af1

View File

@@ -98,7 +98,7 @@ public class SwerveModule {
m_drivePIDController.calculate(m_driveEncoder.getRate(), state.speedMetersPerSecond);
// Calculate the turning motor output from the turning PID controller.
final var turnOutput =
final double turnOutput =
m_turningPIDController.calculate(m_turningEncoder.get(), state.angle.getRadians());
// Calculate the turning motor output from the turning PID controller.