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