setTolerance

open fun setTolerance(positionTolerance: Double): ProfiledPIDController

Sets the error which is considered tolerable for use with atSetpoint().

Return

this

Parameters

positionTolerance

Position error which is tolerable.


open fun setTolerance(positionTolerance: Double, velocityTolerance: Double): ProfiledPIDController

Sets the error which is considered tolerable for use with atSetpoint().

Return

this

Parameters

positionTolerance

Position error which is tolerable.

velocityTolerance

Velocity error which is tolerable.