From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:32:33 +0000 (-0700) Subject: added buttons 👍 X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=d16e15a72549894089b6c388c97d761052a18e67;p=FRC2026.git added buttons 👍 --- 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); - } }