Package trclib.motor
Class TrcMotor.FollowerMotor
java.lang.Object
trclib.motor.TrcMotor.FollowerMotor
- Enclosing class:
- TrcMotor
This class encapsulates a follower motor with the associated scale factor.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) TrcMotor(package private) boolean(package private) double -
Constructor Summary
ConstructorsConstructorDescriptionFollowerMotor(TrcMotor motor, double scale, boolean nativeFollower) Constructor: Create an instance of the object. -
Method Summary
-
Field Details
-
motor
TrcMotor motor -
valueScale
double valueScale -
nativeFollower
boolean nativeFollower
-
-
Constructor Details
-
FollowerMotor
FollowerMotor(TrcMotor motor, double scale, boolean nativeFollower) Constructor: Create an instance of the object.- Parameters:
motor- specifies the follower motor.scale- specifies the value scale for the follower motor, 1.0 by default.nativeFollower- specifies true if the motor supports following natively, false otherwise.
-