SparkMaxAlternateEncoder_SetMeasurementPeriod

Function SparkMaxAlternateEncoder_SetMeasurementPeriod 

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

Set the measurement period for velocity measurements of a quadrature encoder.

The basic formula to calculate velocity is change in position / change in time. This parameter sets the change in time for measurement.

@param period_ms Measurement period in milliseconds. This number may be between 1 and 100 (default).

@return REVLibError::kOk if successful