[][src]Function wpilib_sys::bindings::HAL_GetAnalogAverageVoltage

pub unsafe extern "C" fn HAL_GetAnalogAverageVoltage(
    analogPortHandle: HAL_AnalogInputHandle,
    status: *mut i32
) -> f64

Gets a scaled sample from the output of the oversample and average engine for the channel.

The value is scaled to units of Volts using the calibrated scaling data from GetLSBWeight() and GetOffset(). Using oversampling will cause this value to be higher resolution, but it will update more slowly. Using averaging will cause this value to be more stable, but it will update more slowly.

@param analogPortHandle Handle to the analog port to use. @return A scaled sample from the output of the oversample and average engine for the channel.