SparkMaxAlternateEncoder_SetAverageDepth

Function SparkMaxAlternateEncoder_SetAverageDepth 

Source
pub unsafe extern "C" fn SparkMaxAlternateEncoder_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.

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

@return REVLibError::kOk if successful