SparkMaxPIDController_GetIMaxAccum

Function SparkMaxPIDController_GetIMaxAccum 

Source
pub unsafe extern "C" fn SparkMaxPIDController_GetIMaxAccum(
    this: *mut c_void,
    slotID: c_int,
) -> f64
Expand description

Get the maximum I accumulator of the PID controller. This value is used to constrain the I accumulator to help manage integral wind-up

@param slotID Is the gain schedule slot, the value is a number between 0 and 3. Each slot has its own set of gain values and can be changed in each control frame using SetReference().

@return The max value to contrain the I accumulator to