CuttleRevHub

constructor(hardwareMap: HardwareMap, hubName: String)

Create Rev hub object using the name of the hub (this can be found in the robot config).

Parameters

hardwareMap

The opmode's hardwareMap

hubName

"Control Hub" or "Expansion Hub"


constructor(hardwareMap: HardwareMap, hubType: CuttleRevHub.HubTypes)

Create Rev hub object using using HubTypes enum. If this doesn't work get the hub by name.

Parameters

hardwareMap

The opmode's hardwareMap

hubType

HubTypes enum automatically sets name to "Control Hub" or "Expansion Hub". If this doesn't work check config and set the name manually.