From d16e15a72549894089b6c388c97d761052a18e67 Mon Sep 17 00:00:00 2001 From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:32:33 -0700 Subject: [PATCH] =?utf8?q?added=20buttons=20=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/frc/robot/commands/gpm/Superstructure.java | 7 ++++++- .../java/frc/robot/constants/ShuttleInterpolation.java | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/commands/gpm/Superstructure.java b/src/main/java/frc/robot/commands/gpm/Superstructure.java index 9749b41..fc709d5 100644 --- a/src/main/java/frc/robot/commands/gpm/Superstructure.java +++ b/src/main/java/frc/robot/commands/gpm/Superstructure.java @@ -14,6 +14,7 @@ import edu.wpi.first.math.kinematics.ChassisSpeeds; import edu.wpi.first.math.util.Units; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj2.command.Command; +import edu.wpi.first.wpilibj2.command.InstantCommand; import frc.robot.constants.Constants; import frc.robot.constants.FieldConstants; import frc.robot.constants.ShotInterpolation; @@ -250,7 +251,11 @@ public class Superstructure extends Command { turretOffset = SmartDashboard.getNumber("OPERATOR: Turret Offset", turretOffset); SmartDashboard.putNumber("OPERATOR: Turret Offset", turretOffset); - + SmartDashboard.putData("Hood: Shoot Higher", new InstantCommand(() -> bumpUpHoodOffset())); + SmartDashboard.putData("Hood: Shoot Lower", new InstantCommand(() -> bumpDownHoodOffset())); + SmartDashboard.putData("Turret: Aim Left", new InstantCommand(() -> bumpUpTurretOffset())); + SmartDashboard.putData("Turret: Aim Right", new InstantCommand(() -> bumpDownTurretOffset())); + // Phase manager stuff phaseManager.update(drivepose, shooter, turret); target = phaseManager.getTarget(drivepose); diff --git a/src/main/java/frc/robot/constants/ShuttleInterpolation.java b/src/main/java/frc/robot/constants/ShuttleInterpolation.java index 53ff569..0c4bd2a 100644 --- a/src/main/java/frc/robot/constants/ShuttleInterpolation.java +++ b/src/main/java/frc/robot/constants/ShuttleInterpolation.java @@ -24,12 +24,9 @@ public class ShuttleInterpolation { shooterVelocityMap.put(11.4, 28.1); // was 25.2 before shooterVelocityMap.put(16.54, 33.8); // untested - - // always shoot at low angle to ground. newHoodMap.put(0.0, 60.0); newHoodMap.put(27.99, 60.0); - } } -- 2.39.5