Rename Related Commands

This commit is contained in:
Keenan D. Buckley
2020-03-08 10:24:40 -06:00
parent e9754feabd
commit 6ad2a61413
4 changed files with 8 additions and 8 deletions
@@ -9,7 +9,7 @@ package frc4388.robot.commands.shooter;
import edu.wpi.first.wpilibj2.command.ParallelRaceGroup;
import edu.wpi.first.wpilibj2.command.RunCommand;
import frc4388.robot.commands.storage.StorageRun;
import frc4388.robot.commands.storage.StorageFire;
import frc4388.robot.subsystems.Shooter;
import frc4388.robot.subsystems.ShooterAim;
import frc4388.robot.subsystems.ShooterHood;
@@ -30,7 +30,7 @@ public class ShootFireGroup extends ParallelRaceGroup {
new RunCommand(() -> m_shooter.runDrumShooterVelocityPID(m_shooter.addFireVel()), m_shooter),
new RunCommand(() -> m_shooterHood.runAngleAdjustPID(m_shooterHood.addFireAngle()), m_shooterHood),
new TrackTarget(m_shooterAim)
//new StorageRun(m_storage)
//new StorageFire(m_storage)
);
}
}
@@ -8,7 +8,7 @@
package frc4388.robot.commands.shooter;
import edu.wpi.first.wpilibj2.command.ParallelDeadlineGroup;
import frc4388.robot.commands.storage.StoragePrepAim;
import frc4388.robot.commands.storage.StoragePrep;
import frc4388.robot.subsystems.Shooter;
import frc4388.robot.subsystems.ShooterAim;
import frc4388.robot.subsystems.ShooterHood;
@@ -30,7 +30,7 @@ public class ShootPrepGroup extends ParallelDeadlineGroup {
new TrackTarget(m_shooterAim),
new ShooterVelocityControlPID(m_shooter),
new HoodPositionPID(m_shooterHood),
new StoragePrepAim(m_storage)
new StoragePrep(m_storage)
);
}
}
@@ -11,13 +11,13 @@ import edu.wpi.first.wpilibj2.command.CommandBase;
import frc4388.robot.Constants.StorageConstants;
import frc4388.robot.subsystems.Storage;
public class StorageRun extends CommandBase {
public class StorageFire extends CommandBase {
Storage m_storage;
/**
* Runs the Storage at a speed
* @param storageSub The Storage subsytem
*/
public StorageRun(Storage storageSub) {
public StorageFire(Storage storageSub) {
m_storage = storageSub;
}
@@ -12,14 +12,14 @@ import edu.wpi.first.wpilibj2.command.CommandBase;
import frc4388.robot.Constants.StorageConstants;
import frc4388.robot.subsystems.Storage;
public class StoragePrepAim extends CommandBase {
public class StoragePrep extends CommandBase {
Storage m_storage;
double startTime;
/**
* Prepares the Storage for aiming
* @param storeSub The Storage subsystem
*/
public StoragePrepAim(Storage storeSub) {
public StoragePrep(Storage storeSub) {
m_storage = storeSub;
addRequirements(m_storage);
}