withTolerance

open fun withTolerance(tolerance: Int, applyToMotor: Boolean): HoldableActuator

Set the target tolerance of the actuator.

Return

this

Parameters

tolerance

the tolerance to set in encoder ticks

applyToMotor

whether to apply this tolerance to the motor as well as the task checks, default true


Set the target tolerance of the actuator. Applies the tolerance to the motor object as well as the task checks.

Return

this

Parameters

tolerance

the tolerance to set in encoder ticks