From 72908114b696f33cc16e57129a7d5e17c40e0f23 Mon Sep 17 00:00:00 2001 From: Nate Bailey Date: Mon, 29 Jan 2024 18:54:38 -0500 Subject: [PATCH] [#90] separated shooter system tests into differnt files. --- .../command/tests/ShooterSystemTest.java | 54 ------------------- 1 file changed, 54 deletions(-) delete mode 100644 src/main/java/frc/robot/command/tests/ShooterSystemTest.java diff --git a/src/main/java/frc/robot/command/tests/ShooterSystemTest.java b/src/main/java/frc/robot/command/tests/ShooterSystemTest.java deleted file mode 100644 index 328cfcd7..00000000 --- a/src/main/java/frc/robot/command/tests/ShooterSystemTest.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) FIRST and other WPILib contributors. -// Open Source Software; you can modify and/or share it under the terms of -// the WPILib BSD license file in the root directory of this project. - -package frc.robot.command.tests; - -import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; -import edu.wpi.first.wpilibj2.command.WaitCommand; -import frc.robot.command.tests.testCommands.CollectorTest; -import frc.robot.command.tests.testCommands.FlywheelTest; -import frc.robot.command.tests.testCommands.IndexerTest; -import frc.robot.command.tests.testCommands.PivotTest; -import frc.robot.subsystems.Collector; -import frc.robot.subsystems.Flywheel; -import frc.robot.subsystems.Indexer; -import frc.robot.subsystems.Pivot; -import frc.robot.subsystems.Shooter; -import frc.thunder.command.TimedCommand; -import frc.thunder.testing.SystemTestCommandGroup; - -public class ShooterSystemTest extends SystemTestCommandGroup { - - public ShooterSystemTest(Shooter shooter, Flywheel flywheel, Collector collector, Indexer indexer, Pivot pivot, double speed) { - super( - new SequentialCommandGroup( - new WaitCommand(0.5), - new TimedCommand(new FlywheelTest(flywheel, speed, 0), 2), // Motor 1 out - new WaitCommand(1), - new TimedCommand(new FlywheelTest(flywheel, -speed, 0), 2), // Motor 1 in - new WaitCommand(1), - new TimedCommand(new FlywheelTest(flywheel, 0, speed), 2), // Motor 2 out - new WaitCommand(1), - new TimedCommand(new FlywheelTest(flywheel, 0, -speed), 2), // Motor 2 in - new WaitCommand(1), - new TimedCommand(new FlywheelTest(flywheel, speed, speed), 2), // Both out - new WaitCommand(1), - new TimedCommand(new FlywheelTest(flywheel, -speed, -speed), 2), // Both in - new WaitCommand(1), - new TimedCommand(new PivotTest(pivot, speed), 2), // Pivot up - new WaitCommand(1), - new TimedCommand(new PivotTest(pivot, -speed), 2), // Pivot down - new WaitCommand(1), - new TimedCommand(new IndexerTest(indexer, speed), 2), // Indexer out - new WaitCommand(1), - new TimedCommand(new IndexerTest(indexer, -speed), 2), // Indexer in - new WaitCommand(1), - new TimedCommand(new CollectorTest(collector, speed), 2), // Collector out - new WaitCommand(1), - new TimedCommand(new CollectorTest(collector, -speed), 2) // Collector in - ) - ); - } - -}