setTolerance

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

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.


Sets the error which is considered tolerable for use with atSetPoint.

Return

this

Parameters

tolerances

The positional and velocity tolerances.


open fun setTolerance(positionTolerance: Double): PIDFController

Sets the error which is considered tolerable for use with atSetPoint.

Return

this

Parameters

positionTolerance

Position error which is tolerable.