public final class NullController extends java.lang.Object implements SpeedController
| Constructor and Description |
|---|
NullController() |
| Modifier and Type | Method and Description |
|---|---|
double |
getSpeed()
Do absolutely nothing
|
void |
pidWrite(double output) |
void |
setInverted(boolean inverted)
Do absolutely nothing
|
void |
setSpeed(double speed)
Do absolutely nothing
|
void |
stopMotor()
Do Nothing
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetpublic double getSpeed()
getSpeed in interface SpeedSourcegetSpeed in interface SpeedControllerpublic void setSpeed(double speed)
setSpeed in interface SpeedSinksetSpeed in interface SpeedControllerspeed - the speed to setpublic void setInverted(boolean inverted)
setInverted in interface SpeedControllerinverted - true to invert the values sent to the motor.public void pidWrite(double output)
pidWrite in interface PIDSinkpidWrite in interface SpeedControllerpublic void stopMotor()
stopMotor in interface SpeedController