Skip to content

Commit

Permalink
fix unit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelLesirge committed Jan 16, 2025
1 parent 8d1d1af commit cd6234c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void setTurnVoltage(double volts) {
@Override
public void setDriveVelocity(double velocityRadsPerSec, double feedForwardVoltage) {
driveFeedback.setReference(
Units.radiansToRotations(velocityRadsPerSec),
Units.radiansPerSecondToRotationsPerMinute(velocityRadsPerSec),
ControlType.kVelocity,
ClosedLoopSlot.kSlot0,
feedForwardVoltage,
Expand Down

0 comments on commit cd6234c

Please sign in to comment.