From 7b8c17b244217ba7bf169fc4a175627ea6f07682 Mon Sep 17 00:00:00 2001 From: Hayden Heroux Date: Sun, 31 Mar 2024 19:03:22 -0400 Subject: [PATCH] chore: Format. --- src/main/java/frc/robot/shooter/FlywheelMotorIOSim.java | 1 - src/main/java/frc/robot/shooter/ShooterConstants.java | 4 ++-- .../java/frc/robot/superstructure/SuperstructureState.java | 5 ++++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/shooter/FlywheelMotorIOSim.java b/src/main/java/frc/robot/shooter/FlywheelMotorIOSim.java index 930f018..23d3a39 100644 --- a/src/main/java/frc/robot/shooter/FlywheelMotorIOSim.java +++ b/src/main/java/frc/robot/shooter/FlywheelMotorIOSim.java @@ -1,6 +1,5 @@ package frc.robot.shooter; -import edu.wpi.first.math.controller.PIDController; import edu.wpi.first.math.controller.SimpleMotorFeedforward; import edu.wpi.first.math.system.plant.DCMotor; import edu.wpi.first.wpilibj.simulation.FlywheelSim; diff --git a/src/main/java/frc/robot/shooter/ShooterConstants.java b/src/main/java/frc/robot/shooter/ShooterConstants.java index 86aa585..9c0a072 100644 --- a/src/main/java/frc/robot/shooter/ShooterConstants.java +++ b/src/main/java/frc/robot/shooter/ShooterConstants.java @@ -16,7 +16,7 @@ public static class SerializerConstants { /** Maximum speed in rotations per second. */ public static final double MAXIMUM_SPEED = 4.75; - + /** Speed tolerance in rotations per second. */ public static final double SPEED_TOLERANCE = 0.25; } @@ -31,7 +31,7 @@ public static class FlywheelConstants { /** Maximum speed in rotations per second. */ public static final double MAXIMUM_SPEED = 5.65; - + /** Speed tolerance in rotations per second. */ public static final double SPEED_TOLERANCE = 0.25; } diff --git a/src/main/java/frc/robot/superstructure/SuperstructureState.java b/src/main/java/frc/robot/superstructure/SuperstructureState.java index ca63c4a..6d79b0b 100644 --- a/src/main/java/frc/robot/superstructure/SuperstructureState.java +++ b/src/main/java/frc/robot/superstructure/SuperstructureState.java @@ -201,7 +201,10 @@ public boolean atSerializerVelocityGoal(SuperstructureState goal) { } public boolean at(SuperstructureState other) { - return atShoulderAngleGoal(other) && atRollerVelocityGoal(other) && atFlywheelVelocityGoal(other) && atSerializerVelocityGoal(other); + return atShoulderAngleGoal(other) + && atRollerVelocityGoal(other) + && atFlywheelVelocityGoal(other) + && atSerializerVelocityGoal(other); } /**