withUserSetpointControl

Calling this method will enable the user input mode to instead adjust the setpoint dynamically, rather than unlocking the setpoint then relocking it when the mode transitions to holding.

This mode is useful to call on high-frequency system controllers (like those accomplished via Motor, and switches over the manual control from raw input to system controls.

Return

this

Parameters

setpointDeltaMul

the multiplicative scale to translate power into target position delta, which returns the desired delta step in encoder ticks, while supplying you with a delta time (dt) in seconds. Delta time is calculated as the time between the last two evaluations of the function. It can be used to define a rate of change in the setpoint with respect to time rather than loop times. E.g. 100 ticks per second ((dt) -> 100 * dt).

See also