From 667deb6a8248ec6afe33d54a719a56dad06e19da Mon Sep 17 00:00:00 2001 From: dejabot <104333734+dejabot@users.noreply.github.com> Date: Thu, 23 Nov 2023 03:33:38 +0000 Subject: [PATCH] moar lint fun --- .../java/com/team766/robot/mechanisms/EncoderUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/team766/robot/mechanisms/EncoderUtils.java b/src/main/java/com/team766/robot/mechanisms/EncoderUtils.java index 5f41b6e..af152a6 100644 --- a/src/main/java/com/team766/robot/mechanisms/EncoderUtils.java +++ b/src/main/java/com/team766/robot/mechanisms/EncoderUtils.java @@ -33,7 +33,7 @@ public static double wristRotationsToDegrees(double rotations) { */ public static double elevatorHeightToRotations(double height) { // height * net gear ratio * (rotations / height) - return height * (36./12.) * (1./(1.641 * Math.PI)); + return height * (36./12.) * (1. / (1.641 * Math.PI)); } /** @@ -41,7 +41,7 @@ public static double elevatorHeightToRotations(double height) { */ public static double elevatorRotationsToHeight(double rotations) { // rotations * net gear ratio * (height / rotations) - return rotations * (12./36.) * ((1.641 * Math.PI)/1.); + return rotations * (12./36.) * ((1.641 * Math.PI) / 1.); } /** @@ -49,7 +49,7 @@ public static double elevatorRotationsToHeight(double rotations) { */ public static double shoulderDegreesToRotations(double angle) { // angle * net gear ratio * (rotations / degrees) - return angle * (4./1.) * (3. / 1.) * (1. / 360.); + return angle * (4. / 1.) * (3. / 1.) * (1. / 360.); } /** @@ -68,7 +68,7 @@ public static double shoulderRotationsToDegrees(double rotations) { * @return */ public static double lawOfCosines(double side1, double side2, double angle) { - double side3Squared = (Math.pow(side1,2.0)+Math.pow(side2,2.0)-2*side1*side2*Math.cos(Math.toRadians(angle))); + double side3Squared = (Math.pow(side1, 2.0) + Math.pow(side2, 2.0) - 2*side1*side2*Math.cos(Math.toRadians(angle))); return Math.sqrt(side3Squared); }