Drive With Input Shooter

This commit is contained in:
ryan123rudder
2020-02-15 15:47:49 -07:00
parent 724a06101a
commit e3f0ce0234
2 changed files with 2 additions and 5 deletions
@@ -84,7 +84,7 @@ public class RobotContainer {
// runs the drum shooter in idle mode
m_robotShooter.setDefaultCommand(new RunCommand(() -> m_robotShooter.runShooterWithInput(m_operatorXbox), m_robotShooter));
m_robotShooter.setDefaultCommand(new RunCommand(() -> m_robotShooter.runShooterWithInput(m_operatorXbox.getLeftXAxis()), m_robotShooter));
// drives the leveler with an axis input from the driver controller
// m_robotLeveler.setDefaultCommand(new RunLevelerWithJoystick(m_robotLeveler, getDriverController()));
// runs storage motor at 50 percent
@@ -117,10 +117,7 @@ public class Shooter extends SubsystemBase {
}
public void runShooterWithInput(IHandController controller) {
m_controller = controller;
input = m_controller.getLeftXAxis();
System.err.println(input);
public void runShooterWithInput(double input) {
m_shooterRotateMotor.set(input);
}