FollowerPIDTuner

Op mode for preliminary tuning of the follower PID coefficients (located in the drive base classes). The robot drives in a DISTANCE_INCHES-by-DISTANCE_INCHES square indefinitely.

Utilization of the dashboard is recommended for this tuning routine. To access the dashboard, connect your computer to the RC's WiFi network. In your browser, navigate to https://192.168.49.1:8080/dash if you're using the RC phone or https://192.168.43.1:8080/dash if you are using the Control Hub. Once you've successfully connected, start the program, and your robot will begin driving in a square. You should observe the target position (green) and your pose estimate (blue) and adjust your follower PID coefficients such that you follow the target position as accurately as possible.

If you are using MecanumDrive, you should be tuning TRANSLATIONAL_PID and HEADING_PID. If you are using TankDrive, you should be tuning AXIAL_PID, CROSS_TRACK_PID, and HEADING_PID.

These coefficients can be tuned live in dashboard.

Since

4.0.0

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
The amount of distance the robot drives in a square.

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.