Three Dead Wheel Localizer
constructor(hardwareMap: HardwareMap, inPerTick: Double, par0Name: String = "par0", par1Name: String = "par1", perpName: String = "perp", par0YTicks: Double = 0.0, par1YTicks: Double = 1.0, perpXTicks: Double = 0.0, par0Direction: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, par1Direction: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, perpDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, initialPose: Pose2d = Pose2d.zero)
Parameters
hardware Map
hardware map
in Per Tick
inches per tick
par0Name
name of the first parallel encoder
par1Name
name of the second parallel encoder
perp Name
name of the perpendicular encoder
par0YTicks
y-position of the first parallel encoder (in tick units)
par1YTicks
y-position of the second parallel encoder (in tick units)
perp XTicks
x-position of the perpendicular encoder (in tick units)
par0Direction
direction of the first parallel encoder
par1Direction
direction of the second parallel encoder
perp Direction
direction of the perpendicular encoder
initial Pose
initial pose