Package xbot.common.controls.actuators
Class XSpeedController
java.lang.Object
xbot.common.controls.actuators.XSpeedController
- All Implemented Interfaces:
XBaseIO
- Direct Known Subclasses:
MockSpeedController
,SpeedControllerWPIAdapter
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract double
get()
int
boolean
double
getPower()
protected abstract void
set
(double value) void
setInverted
(boolean isInverted) void
setPower
(double power)
-
Field Details
-
channel
protected int channel -
isInverted
protected boolean isInverted
-
-
Constructor Details
-
XSpeedController
-
-
Method Details
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceXBaseIO
-
getInverted
public boolean getInverted() -
setInverted
public void setInverted(boolean isInverted) -
setPower
public void setPower(double power) -
getPower
public double getPower() -
get
protected abstract double get() -
set
protected abstract void set(double value)
-