[][src]Function wpilib_sys::bindings::HAL_GetEncoderDistance

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

Gets the current distance traveled by the encoder.

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

@param encoderHandle the encoder handle @return the encoder distance (units are determined by the units passed to HAL_SetEncoderDistancePerPulse)