MecanumLocalizer

Mecanum drivebase localizer that uses four encoders and an IMU to localize the robot. Source

Since

6.0.0

Constructors

Link copied to clipboard
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.

Properties

Link copied to clipboard
val leftBack: Encoder
The left back encoder.
Link copied to clipboard
val leftFront: Encoder
The left front encoder.
Link copied to clipboard
val rightBack: Encoder
The right back encoder.
Link copied to clipboard
val rightFront: Encoder
The right front encoder.

Functions

Link copied to clipboard
open fun update(): Twist2dDual<Time>
Perform one iteration of localizer delta updates.