HAL_GetEncoderDistance

Function HAL_GetEncoderDistance 

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

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)