src/main/java/frc/robot/commands/ArcadeDrive.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 xSpeed = Robot.m_oi.controlJoystick.getY(); 
    double zRotate = Robot.m_oi.controlJoystick.getX(); 
    double scaler = Robot.m_oi.getControlThrottleScaler();
    Robot.m_drivetrain.arcadeDrive(xSpeed * -1 * scaler * RobotMap.SCALER_DRIVE, zRotate * scaler * RobotMap.SCALER_DRIVE); 
  }
@ Override protected void execute ( ) { double xSpeed = Robot . m_oi . controlJoystick . getY ( ) ; double zRotate = Robot . m_oi . controlJoystick . getX ( ) ; double scaler = Robot . m_oi . getControlThrottleScaler ( ) ; Robot . m_drivetrain . arcadeDrive ( xSpeed * - 1 * scaler * RobotMap . SCALER_DRIVE , zRotate * scaler * RobotMap . SCALER_DRIVE ) ; }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
//Get each axis //Forward axis //Side to side for rotation axis //Get the throttle value //Use arcade drive