Motor
constructor(hMap: HardwareMap, id: String, maxRPM: Double, TPR: Double = 1.0, clock: NanoClock = NanoClock.system)
Parameters
hMap
The hardware map from the OpMode.
id
The device id from the RC config.
maxRPM
The maximum revolutions per minute of the motor.
TPR
The ticks per revolution of the motor.
Parameters
hMap
The hardware map from the OpMode.
id
The device id from the RC config.
type
The type of the motor.
Parameters
motor
The motor for the wrapper to use.
type
The type of the motor.
constructor(motor: DcMotorEx, maxRPM: Double, TPR: Double = 1.0, clock: NanoClock = NanoClock.system)
Parameters
motor
The motor for the wrapper to use.
maxRPM
The maximum revolutions per minute of the motor.
TPR
The ticks per revolution of the motor.