core / com.acmerobotics.roadrunner.drive / TankDrive / TankLocalizer / <init>

<init>

TankLocalizer(drive: TankDrive, useExternalHeading: Boolean = true)

Default localizer for tank 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)