Skip to content

Commit

Permalink
resolved errors from changing name of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
trixydevs committed Jan 27, 2024
1 parent 0d8408f commit d231b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void limelightInit() {
limelight = Limelight.getInstance();
}
private void lightsInst() {
lights = new Lights(Constants.LIGHTS_COUNT-1);
lights = new Lights(Constants.LED_COUNT-1);
}


Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public double calculateSpeakerAngle(){
speakerDist = Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));
SmartDashboard.putNumber("dist to speakre", speakerDist);
if(speakerDist<Field.MAX_SHOOTING_DISTANCE && lightsExist) {
lights.setLights(0, Constants.LIGHTS_COUNT, 0, 100, 0);
lights.setLights(0, Constants.LED_COUNT, 0, 100, 0);
} else {if(lights != null) {
lights.lightsOut();
} }
Expand Down Expand Up @@ -326,7 +326,7 @@ public double calculateSpeakerAngleMoving(){
adjustedTarget = new Translation2d(offsetSpeakerX, offsetSpeakerY);
offsetSpeakerdist = Math.sqrt(Math.pow(offsetSpeakerX, 2) + Math.pow(offsetSpeakerY, 2));
if(offsetSpeakerdist<Field.MAX_SHOOTING_DISTANCE && lightsExist) {
lights.setLights(0, Constants.LIGHTS_COUNT, 0, 100, 0);
lights.setLights(0, Constants.LED_COUNT, 0, 100, 0);
} else {if(lightsExist) {
lights.lightsOut();
}}
Expand Down

0 comments on commit d231b7d

Please sign in to comment.