withTopSwitch

open fun withTopSwitch(@Nullable topLimitSwitch: TouchSensor): HoldableActuator

Set the top limit switch of the actuator to use in encoder awareness.

Return

this

Parameters

topLimitSwitch

the limit switch to set as the top switch where the arm would be at the max position