mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Remove unneeded LED patterns
This commit is contained in:
@@ -101,10 +101,10 @@ public final class Constants {
|
|||||||
|
|
||||||
public static final LEDPatterns DEFAULT_PATTERN = LEDPatterns.FOREST_RAINBOW;
|
public static final LEDPatterns DEFAULT_PATTERN = LEDPatterns.FOREST_RAINBOW;
|
||||||
|
|
||||||
// LED color for when the intake is out
|
// // LED color for when the intake is out
|
||||||
public static final LEDPatterns INTAKE_OUT = LEDPatterns.SOLID_RED;
|
// public static final LEDPatterns INTAKE_OUT = LEDPatterns.SOLID_RED;
|
||||||
// LED color for when the intake is out, but the driver conditions are bad
|
// // LED color for when the intake is out, but the driver conditions are bad
|
||||||
public static final LEDPatterns INTAKE_OUT_BADPHYS = LEDPatterns.RED_STROBE;
|
// public static final LEDPatterns INTAKE_OUT_BADPHYS = LEDPatterns.RED_STROBE;
|
||||||
|
|
||||||
|
|
||||||
// LED color for when the flywheel speed isn't in tolarance
|
// LED color for when the flywheel speed isn't in tolarance
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package frc4388.robot.subsystems.intake;
|
package frc4388.robot.subsystems.intake;
|
||||||
|
|
||||||
import static edu.wpi.first.units.Units.Rotations;
|
import static edu.wpi.first.units.Units.Rotations;
|
||||||
import static edu.wpi.first.units.Units.RotationsPerSecond;
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import org.littletonrobotics.junction.Logger;
|
import org.littletonrobotics.junction.Logger;
|
||||||
|
|||||||
@@ -6,14 +6,11 @@ import org.littletonrobotics.junction.AutoLogOutput;
|
|||||||
import org.littletonrobotics.junction.Logger;
|
import org.littletonrobotics.junction.Logger;
|
||||||
|
|
||||||
import edu.wpi.first.math.geometry.Pose2d;
|
import edu.wpi.first.math.geometry.Pose2d;
|
||||||
import edu.wpi.first.math.geometry.Rotation2d;
|
|
||||||
import edu.wpi.first.math.geometry.Translation2d;
|
|
||||||
import edu.wpi.first.math.kinematics.ChassisSpeeds;
|
import edu.wpi.first.math.kinematics.ChassisSpeeds;
|
||||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||||
import frc4388.robot.constants.Constants;
|
import frc4388.robot.constants.Constants;
|
||||||
import frc4388.robot.subsystems.LED;
|
import frc4388.robot.subsystems.LED;
|
||||||
import frc4388.robot.subsystems.intake.Intake;
|
import frc4388.robot.subsystems.intake.Intake;
|
||||||
import frc4388.robot.subsystems.intake.Intake.IntakeMode;
|
|
||||||
import frc4388.robot.subsystems.swerve.SwerveDrive;
|
import frc4388.robot.subsystems.swerve.SwerveDrive;
|
||||||
import frc4388.utility.compute.FieldPositions;
|
import frc4388.utility.compute.FieldPositions;
|
||||||
|
|
||||||
@@ -137,18 +134,18 @@ public class Shooter extends SubsystemBase {
|
|||||||
case 0b011: // Bad flywheel, yes driver err
|
case 0b011: // Bad flywheel, yes driver err
|
||||||
m_robotLED.setMode(Constants.LEDConstants.BAD_FLYWEEL_BADPHYS);
|
m_robotLED.setMode(Constants.LEDConstants.BAD_FLYWEEL_BADPHYS);
|
||||||
break;
|
break;
|
||||||
case 0b100: // Bad intake, no driver err
|
// case 0b100: // Bad intake, no driver err
|
||||||
m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT);
|
// m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT);
|
||||||
break;
|
// break;
|
||||||
case 0b101: // Bad intake, yes driver err
|
// case 0b101: // Bad intake, yes driver err
|
||||||
m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT_BADPHYS);
|
// m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT_BADPHYS);
|
||||||
break;
|
// break;
|
||||||
case 0b110: // Bad intake and shooter (intake is more important), no driver err
|
// case 0b110: // Bad intake and shooter (intake is more important), no driver err
|
||||||
m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT);
|
// m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT);
|
||||||
break;
|
// break;
|
||||||
case 0b111: // Bad intake and shooter (intake is more important), yes driver err
|
// case 0b111: // Bad intake and shooter (intake is more important), yes driver err
|
||||||
m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT_BADPHYS);
|
// m_robotLED.setMode(Constants.LEDConstants.INTAKE_OUT_BADPHYS);
|
||||||
break;
|
// break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// // We set the shooter mode to ready if there are no errors
|
// // We set the shooter mode to ready if there are no errors
|
||||||
|
|||||||
Reference in New Issue
Block a user