setAdmissibleError

open fun setAdmissibleError(admissibleError: Pose2d, admissibleTimeout: Double): DriveConstants.Builder

Set the admissible error for the PIDVA controller for trajectory following. Usually, you won't have to call this method, as the default error is adequate.

Return

this

Parameters

admissibleError

admissible/satisfactory pose error at the end of each move (default 0.5in 5deg)

admissibleTimeout

max time to wait for the error to be admissible (default 0.5 sec)