Skip to content

Commit

Permalink
simplify readyToShootSupplier back to its former glory
Browse files Browse the repository at this point in the history
  • Loading branch information
PatribotsProgramming committed Mar 9, 2024
1 parent b23fc9c commit b1fa87c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/frc/robot/util/calc/ShooterCalc.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ public Rotation2d calculatePivotAngle(Pose2d robotPose) {
* @return The method is returning a BooleanSupplier that returns true
* if the pivot is at its target rotation and false otherwise
*/
@Log
public BooleanSupplier readyToShootSupplier() {
return () ->
pivot.getAtDesiredAngle()
&& shooter.getAtDesiredRPM()
&& shooter.getAverageTargetSpeed() != ShooterConstants.DEFAULT_RPM;
return () -> pivot.getAtDesiredAngle() && shooter.getAtDesiredRPM();
}

// Gets a SpeedAngleTriplet by interpolating values from a map of already
Expand Down

0 comments on commit b1fa87c

Please sign in to comment.