CartesianFieldCentricMecanumDrive

constructor(frontLeft: DcMotor, frontRight: DcMotor, backLeft: DcMotor, backRight: DcMotor, imu: IMU, invalidatePreviousHeading: Boolean, startingDirection: Direction)

Constructs a new CartesianFieldCentricMecanumDrive.

Parameters

frontLeft

the front left motor

frontRight

the front right motor

backLeft

the back left motor

backRight

the back right motor

imu

the IMU to use

invalidatePreviousHeading

whether to invalidate the previous heading of the IMU

startingDirection

the starting direction of the robot relative to the field-centric origin