Configure Normal Mode for Drive

- Brake when auto and teleop
- Coast when disabled
This commit is contained in:
aarav18
2020-01-11 11:51:21 -07:00
parent 97a601c2e9
commit a7863f153b
3 changed files with 19 additions and 0 deletions
@@ -7,6 +7,8 @@
package frc4388.robot;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.InstantCommand;
@@ -69,6 +71,10 @@ public class RobotContainer {
.whenReleased(() -> m_robotLED.setPattern(LEDConstants.DEFAULT_PATTERN));
}
public void setDriveNeutralMode(NeutralMode mode) {
m_robotDrive.setDriveTrainNeutralMode(mode);
}
/**
* Use this to pass the autonomous command to the main {@link Robot} class.
*