Skip to content

Commit

Permalink
Double Precision.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jan 18, 2024
1 parent a41778a commit c88b568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/swervelib/motors/TalonFXSwerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void setReference(double setpoint, double feedforward, double position)
motor.setControl(m_velocityVoltageSetter.withVelocity(setpoint).withFeedForward(feedforward));
} else
{
motor.setControl(m_angleVoltageSetter.withPosition(setpoint / 360));
motor.setControl(m_angleVoltageSetter.withPosition(setpoint / 360.0));
}
}

Expand Down

0 comments on commit c88b568

Please sign in to comment.