core / com.acmerobotics.roadrunner.drive / MecanumDrive / MecanumLocalizer / <init>

<init>

MecanumLocalizer(drive: MecanumDrive, useExternalHeading: Boolean = true)

Default localizer for mecanum drives based on the drive encoders and (optionally) a heading sensor.

Parameters

drive - drive

useExternalHeading - use external heading provided by an external sensor (e.g., IMU, gyroscope)