Skip to content

Commit

Permalink
LED tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 30, 2024
1 parent dd5d610 commit c8ceb77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/DefaultLEDCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public void initialize() {
}

shootSpeed = m_shooterSubsystem.returnCurrentSpeed();
if (shootSpeed > 500 && shootSpeed < 1899 * 2) {// if charging up
if (shootSpeed > 500 && shootSpeed < 1899 * Math.PI) { // if charging up
rgb[0] = 150;
rgb[1] = 150;
rgb[2] = 0;
} else if (shootSpeed > 1899 * 2) {// if the shooter is ready to shoot
} else if (shootSpeed > 1899 * Math.PI) { // if the shooter is ready to shoot
rgb[0] = 0;
rgb[1] = 255;
rgb[2] = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/LEDSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void rainbow() {
m_LEDBuffer.setHSV(i, hue, 255, 128);
}
// Increase by to make the rainbow "move"
m_rainbowFirstPixelHue += 1;
m_rainbowFirstPixelHue += 2;
// Check bounds
m_rainbowFirstPixelHue %= 180;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ShooterSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public double returnCurrentSpeed() {
public void periodic() {
// This method will be called once per scheduler run
// SmartDashboard.putNumber("bottom Speed", m_bottomSpeed);
SmartDashboard.putNumber("top Speed", m_topSpeed);
SmartDashboard.putNumber("top Speed", m_bottom.getEncoder().getVelocity());

m_bottom.set(m_bottomSpeed);
m_top.set(m_topSpeed);
Expand Down

0 comments on commit c8ceb77

Please sign in to comment.