Skip to content

Commit

Permalink
Remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
keckothedragon committed May 18, 2024
1 parent 9132ed5 commit 6e8a70a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/util/shooter/ShooterMath.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import frc.robot.subsystems.shooter.Shooter.ShooterPosition;

public interface ShooterMath {
public ShooterPosition calculateShooterPosition(double distance, double angle);
public ShooterPosition calculateShooterPosition(double distance);

public double calculateLeftFlywheelVelocity(double distance);

public double calculateRightFlywheelVelocity(double distance);

public double calculatePivotAngle(double distance, double angle);
public double calculatePivotAngle(double distance);
}
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/util/shooter/ShooterMathTreeMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ShooterMathTreeMap() {
}

@Override
public ShooterPosition calculateShooterPosition(double distance, double angle) {
public ShooterPosition calculateShooterPosition(double distance) {
distance += kMeasurementOffset;
return new ShooterPosition(
Rotation2d.fromDegrees(m_shootAngle.get(distance)),
Expand All @@ -48,7 +48,7 @@ public double calculateRightFlywheelVelocity(double distance) {
}

@Override
public double calculatePivotAngle(double distance, double angle) {
public double calculatePivotAngle(double distance) {
distance += kMeasurementOffset;
return m_shootAngle.get(distance);
}
Expand Down

0 comments on commit 6e8a70a

Please sign in to comment.