SparkMaxAnalogSensor_GetPosition

Function SparkMaxAnalogSensor_GetPosition 

Source
pub unsafe extern "C" fn SparkMaxAnalogSensor_GetPosition(
    this: *mut c_void,
) -> f64
Expand description

Get the position of the sensor. Returns value in the native unit of ‘volt’ by default, and can be changed by a scale factor using setPositionConversionFactor().

@return Position of the sensor in volts