Motor

public Motor Motor(HardwareMap hMap, String id, Double maxRPM, Double TPR, NanoClock clock)
public Motor Motor(HardwareMap hMap, String id, Double maxRPM, Double TPR)
public Motor Motor(HardwareMap hMap, String id, Double maxRPM)

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.


public Motor Motor(HardwareMap hMap, String id, Motor.Type type, NanoClock clock)
public Motor Motor(HardwareMap hMap, String id, Motor.Type type)

Parameters

hMap

The hardware map from the OpMode.

id

The device id from the RC config.

type

The type of the motor.


public Motor Motor(DcMotorEx motor, Motor.Type type, NanoClock clock)
public Motor Motor(DcMotorEx motor, Motor.Type type)

Parameters

motor

The motor for the wrapper to use.

type

The type of the motor.


public Motor Motor(DcMotorEx motor, Double maxRPM, Double TPR, NanoClock clock)
public Motor Motor(DcMotorEx motor, Double maxRPM, Double TPR)
public Motor Motor(DcMotorEx motor, Double maxRPM)

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.