build

fun build(hardwareMap: HardwareMap, pose: Pose2d = Pose2d.zero): MecanumDrive

Builds and returns a new MecanumDrive instance with the configured parameters.

Return

A new MecanumDrive instance

Parameters

hardwareMap

The FTC hardware map containing motor and sensor configurations

pose

The initial pose of the robot (defaults to zero)