Mecanum Drive
constructor(constants: DriveConstants, coefficients: MecanumCoefficients, @Nullable imu: IMU, fl: DcMotor, fr: DcMotor, bl: DcMotor, br: DcMotor)
Constructor for the MecanumDrive class.
Parameters
constants
The drive constants for the robot.
coefficients
The MecanumCoefficients for the drive.
imu
The IMU for the robot. Can be set to null if you are using three-wheel odometry.
fl
The front left motor.
fr
The front right motor.
bl
The back left motor.
br
The back right motor.