SparkMaxPIDController_SetSmartMotionAccelStrategy1

Function SparkMaxPIDController_SetSmartMotionAccelStrategy1 

Source
pub unsafe extern "C" fn SparkMaxPIDController_SetSmartMotionAccelStrategy1(
    this: *mut c_void,
    accelStrategy: CANPIDController_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

@deprecated Use SetSmartMotionAccelStrategy(SparkMaxPIDController::AccelStrategy, int) instead