]> git.taranathan.com Git - FRC2026.git/commitdiff
don't need these
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Tue, 24 Feb 2026 04:09:24 +0000 (20:09 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Tue, 24 Feb 2026 04:09:24 +0000 (20:09 -0800)
src/test/java/frc/robot/subsystems/Intake/ClimbTest.java [deleted file]
src/test/java/frc/robot/subsystems/Intake/IntakeTest.java [deleted file]

diff --git a/src/test/java/frc/robot/subsystems/Intake/ClimbTest.java b/src/test/java/frc/robot/subsystems/Intake/ClimbTest.java
deleted file mode 100644 (file)
index 687b9f4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-package frc.robot.subsystems.Intake;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-import org.junit.jupiter.api.Test;
-
-import edu.wpi.first.math.util.Units;
-import frc.robot.subsystems.Climb.LinearClimb;
-
-public class ClimbTest {
-
-    private LinearClimb climb = new LinearClimb();
-
-
-    @Test
-    public void conversionTest() {
-        
-
-        assertEquals(2 * Math.PI * Units.inchesToMeters(0.334), climb.rotationsToMeters(45), 0.0001);
-        // the methods should be inverses of each other
-        assertEquals(15.0, climb.rotationsToMeters(climb.metersToRotations(15.0)), 0.0001);
-    }
-}
diff --git a/src/test/java/frc/robot/subsystems/Intake/IntakeTest.java b/src/test/java/frc/robot/subsystems/Intake/IntakeTest.java
deleted file mode 100644 (file)
index 36fd70b..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package frc.robot.subsystems.Intake;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.Test;
-
-public class IntakeTest {
-    Intake intake = new Intake();
-
-    @AfterEach
-    public void cleanup() {
-        intake.close();
-    }
-
-    /** 
-     * Test the rotations to inches and inches to rotations conversion functions.
-     * Assumes a gear ratio of 36:12 (= 3).
-     * Assumes a 10DP rack and a 10-tooth rack pinion.
-     */
-    @Test
-    public void conversionTest() {
-        // 3 motor rotations will turn the rack pinion once.
-        // That will advance the rack 10 teeth.
-        // linear distance will be pi * 10 / 10 = pi.
-        assertEquals(Math.PI, intake.rotationsToInches(3.0), 0.0001);
-
-        // traveling pi inches should take 3 motor turns
-        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);
-    }
-}