TrackWidthTuner

This routine determines the effective track width. The procedure works by executing a point turn with a given angle and measuring the difference between that angle and the actual angle (as indicated by an external IMU/gyro, track wheels, or some other localizer).

The quotient given angle / actual angle gives a multiplicative adjustment to the estimated track width (effective track width = estimated track width * given angle / actual angle). The routine repeats this procedure a few times and averages the values for additional accuracy.

Note: a relatively accurate track width estimate is important or else the angular constraints will be thrown off.

Since

4.0.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The angle to turn for the track width tuning procedure.
Link copied to clipboard
open var DELAY_MILLIS: Int
The delay in milliseconds between each trial.
Link copied to clipboard
open var NUM_TRIALS: Int
The number of trials to run for the track width tuning procedure.

Functions

Link copied to clipboard
open fun accept(opMode: LinearOpMode, telemetry: DualTelemetry, drive: RoadRunnerDrive)
Performs this operation on the given arguments.

Inherited functions

Link copied to clipboard
open fun andThen(after: TriConsumer<in T1, in T2, in T3>): TriConsumer<T1, T2, T3>
Returns a composed TriConsumer that performs, in sequence, this operation followed by the after operation.