Package trclib.motor

Class TrcMotor.FollowerMotor

java.lang.Object
trclib.motor.TrcMotor.FollowerMotor
Enclosing class:
TrcMotor

protected class TrcMotor.FollowerMotor extends Object
This class encapsulates a follower motor with the associated scale factor.
  • 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.