AutomaticFeedforwardTuner

Op mode for computing kV, kStatic, and kA from various drive routines. For the curious, here's an outline of the procedure: 1. Slowly ramp the motor power and record encoder values along the way. 2. Run a linear regression on the encoder velocity vs. motor power plot to obtain a slope (kV) and an optional intercept (kStatic). 3. Accelerate the robot (apply constant power) and record the encoder counts. 4. Adjust the encoder data based on the velocity tuning data and find kA with another linear regression.

Since

4.0.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The distance in inches to travel for the feedforward tuning routine.
Link copied to clipboard
open var MAX_POWER: Double
The maximum power for the feedforward tuning routine.

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.