From d231b7ddf09978041234f5499eb02d46e6fbf3a9 Mon Sep 17 00:00:00 2001 From: Liam Sykes <78829557+trixydevs@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:26:23 -0600 Subject: [PATCH] resolved errors from changing name of constant --- src/main/java/frc/robot/RobotContainer.java | 2 +- src/main/java/frc/robot/subsystems/DrivetrainSubsystem.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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