MecanumLocalizer

constructor(@NonNull driveModel: DriveModel, @Nullable leftFront: DcMotor, @Nullable leftBack: DcMotor, @Nullable rightBack: DcMotor, @Nullable rightFront: DcMotor, @Nullable imu: IMU)

Create a new MecanumLocalizer that will run on four Mecanum drive motors and an IMU.

Parameters

driveModel

the drive model to use for kinematics

leftFront

the front left motor

leftBack

the back left motor

rightBack

the back right motor

rightFront

the front right motor

imu

the IMU to use for heading