Class XRPMotor
java.lang.Object
org.wpilib.xrp.XRPMotor
- All Implemented Interfaces:
MotorController
XRPMotor.
A SimDevice based motor controller representing the motors on an XRP robot
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disables the motor controller.booleanGets the inversion state of the motor controller.doubleGets the throttle of the motor controller.voidsetInverted(boolean isInverted) Sets the inversion state of the motor controller.voidsetThrottle(double throttle) Sets the throttle of the motor controller.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MotorController
setVoltage, setVoltage
-
Constructor Details
-
XRPMotor
-
-
Method Details
-
setThrottle
Description copied from interface:MotorControllerSets the throttle of the motor controller.- Specified by:
setThrottlein interfaceMotorController- Parameters:
throttle- The throttle where -1 indicates full reverse and 1 indicates full forward.
-
getThrottle
Description copied from interface:MotorControllerGets the throttle of the motor controller.- Specified by:
getThrottlein interfaceMotorController- Returns:
- The throttle where -1 represents full reverse and 1 represents full forward.
-
setInverted
Description copied from interface:MotorControllerSets the inversion state of the motor controller.- Specified by:
setInvertedin interfaceMotorController- Parameters:
isInverted- The inversion state.
-
getInverted
Description copied from interface:MotorControllerGets the inversion state of the motor controller.- Specified by:
getInvertedin interfaceMotorController- Returns:
- The inversion state.
-
disable
Description copied from interface:MotorControllerDisables the motor controller.- Specified by:
disablein interfaceMotorController
-