Class RomiMotor
java.lang.Object
org.wpilib.hardware.motor.MotorSafety
org.wpilib.hardware.motor.PWMMotorController
org.wpilib.romi.RomiMotor
- All Implemented Interfaces:
AutoCloseable, MotorController, Sendable
RomiMotor.
A general use PWM motor controller representing the motors on a Romi robot
-
Field Summary
Fields inherited from class PWMMotorController
m_pwm -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidCommon initialization code called by all constructors.Methods inherited from class PWMMotorController
addFollower, close, disable, enableDeadbandElimination, getChannel, getDescription, getDutyCycle, getDutyCycleInternal, getInverted, getPwmHandle, getVoltage, initSendable, setBoundsMicroseconds, setDutyCycle, setDutyCycleInternal, setInverted, stopMotorMethods inherited from class MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MotorController
setVoltage, setVoltage
-
Constructor Details
-
RomiMotor
Constructor.- Parameters:
channel- The PWM channel that the RomiMotor is attached to. 0 is the left motor, 1 is the right.
-
-
Method Details
-
initRomiMotor
Common initialization code called by all constructors.
-