From f7dc572a4463d88d58f47f5ebf5358dd83b87953 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Tue, 25 Feb 2020 20:52:20 -0700 Subject: [PATCH] Minor Cleanup Removed set up of Neutral Mode in the constructor because Neutral Mode is controlled in Robot.java --- src/main/java/frc4388/robot/Robot.java | 1 - src/main/java/frc4388/robot/subsystems/Drive.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/main/java/frc4388/robot/Robot.java b/src/main/java/frc4388/robot/Robot.java index ba82993..feab056 100644 --- a/src/main/java/frc4388/robot/Robot.java +++ b/src/main/java/frc4388/robot/Robot.java @@ -64,7 +64,6 @@ public class Robot extends TimedRobot { @Override public void disabledInit() { m_robotContainer.setDriveNeutralMode(NeutralMode.Coast); - //m_robotContainer.setDriveGearState(true); } @Override diff --git a/src/main/java/frc4388/robot/subsystems/Drive.java b/src/main/java/frc4388/robot/subsystems/Drive.java index 9f2639b..74b9ef9 100644 --- a/src/main/java/frc4388/robot/subsystems/Drive.java +++ b/src/main/java/frc4388/robot/subsystems/Drive.java @@ -132,8 +132,6 @@ public class Drive extends SubsystemBase { //m_rightFrontMotor.configSupplyCurrentLimit(c); //m_leftFrontMotor.configSupplyCurrentLimit(c); - setDriveTrainNeutralMode(NeutralMode.Coast); - /* deadbands */ //m_leftBackMotor.configNeutralDeadband(0.0, DriveConstants.DRIVE_TIMEOUT_MS); // DO NOT CHANGE //m_rightBackMotor.configNeutralDeadband(0.0, DriveConstants.DRIVE_TIMEOUT_MS); // Ensures motors run at the same speed