TankDriveLocalizer

class TankDriveLocalizer(leftMotors: List<DcMotorEx>, rightMotors: List<DcMotorEx>, kinematics: TankKinematics, inPerTick: Double, var pose: Pose2d) : RoadRunnerLocalizer

A RoadRunnerLocalizer that uses the drive encoders to localize the robot.

Parameters

leftMotors

the left motors

rightMotors

the right motors

kinematics

the tank kinematics

inPerTick

the number of inches per encoder tick

pose

the initial pose

Constructors

Link copied to clipboard
constructor(leftMotors: List<DcMotorEx>, rightMotors: List<DcMotorEx>, kinematics: TankKinematics, inPerTick: Double, pose: Pose2d)

Properties

Link copied to clipboard
val leftEncoders: List<Encoder>

the left encoders

Link copied to clipboard
open override var pose: Pose2d
Link copied to clipboard
val rightEncoders: List<Encoder>

the right encoders

Functions

Link copied to clipboard
open override fun update(): PoseVelocity2d