MecanumRoadRunnerDrive

constructor(constants: DriveConstants, coefficients: MecanumCoefficients, voltageSensor: HardwareMap.DeviceMapping<VoltageSensor>, @Nullable imu: IMU, fl: DcMotor, fr: DcMotor, bl: DcMotor, br: DcMotor)

Constructor for the MecanumRoadRunnerDrive class. Omits optional DualTelemetry parameter.

Parameters

constants

The drive constants for the robot.

coefficients

The coefficients for the Mecanum drive.

voltageSensor

The voltage sensor mapping (hardwareMap.voltageSensor)

imu

The IMU for the robot.

fl

The front left motor.

fr

The front right motor.

bl

The back left motor.

br

The back right motor.


constructor(@Nullable telemetry: DualTelemetry, constants: DriveConstants, coefficients: MecanumCoefficients, voltageSensor: HardwareMap.DeviceMapping<VoltageSensor>, @Nullable imu: IMU, fl: DcMotor, fr: DcMotor, bl: DcMotor, br: DcMotor)

Constructor for the MecanumRoadRunnerDrive class.

Parameters

telemetry

The (optional) DualTelemetry instance to use for telemetry.

constants

The drive constants for the robot.

coefficients

The coefficients for the Mecanum drive.

voltageSensor

The voltage sensor for the robot from hardwareMap.

imu

The IMU for the robot.

fl

The front left motor.

fr

The front right motor.

bl

The back left motor.

br

The back right motor.