SparkMaxPIDController_SetSmartMotionAccelStrategy

Function SparkMaxPIDController_SetSmartMotionAccelStrategy 

Source
pub unsafe extern "C" fn SparkMaxPIDController_SetSmartMotionAccelStrategy(
    this: *mut SparkMaxPIDController,
    accelStrategy: SparkMaxPIDController_AccelStrategy,
    slotID: c_int,
) -> REVLibError
Expand description

NOTE: As of the 2022 FRC season, the firmware only supports the trapezoidal motion profiling acceleration strategy.

Configure the acceleration strategy used to control acceleration on the motor.

@param accelStrategy The acceleration strategy to use for the automatically generated motion profile

@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