SparkMaxRelativeEncoder_GetVelocity

Function SparkMaxRelativeEncoder_GetVelocity 

Source
pub unsafe extern "C" fn SparkMaxRelativeEncoder_GetVelocity(
    this: *mut c_void,
) -> f64
Expand description

Get the velocity of the motor. This returns the native units of ‘RPM’ by default, and can be changed by a scale factor using setVelocityConversionFactor().

@return Number the RPM of the motor