From 641d947ec6bf6ce0eaf68ba1fe6badd09f2475f0 Mon Sep 17 00:00:00 2001 From: DanTheMan-byte Date: Wed, 28 Jan 2026 15:36:44 -0600 Subject: [PATCH] last edit --- .../ftc/teamcode/utils/Spindexer.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Spindexer.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Spindexer.java index c167a43..488c0e2 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Spindexer.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/Spindexer.java @@ -255,17 +255,17 @@ public class Spindexer { private void moveSpindexerToPos(double pos) { robot.spin1.setPosition(pos); robot.spin2.setPosition(1-pos); - double currentPos = servos.getSpinPos(); - if (!servos.spinEqual(pos) && Math.abs(prevPos - currentPos) <= 0){ - if (currentPos > pos){ - robot.spin1.setPosition(servos.getSpinPos() + 0.05); - robot.spin2.setPosition(1 - servos.getSpinPos() - 0.05); - } else { - robot.spin1.setPosition(servos.getSpinPos() - 0.05); - robot.spin2.setPosition(1 - servos.getSpinPos() + 0.05); - } - } - prevPos = currentPos; +// double currentPos = servos.getSpinPos(); +// if (!servos.spinEqual(pos) && Math.abs(prevPos - currentPos) <= 0){ +// if (currentPos > pos){ +// robot.spin1.setPosition(servos.getSpinPos() + 0.05); +// robot.spin2.setPosition(1 - servos.getSpinPos() - 0.05); +// } else { +// robot.spin1.setPosition(servos.getSpinPos() - 0.05); +// robot.spin2.setPosition(1 - servos.getSpinPos() + 0.05); +// } +// } +// prevPos = currentPos; } public void stopSpindexer() {