HAL_GetEncoderRate

Function HAL_GetEncoderRate 

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

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)