From 743cde7dee0b1b6553e9cc80a595332401814408 Mon Sep 17 00:00:00 2001 From: Nate Heniff Date: Fri, 10 Jan 2025 17:17:01 -0500 Subject: [PATCH] Added L and K in reefLocation values. Refactored reefLocation enum to correspond orbitals to integers that will be submitted to the robot (i.e. J = 0, I = 1, etc.). Note: the values might start at J = 1 so be aware in future when calling reefLocation. --- .../AutoScoreCommandConstants.kt | 20 ++++++++++--------- .../autoscoreCommands/AutoScoreCommands.kt | 2 ++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommandConstants.kt b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommandConstants.kt index 6fd7d8f..43421fe 100644 --- a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommandConstants.kt +++ b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommandConstants.kt @@ -5,16 +5,18 @@ class AutoScoreCommandConstants() { enum class reefLocation { - PointA, - PointB, - PointC, - PointD, - PointE, - PointF, - PointG, - PointH, + PointJ, PointI, - PointJ + PointH, + PointG, + PointF, + PointE, + PointD, + PointC, + PointB, + PointA, + PointL, + PointK } enum class reefLevel { diff --git a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt index 3207552..35a813e 100644 --- a/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt +++ b/src/main/kotlin/frc/team449/commands/autoscoreCommands/AutoScoreCommands.kt @@ -34,6 +34,8 @@ class AutoScoreCommands ( AutoScoreCommandConstants.reefLocation.PointH -> TODO() AutoScoreCommandConstants.reefLocation.PointI -> TODO() AutoScoreCommandConstants.reefLocation.PointJ -> TODO() + AutoScoreCommandConstants.reefLocation.PointL -> TODO() + AutoScoreCommandConstants.reefLocation.PointK -> TODO() } } /*