Class SmartMotorController.SpeedModifiedSmartMotor

java.lang.Object
lib.custom.motorcontrollers.SmartMotorController.SpeedModifiedSmartMotor
All Implemented Interfaces:
edu.wpi.first.wpilibj.motorcontrol.MotorController, SmartMotorController
Enclosing interface:
SmartMotorController

public static class SmartMotorController.SpeedModifiedSmartMotor extends Object
  • Field Details

  • Constructor Details

    • SpeedModifiedSmartMotor

      public SpeedModifiedSmartMotor(SmartMotorController motor, double multiplier)
  • Method Details

    • withSpeedMultiplier

      public SmartMotorController withSpeedMultiplier(double multiplier)
    • set

      public void set(double speed)
      Specified by:
      set in interface edu.wpi.first.wpilibj.motorcontrol.MotorController
    • get

      public double get()
      Specified by:
      get in interface edu.wpi.first.wpilibj.motorcontrol.MotorController
    • isFwdLimitSwitchPressed

      public boolean isFwdLimitSwitchPressed() throws IllegalAccessException
      Specified by:
      isFwdLimitSwitchPressed in interface SmartMotorController
      Throws:
      IllegalAccessException
    • isRevLimitSwitchPressed

      public boolean isRevLimitSwitchPressed() throws IllegalAccessException
      Specified by:
      isRevLimitSwitchPressed in interface SmartMotorController
      Throws:
      IllegalAccessException
    • setMotorBrake

      public void setMotorBrake(boolean brake)
      Specified by:
      setMotorBrake in interface SmartMotorController
    • setInverted

      public void setInverted(boolean isInverted)
      Specified by:
      setInverted in interface edu.wpi.first.wpilibj.motorcontrol.MotorController
    • getInverted

      public boolean getInverted()
      Specified by:
      getInverted in interface edu.wpi.first.wpilibj.motorcontrol.MotorController
    • disable

      public void disable()
      Specified by:
      disable in interface edu.wpi.first.wpilibj.motorcontrol.MotorController
    • stopMotor

      public void stopMotor()
      Specified by:
      stopMotor in interface edu.wpi.first.wpilibj.motorcontrol.MotorController