Package lib.custom.motorcontrollers
Class SmartMotorController.SpeedModifiedSmartMotor
java.lang.Object
lib.custom.motorcontrollers.SmartMotorController.SpeedModifiedSmartMotor
- All Implemented Interfaces:
edu.wpi.first.wpilibj.motorcontrol.MotorController,SmartMotorController
- Enclosing interface:
- SmartMotorController
-
Nested Class Summary
Nested classes/interfaces inherited from interface lib.custom.motorcontrollers.SmartMotorController
SmartMotorController.SpeedModifiedSmartMotor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()doubleget()booleanbooleanbooleanvoidset(double speed) voidsetInverted(boolean isInverted) voidsetMotorBrake(boolean brake) voidwithSpeedMultiplier(double multiplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj.motorcontrol.MotorController
setVoltage, setVoltage
-
Field Details
-
motor
-
-
Constructor Details
-
SpeedModifiedSmartMotor
-
-
Method Details
-
withSpeedMultiplier
-
set
public void set(double speed) - Specified by:
setin interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-
get
public double get()- Specified by:
getin interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-
isFwdLimitSwitchPressed
- Specified by:
isFwdLimitSwitchPressedin interfaceSmartMotorController- Throws:
IllegalAccessException
-
isRevLimitSwitchPressed
- Specified by:
isRevLimitSwitchPressedin interfaceSmartMotorController- Throws:
IllegalAccessException
-
setMotorBrake
public void setMotorBrake(boolean brake) - Specified by:
setMotorBrakein interfaceSmartMotorController
-
setInverted
public void setInverted(boolean isInverted) - Specified by:
setInvertedin interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-
getInverted
public boolean getInverted()- Specified by:
getInvertedin interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-
disable
public void disable()- Specified by:
disablein interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-
stopMotor
public void stopMotor()- Specified by:
stopMotorin interfaceedu.wpi.first.wpilibj.motorcontrol.MotorController
-