From cf95fdcc4d7774d090b6fd9b30a87ded16f3cd25 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Sat, 18 Jan 2020 18:33:47 +0000 Subject: [PATCH] Added Deadband to prevent motor shafts from bending --- src/main/java/frc4388/robot/subsystems/Drive.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/frc4388/robot/subsystems/Drive.java b/src/main/java/frc4388/robot/subsystems/Drive.java index c8d4d1e..997f16e 100644 --- a/src/main/java/frc4388/robot/subsystems/Drive.java +++ b/src/main/java/frc4388/robot/subsystems/Drive.java @@ -60,6 +60,9 @@ public class Drive extends ProfiledPIDSubsystem { /* set neutral mode */ setDriveTrainNeutralMode(NeutralMode.Brake); + m_leftBackMotor.configNeutralDeadband(0.0); // DO NOT CHANGE + m_rightBackMotor.configNeutralDeadband(0.0); //Ensures motors run at the same speed + /* flip input so forward becomes back, etc */ m_leftFrontMotor.setInverted(false); m_rightFrontMotor.setInverted(false);