-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
298e213
commit 04ff6a7
Showing
7 changed files
with
75 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/frc/robot/command/tests/ShooterSystemTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// 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 | ||
) | ||
); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters