[][src]Function wpilib_sys::bindings::HAL_GetEncoderRate

pub unsafe extern "C" fn HAL_GetEncoderRate(
    encoderHandle: HAL_EncoderHandle,
    status: *mut i32
) -> f64

Gets the current rate of the encoder.

This is the encoder period scaled by the distance per pulse set for the encoder.

@param encoderHandle the encoder handle @return the encoder rate (units are determined by the units passed to HAL_SetEncoderDistancePerPulse, time value is seconds)