MotorGroup

public MotorGroup MotorGroup(Motor motors)
public MotorGroup MotorGroup(List<Motor> motors)


Constructs a motor group out of several motor groups.


public MotorGroup MotorGroup(HardwareMap hMap, Double maxRPM, Double TPR, String ids)
public MotorGroup MotorGroup(HardwareMap hMap, Double maxRPM, String ids)

Parameters

hMap

the hardware map from the OpMode

maxRPM

the maximum revolutions per minute of all the motors

TPR

the ticks per revolution of all the motors

ids

the device ids from the RC config


public MotorGroup MotorGroup(HardwareMap hMap, Motor.Type type, String ids)

Parameters

hMap

the hardware map from the OpMode

type

the kind of all the motors

ids

the device ids from the RC config


public MotorGroup MotorGroup(HardwareMap hMap, Double maxRPM, Double TPR, Pair<String, Boolean> ids)
public MotorGroup MotorGroup(HardwareMap hMap, Double maxRPM, Pair<String, Boolean> ids)

Parameters

hMap

the hardware map from the OpMode

maxRPM

the maximum revolutions per minute of all the motors

TPR

the ticks per revolution of all the motors

ids

the device ids from the RC config and whether those motors should be reversed


public MotorGroup MotorGroup(HardwareMap hMap, Motor.Type type, Pair<String, Boolean> ids)

Parameters

hMap

the hardware map from the OpMode

type

the kind of all the motors

ids

the device ids from the RC config and whether those motors should be reversed