src/main/java/frc/robot/commands/RunShooter.java
// Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
@Override
  protected void execute() {
    double rightTrigger = Robot.controller0.getTriggerAxis(Hand.kRight);
    Robot.shooter.ballStorageMotor.set(rightTrigger * (1.0));
    Robot.shooter.preShooterMotor.set(rightTrigger * (-1.0));
    Robot.shooter.flywheelMotor.set(rightTrigger * (1.0));
    double rightX = Robot.controller0.getX(Hand.kRight);
    Robot.shooter.turretRotationMotor.set(rightX * (0.5));
  }
@ Override protected void execute ( ) { double rightTrigger = Robot . controller0 . getTriggerAxis ( Hand . kRight ) ; Robot . shooter . ballStorageMotor . set ( rightTrigger * ( 1.0 ) ) ; Robot . shooter . preShooterMotor . set ( rightTrigger * ( - 1.0 ) ) ; Robot . shooter . flywheelMotor . set ( rightTrigger * ( 1.0 ) ) ; double rightX = Robot . controller0 . getX ( Hand . kRight ) ; Robot . shooter . turretRotationMotor . set ( rightX * ( 0.5 ) ) ; }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run