From 15e13a1b11f37208fc3f2fb21601eb63a0e10e44 Mon Sep 17 00:00:00 2001 From: Sachet Korada Date: Fri, 15 Nov 2024 00:15:19 -0500 Subject: [PATCH] Reverse Encoder values --- .../firstinspires/ftc/teamcode/subsystems/arm/ArmSubsystem.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/subsystems/arm/ArmSubsystem.kt b/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/subsystems/arm/ArmSubsystem.kt index a65b30a..c8554e5 100644 --- a/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/subsystems/arm/ArmSubsystem.kt +++ b/TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/subsystems/arm/ArmSubsystem.kt @@ -32,6 +32,8 @@ class ArmSubsystem( init { armLeft.inverted = true + armLeft.encoder.setDirection(Motor.Direction.REVERSE) + turnMotors.resetEncoder() turnMotors.setZeroPowerBehavior(Motor.ZeroPowerBehavior.BRAKE) }