Pinpoint Localizer
constructor(@NonNull driveModel: DriveModel, @NonNull params: PinpointLocalizer.Params, @Nullable pinpoint: GoBildaPinpointDriver)
Create a new Pinpoint localizer operating on two internally connected dead wheels.
Parameters
drive Model
the drive model to use for kinematics
params
parameters to use, note this set of parameters is an extension of the two-wheel localizer parameters. Additional parameters exclusive to Pinpoint are the initial directions, which should be set here instead of directly on the driver to ensure tuning support. These directions are auto-applied to the driver.
pinpoint
the Pinpoint Computer from HardwareMap. Will be IMU and position reset on construction. To set wheel directions, set them in the params
object, NOT on this object directly.