Mecanum Drive Localizer
constructor(hardwareMap: HardwareMap, inPerTick: Double, imu: IMU, kinematics: MecanumKinematics, lfName: String = "leftFront", lbName: String = "leftBack", rfName: String = "rightFront", rbName: String = "rightBack", lfDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, lbDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, rfDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, rbDirection: DcMotorSimple.Direction = DcMotorSimple.Direction.FORWARD, initialPose: Pose2d = Pose2d.zero)
Creates a new localizer.
Parameters
hardware Map
hardware map
in Per Tick
inches per tick
imu
IMU
kinematics
mecanum kinematics
lf Name
name of the left front motor
lb Name
name of the left back motor
rf Name
name of the right front motor
rb Name
name of the right back motor
lf Direction
direction of the left front motor
lb Direction
direction of the left back motor
rf Direction
direction of the right front motor
rb Direction
direction of the right back motor
initial Pose
initial pose
constructor(hardwareMap: HardwareMap, inPerTick: Double, imu: IMU, kinematics: MecanumKinematics, leftFront: Encoder, leftBack: Encoder, rightFront: Encoder, rightBack: Encoder, initialPose: Pose2d = Pose2d.zero)
Parameters
hardware Map
hardware map
in Per Tick
inches per tick
imu
IMU
kinematics
mecanum kinematics
left Front
left front encoder
left Back
left back encoder
right Front
right front encoder
right Back
right back encoder
initial Pose
initial pose