Package edu.wpi.first.wpilibj.romi
Class RomiMotor
java.lang.Object
edu.wpi.first.wpilibj.MotorSafety
edu.wpi.first.wpilibj.motorcontrol.PWMMotorController
edu.wpi.first.wpilibj.romi.RomiMotor
- All Implemented Interfaces:
Sendable
,MotorController
,AutoCloseable
RomiMotor.
A general use PWM motor controller representing the motors on a Romi robot
-
Field Summary
Fields inherited from class edu.wpi.first.wpilibj.motorcontrol.PWMMotorController
m_pwm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Common initialization code called by all constructors.Methods inherited from class edu.wpi.first.wpilibj.motorcontrol.PWMMotorController
addFollower, close, disable, enableDeadbandElimination, get, getChannel, getDescription, getInverted, getPwmHandle, getVoltage, initSendable, set, setInverted, stopMotor
Methods inherited from class edu.wpi.first.wpilibj.MotorSafety
check, checkMotors, feed, getExpiration, isAlive, isSafetyEnabled, setExpiration, setSafetyEnabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.wpi.first.wpilibj.motorcontrol.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.
-