deltaProfiled

open fun deltaProfiled(deltaPosition: Int): Task

Commands the actuator to go to a particular encoder position as an offset of the current position when this task is executed.

NOTE: This task hooks into the defined User Setpoint Control parameters to step the setpoint according to the unary function defined in withUserSetpointControl. As a result, USC must be enabled for a profiled task to be created, or a fatal exception will be thrown. This method will then limit the setpoint velocity to your unary function's output per loop.

Return

a task to delta the position

Parameters

deltaPosition

the delta to add to the current position of the actuator at task runtime