SparkMaxPIDController_SetIAccum

Function SparkMaxPIDController_SetIAccum 

Source
pub unsafe extern "C" fn SparkMaxPIDController_SetIAccum(
    this: *mut c_void,
    iAccum: f64,
) -> REVLibError
Expand description

Set the I accumulator of the PID controller. This is useful when wishing to force a reset on the I accumulator of the PID controller. You can also preset values to see how it will respond to certain I characteristics

To use this function, the controller must be in a closed loop control mode by calling setReference()

@param iAccum The value to set the I accumulator to

@return REVLibError::kOk if successful