Two Dead Wheel Localizer
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
hardware Map
hardware map
imu
IMU
in Per Tick
inches per tick
par Name
name of the parallel encoder
perp Name
name of the perpendicular encoder
par YTicks
y-position of the parallel encoder (in tick units)
perp XTicks
x-position of the perpendicular encoder (in tick units)
par Direction
direction of the parallel encoder
perp Direction
direction of the perpendicular encoder
initial Pose
initial pose