TwoDeadWheelLocalizer

constructor(hardwareMap: HardwareMap, imu: IMU, inPerTick: Double, parName: String, perpName: String, parYTicks: Double = 0.0, perpXTicks: Double = 0.0, parDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, perpDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, initialPose: Pose2d = Pose2d.zero)

Parameters

hardwareMap

hardware map

imu

IMU

inPerTick

inches per tick

parName

name of the parallel encoder

perpName

name of the perpendicular encoder

parYTicks

y-position of the parallel encoder (in tick units)

perpXTicks

x-position of the perpendicular encoder (in tick units)

parDirection

direction of the parallel encoder

perpDirection

direction of the perpendicular encoder

initialPose

initial pose