mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 08:48:01 -06:00
Drive With Input Shooter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user