Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit 3064c1a

Browse files
authored
rename function (#38)
1 parent f22b793 commit 3064c1a

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

src/main/java/frc/robot/commands/EjectGP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void execute() {
3434
// Called once the command ends or is interrupted.
3535
@Override
3636
public void end(boolean interrupted) {
37-
globalHopper.setHopperMotorNuetralOutput();
37+
globalHopper.setOrientationMotorNuetralOutput();
3838
globalIntake.setIntakeNuetralOutput();
3939
}
4040

src/main/java/frc/robot/commands/Shoot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public Shoot(Stager passedStager, Shooter passedShooter) {
2424
public void initialize() {
2525
// The speed need to change to a real number.
2626
if ((globalShooter.getPropelMotorVelocity() > 1) && (globalShooter.getSpiralMotorVelocity() > 1)) {
27-
globalStager.setConveyorMotorVelocity(0.3);
27+
globalStager.setStagerMotorVelocity(0.3);
2828
} else {
29-
globalStager.setConveyorMotorVelocity(0);
29+
globalStager.setStagerMotorVelocity(0);
3030
}
3131
}
3232

src/main/java/frc/robot/commands/StageGP.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ public StageGP(Stager passedStager) {
1919
// Called when the command is initially scheduled.
2020
@Override
2121
public void initialize() {
22-
globalStager.setConveyorMotorVelocity(0.3);
22+
globalStager.setStagerMotorVelocity(0.3);
2323
}
2424

2525
// Called every time the scheduler runs while the command is scheduled.
2626
@Override
2727
public void execute() {
2828
if (globalStager.getHasGP()) {
29-
globalStager.setConveyorMotorVelocity(0);
29+
globalStager.setStagerMotorVelocity(0);
3030
} else {
31-
globalStager.setConveyorMotorVelocity(0.3);
31+
globalStager.setStagerMotorVelocity(0.3);
3232
}
3333
}
3434

3535
// Called once the command ends or is interrupted.
3636
@Override
3737
public void end(boolean interrupted) {
38-
globalStager.setConveyorMotorVelocity(0);
38+
globalStager.setStagerMotorVelocity(0);
3939
}
4040

4141
// Returns true when the command should end.

src/main/java/frc/robot/commands/intakeHopper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ public intakeHopper(Hopper subHopper) {
2222
@Override
2323
public void initialize() {
2424

25-
subHopper.setHopperMotorSpeed(.5);
25+
subHopper.setOrientationMotorSpeed(.5);
2626
}
2727

2828
// Called every time the scheduler runs while the command is scheduled.
2929
@Override
3030
public void execute() {
3131
if (subHopper.isHopperFull()) {
32-
subHopper.setHopperMotorNuetralOutput();
32+
subHopper.setOrientationMotorNuetralOutput();
3333
} else {
34-
subHopper.setHopperMotorSpeed(.5);
34+
subHopper.setOrientationMotorSpeed(.5);
3535
}
3636

3737
}
3838

3939
// Called once the command ends or is interrupted.
4040
@Override
4141
public void end(boolean interrupted) {
42-
subHopper.setHopperMotorNuetralOutput();
42+
subHopper.setOrientationMotorNuetralOutput();
4343
}
4444

4545
// Returns true when the command should end.

src/main/java/frc/robot/subsystems/Hopper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public Hopper() {
2323

2424
}
2525

26-
public void setHopperMotorSpeed(double speed) {
26+
public void setOrientationMotorSpeed(double speed) {
2727
orientationMotor.set(speed);
2828
}
2929

30-
public void setHopperMotorNuetralOutput() {
30+
public void setOrientationMotorNuetralOutput() {
3131
orientationMotor.set(0);
3232
}
3333

src/main/java/frc/robot/subsystems/Stager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public Stager() {
2020
hasGP = new DigitalInput(RobotMap.mapStager.HAS_GP_DIO);
2121
}
2222

23-
public void setConveyorMotorVelocity(double velocity) {
23+
public void setStagerMotorVelocity(double velocity) {
2424
stagerMotor.set(velocity);
2525
}
2626

27-
public void setConveyorMotorVelocityNuetralOutput() {
27+
public void setStagerMotorVelocityNuetralOutput() {
2828
stagerMotor.set(0);
2929
}
3030

0 commit comments

Comments
 (0)