diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index b2d0a91a..59237959 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOSim.kt b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOSim.kt index 546d52dd..f1d0c332 100644 --- a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOSim.kt +++ b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/swervemodule/SwerveModuleIOSim.kt @@ -214,8 +214,9 @@ class SwerveModuleIOSim(override val label: String) : SwerveModuleIO { ) { Logger.recordOutput("$label/desiredDriveSpeedMPS", speed.inMetersPerSecond) val feedforward = driveFeedForward.calculate(speed, acceleration) + val feedback = driveFeedback.calculate(driveVelocity, speed) - setDriveVoltage(feedforward + driveFeedback.calculate(driveVelocity, speed)) + setDriveVoltage(feedforward + feedback) setSteeringSetpoint(steering) }