From ea72825b3410c3689ef626ae8a00ac8f3335bbb5 Mon Sep 17 00:00:00 2001 From: Anay Nagar Date: Mon, 7 Oct 2024 23:12:21 -0700 Subject: [PATCH] just thought it was worth mentioning that pressing Y on the driver controller caused the robot code to crash without an error message --- src/main/java/frc/robot/subsystems/IntakeSubsystem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/frc/robot/subsystems/IntakeSubsystem.java b/src/main/java/frc/robot/subsystems/IntakeSubsystem.java index 135bd94..cc3f6e4 100644 --- a/src/main/java/frc/robot/subsystems/IntakeSubsystem.java +++ b/src/main/java/frc/robot/subsystems/IntakeSubsystem.java @@ -71,6 +71,7 @@ public void resetHard() { m_armEncoder.reset(); } + /** CS swears the problem isnt their fault yet here I am */ public void resetEvenHarder() { reset(); @@ -192,6 +193,7 @@ public void colorSensorToggle() { * yolo */ public void resetArmEncoder() { + // Double initalizing the encoder crashes the code // m_armEncoder = new DutyCycleEncoder(IntakeConstants.kArmEncoderChannel); // m_armEncoder.setPositionOffset(IntakeConstants.kArmEncoderOffset);