TankDrive

constructor(constants: DriveConstants, coefficients: TankCoefficients, @Nullable imu: IMU, leftMotors: List<DcMotor>, rightMotors: List<DcMotor>)

Create a new TankDrive instance.

Parameters

constants

The drive constants for the robot

coefficients

The TankCoefficients for this drive

imu

The IMU for the robot. Can be set to null if you are using three-wheel odometry.

leftMotors

The motors on the left side of the robot (e.g. Arrays.asList(fl, bl))

rightMotors

The motors on the right side of the robot (e.g. Arrays.asList(fr, br))