]> git.taranathan.com Git - FRC2026.git/commitdiff
f
authorSaara21 <113394225+Saara21@users.noreply.github.com>
Mon, 16 Feb 2026 21:07:39 +0000 (13:07 -0800)
committerSaara21 <113394225+Saara21@users.noreply.github.com>
Mon, 16 Feb 2026 21:07:39 +0000 (13:07 -0800)
src/test/java/frc/robot/subsystems/Intake/IntakeTest.java

index fe406cf70775d7f4ff29aa536184cbd96c38352f..36fd70be0b54549387692c8daeace7497401f3ba 100644 (file)
@@ -26,7 +26,7 @@ public class IntakeTest {
         assertEquals(Math.PI, intake.rotationsToInches(3.0), 0.0001);
 
         // traveling pi inches should take 3 motor turns
-        assertEquals(3.0, intake.inchesToRotations(3.14159), 0.0001);
+        assertEquals(3.0, intake.inchesToRotations(Math.PI), 0.0001);
 
         // the methods should be inverses of each other
         assertEquals(15.0, intake.rotationsToInches(intake.inchesToRotations(15.0)), 0.0001);