SparkMaxRelativeEncoder_SetAverageDepth

Function SparkMaxRelativeEncoder_SetAverageDepth 

Source
pub unsafe extern "C" fn SparkMaxRelativeEncoder_SetAverageDepth(
    this: *mut c_void,
    depth: u32,
) -> REVLibError
Expand description

Set the average sampling depth for a quadrature encoder. This value sets the number of samples in the average for velocity readings. This can be any value from 1 to 64.

When the SparkMax controller is in Brushless mode, this will not change any behavior.

@param depth The average sampling depth between 1 and 64 (default)

@return REVLibError::kOk if successful