Added Java Docs for Method

This commit is contained in:
Aarav
2020-01-11 13:00:14 -07:00
parent a7863f153b
commit d4f55b93d6
2 changed files with 10 additions and 5 deletions
@@ -50,10 +50,7 @@ public class Drive extends SubsystemBase {
m_rightBackMotor.follow(m_rightFrontMotor);
/* set neutral mode */
m_leftFrontMotor.setNeutralMode(NeutralMode.Brake);
m_rightFrontMotor.setNeutralMode(NeutralMode.Brake);
m_leftFrontMotor.setNeutralMode(NeutralMode.Brake);
m_rightFrontMotor.setNeutralMode(NeutralMode.Brake);
setDriveTrainNeutralMode(NeutralMode.Brake);
/* flip input so forward becomes back, etc */
m_leftFrontMotor.setInverted(false);
@@ -73,6 +70,10 @@ public class Drive extends SubsystemBase {
}
}
/**
* Sets Motors to a NeutralMode.
* @param mode NeutralMode to set motors to
*/
public void setDriveTrainNeutralMode(NeutralMode mode) {
m_leftFrontMotor.setNeutralMode(mode);
m_rightFrontMotor.setNeutralMode(mode);