SparkMaxPIDController_SetSmartMotionMaxAccel

Function SparkMaxPIDController_SetSmartMotionMaxAccel 

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

Configure the maximum acceleration of the SmartMotion mode. This is the accleration that the motor velocity will increase at until the max velocity is reached

@param maxAccel The maxmimum acceleration for the motion profile in RPM per second

@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 REVLibError::kOk if successful