with Overcurrent
open fun withOvercurrent(@NonNull current: Measure<Current>, @NonNull forTime: Measure<Time>): HoldableActuator
Set the overcurrent threshold used for stall detection.
If this current is reached during a state where stalling is monitored, for the set duration set here, the actuator will auto-reset the motor.
Return
this
Parameters
current
the current which if exceeded will intervene. Default is 8A.
for Time
the time the current must be exceeded for to execute the reset. Useful for filtering out momentary spikes. Default is 2s.