From 676e341762146e8b6908450ec81d99493d0b935d Mon Sep 17 00:00:00 2001 From: Nate Heniff Date: Sun, 12 Jan 2025 10:32:51 -0500 Subject: [PATCH] Changed moveToProcessorCommandBlue/Red --- .../team449/commands/autoscoreCommands/AutoScoreCommands.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt index 6172ab5..1e17a5c 100644 --- a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt +++ b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt @@ -77,13 +77,11 @@ class AutoScoreCommands( * moves robot to processor location using * swerve drive. */ fun moveToProcessorCommandBlue(): Command { - var returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseBlue) - returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseBlue) + val returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseBlue) return returnCommand } fun moveToProcessorCommandRed(): Command { - var returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseRed) - returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseRed) + val returnCommand = PIDPoseAlign(drive, poseSubsystem, AutoScoreCommandConstants.processorPoseRed) return returnCommand }