Skip to content

Commit

Permalink
Update CanSparkMaxSmartMotionRotationalPIDController.java degrees to eu
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixmix00 committed Aug 17, 2023
1 parent c6f6d36 commit 5bbdf08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private double euToDegrees(double eu){
}

private double degreesToEu(double degrees){
return (1/degreesToEncoderUnitsRatio) * degrees;
return degrees / degreesToEncoderUnitsRatio;
}

//manually changing the state
Expand Down

0 comments on commit 5bbdf08

Please sign in to comment.