TrackWidthTuner

open class TrackWidthTuner : LinearOpMode

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.

Functions

Link copied to clipboard
open fun getRuntime(): Double
Link copied to clipboard
fun idle()
Link copied to clipboard
fun init()
Link copied to clipboard
fun init_loop()
Link copied to clipboard
open fun internalPostInitLoop()
Link copied to clipboard
open fun internalPostLoop()
Link copied to clipboard
open fun internalPreInit()
Link copied to clipboard
fun internalUpdateTelemetryNow(telemetry: TelemetryMessage)
Link copied to clipboard
fun isStarted(): Boolean
Link copied to clipboard
fun isStopRequested(): Boolean
Link copied to clipboard
fun loop()
Link copied to clipboard
fun opModeIsActive(): Boolean
Link copied to clipboard
fun requestOpModeStop()
Link copied to clipboard
open fun resetStartTime()
Link copied to clipboard
open fun runOpMode()
Link copied to clipboard
fun sleep(milliseconds: Long)
Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()
Link copied to clipboard
open fun updateTelemetry(telemetry: Telemetry)
Link copied to clipboard
open fun waitForStart()

Properties

Link copied to clipboard
open val ANGLE: Double
Link copied to clipboard
open val DELAY: Int
Link copied to clipboard
open val NUM_TRIALS: Int