TwoWheelLocalizer

Standard two dead wheel localizer that uses one parallel and perpendicular encoder in combination with the IMU to localize the robot. Source

Since

6.0.0

Constructors

Link copied to clipboard
constructor(@NonNull driveModel: DriveModel, @NonNull params: TwoWheelLocalizer.Params, @Nullable par: RawEncoder, @Nullable perp: RawEncoder, @Nullable imu: IMU)
Create a new TwoWheelLocalizer that will run on two parallel and one perpendicular encoders, with an IMU for heading information.

Types

Link copied to clipboard
open class Params
Parameters for the two dead wheel localizer.

Properties

Link copied to clipboard
val imu: IMU
The IMU used for heading information.
Link copied to clipboard
val par: Encoder
The parallel encoder.
Link copied to clipboard
Used two-wheel localizer parameters.
Link copied to clipboard
val perp: Encoder
The perpendicular encoder.

Functions

Link copied to clipboard
open fun update(): Twist2dDual<Time>
Perform one iteration of localizer delta updates.