Skip to content

Commit

Permalink
made feedback variable in SwerveModuleIOSim 🤩
Browse files Browse the repository at this point in the history
  • Loading branch information
00magikarp committed Jul 4, 2024
1 parent ccef242 commit 404417c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified .gradle/file-system.probe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 404417c

Please sign in to comment.