mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Rename Related Commands
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user