diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 99711cae..6358ed33 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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); } diff --git a/src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java b/src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java index d3074ec6..385da6b3 100644 --- a/src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java +++ b/src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java @@ -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