TankLocalizer

Tank drivebase localizer that uses drive encoders on all parallel wheels to localize the robot. Source

Since

6.0.0

Constructors

Link copied to clipboard
constructor(@NonNull driveModel: DriveModel, @NonNull leftMotors: List<DcMotor>, @NonNull rightMotors: List<DcMotor>)
Create a new TankLocalizer that will run on two parallel sets of drive motors.

Properties

Link copied to clipboard
val leftEncs: List<Encoder>
Encoders on the left side of the robot.
Link copied to clipboard
val rightEncs: List<Encoder>
Encoders on the right side of the robot.

Functions

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