Added Deadband to prevent motor shafts from bending

This commit is contained in:
Keenan D. Buckley
2020-01-18 18:33:47 +00:00
committed by GitHub
parent b97321e147
commit cf95fdcc4d
@@ -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);