Class TorqueMotor
java.lang.Object
org.texastorque.torquelib.legacy.base.TorqueMotor
- Direct Known Subclasses:
TorqueFalcon
,TorqueSparkMax
,TorqueTalon
A base class for Texas Torque motor controller wrappers.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
addFollower
(int port) abstract void
addFollower
(int port, boolean invert) abstract void
invert
(boolean invert) abstract void
setPercent
(double percent) abstract void
setVoltage
(double percent)
-
Field Details
-
port
protected final int port
-
-
Constructor Details
-
TorqueMotor
protected TorqueMotor(int port)
-
-
Method Details
-
setPercent
public abstract void setPercent(double percent) -
setVoltage
public abstract void setVoltage(double percent) -
addFollower
public abstract void addFollower(int port) -
addFollower
public abstract void addFollower(int port, boolean invert) -
invert
public abstract void invert(boolean invert)
-