[][src]Function wpilib_sys::bindings::HAL_SetEncoderMaxPeriod

pub unsafe extern "C" fn HAL_SetEncoderMaxPeriod(
    encoderHandle: HAL_EncoderHandle,
    maxPeriod: f64,
    status: *mut i32
)

Sets the maximum period where the device is still considered "moving".

Sets the maximum period where the device is considered moving. This value is used to determine the "stopped" state of the encoder using the HAL_GetEncoderStopped method.

@param encoderHandle the encoder handle @param maxPeriod the maximum period where the counted device is considered moving in seconds