Skip to content

Commit

Permalink
Merge branch 'main' into 400-fix-smart-shoot-distance-calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Swordpartee committed Mar 9, 2024
2 parents 5a0ed29 + ca3fd1e commit 343b974
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/command/shoot/AmpShot.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ public AmpShot(Flywheel flywheel, Pivot pivot) {

@Override
public void initialize() {
flywheel.setTopMoterRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMoterRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
flywheel.setTopMotorRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMotorRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
pivot.setTargetAngle(CandConstants.AMP_ANGLE + pivot.getBias());
}

@Override
public void execute() {
flywheel.setTopMoterRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMoterRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
flywheel.setTopMotorRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMotorRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
pivot.setTargetAngle(CandConstants.AMP_ANGLE + pivot.getBias());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void initialize() {
shot = false;
startIndexing = false;
startTime = Timer.getFPGATimestamp();
flywheel.setTopMoterRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMoterRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
flywheel.setTopMotorRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMotorRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
pivot.setTargetAngle(CandConstants.AMP_ANGLE + pivot.getBias());
}

Expand All @@ -58,8 +58,8 @@ public void execute() {
indexer.indexUp();
}

flywheel.setTopMoterRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMoterRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
flywheel.setTopMotorRPM(CandConstants.AMP_TOP_RPM + flywheel.getBias());
flywheel.setBottomMotorRPM(CandConstants.AMP_BOTTOM_RPM + flywheel.getBias());
pivot.setTargetAngle(CandConstants.AMP_ANGLE + pivot.getBias());
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/command/shoot/Tune.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public void execute() {
LightningShuffleboard.setBool("TUNE", "Pivot On target", pivot.onTarget());

// flywheel.setAllMotorsRPM(flywheelTargetRPM);
flywheel.setTopMoterRPM(flywheelTargetRPMTop);
flywheel.setBottomMoterRPM(flywheelTargetRPMBottom);
flywheel.setTopMotorRPM(flywheelTargetRPMTop);
flywheel.setBottomMotorRPM(flywheelTargetRPMBottom);
pivot.setTargetAngle(pivotTargetAngle);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public FlywheelTest(Flywheel flywheel, double topMotorSpeed, double bottomMotorS

@Override
public void initialize() {
flywheel.setTopMoterRPM(topMotorSpeed);
flywheel.setBottomMoterRPM(bottomMotorSpeed);
flywheel.setTopMotorRPM(topMotorSpeed);
flywheel.setBottomMotorRPM(bottomMotorSpeed);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/Flywheel.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void setAllMotorsRPM(double rpm) {
* Sets the RPM of top flywheel
* @param rpm RPM of the flywheel
*/
public void setTopMoterRPM(double rpm) {
public void setTopMotorRPM(double rpm) {
coast(false);
topTargetRPS = rpm / 60;
}
Expand All @@ -93,7 +93,7 @@ public void setTopMoterRPM(double rpm) {
* Sets the RPM of bottom flywheel
* @param rpm RPM of the flywheel
*/
public void setBottomMoterRPM(double rpm) {
public void setBottomMotorRPM(double rpm) {
coast(false);
bottomTargetRPS = rpm / 60;
}
Expand Down

0 comments on commit 343b974

Please sign in to comment.