]> git.taranathan.com Git - FRC2026.git/commitdiff
leds work, enabling showing we wo autos, and adding by trench shuttling interp key
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Fri, 3 Apr 2026 18:32:14 +0000 (11:32 -0700)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Fri, 3 Apr 2026 18:32:14 +0000 (11:32 -0700)
src/main/java/frc/robot/constants/ShuttleInterpolation.java
src/main/java/frc/robot/subsystems/LED/LED2.java
src/main/java/frc/robot/subsystems/shooter/Shooter.java

index a2ec911c5ca10de95aa3e91212cb3a448798ff5e..dac1640301caa57491b0fb6559cf9c781918751b 100644 (file)
@@ -21,11 +21,13 @@ public class ShuttleInterpolation {
         shooterVelocityMap.put(0.0, 9.0);
         shooterVelocityMap.put(4.0, 12.8);
         shooterVelocityMap.put(7.6, 19.0);
+        shooterVelocityMap.put(11.2, 25.2);
 
 
         // always shoot at low angle to ground.
         newHoodMap.put(0.0, 60.0);
         newHoodMap.put(27.99, 60.0);
+        
     }
 
 }
index fa0b0cf1defd5634b4ed1b8c624c57c5b3fc91a1..829dd2960c54eaebe4025eb0139ac1c1341f675e 100644 (file)
@@ -87,19 +87,6 @@ public class LED2 extends SubsystemBase {
 
        private boolean flippy = true;
 
-       public void setColor() {
-               var alliance = DriverStation.getAlliance();
-               if (alliance.isEmpty()) {
-                       color = Color.kWhite;
-               } else if (alliance.get() == Alliance.Red) {
-                       color = Color.kRed;
-               } else if (alliance.get() == Alliance.Blue) {
-                       color = Color.kBlue;
-               } else {
-                       color = Color.kWhite;
-               }
-       }
-
        @Override
        public void periodic() {
                if (underSecsToFlip(5.0) && flippy) {
index 7acdde04f7ddaab9e8e4ce07b42635e4e19c9d3d..818fedeaa421f3d1b5dbf9ce2800d58fde15a727 100644 (file)
@@ -107,10 +107,12 @@ public class Shooter extends SubsystemBase implements ShooterIO {
         
         if (!Constants.DISABLE_SMART_DASHBOARD) {
             SmartDashboard.putNumber("Shooter Speed Error (mps)", shooterTargetSpeed - actualWheelVelocity);
-            SmartDashboard.putString("WON AUTO?", (HubActive.wonAuto()) ? "WON" : "LOST");
             SmartDashboard.putBoolean("Shooter At Speed", atTargetSpeed());
             SmartDashboard.putBoolean("Shooter Running", shooterTargetSpeed > 0);
         }
+        
+        // keep this
+        SmartDashboard.putString("WON AUTO?", (HubActive.wonAuto()) ? "WON" : "LOST");
     }
 
     /**