ADC

data class ADC(val measurementsNumber: Int, val startupTime: Int, val factor: Double, val isPowerAlwaysOn: Boolean) : CalibrationParameters

Represents calibration parameters for a SensorModel.ADC_SENSOR_AS_VOLTAGE, SensorModel.ADC_SENSOR_AS_CURRENT voltage and current sensors.

Constructors

Link copied to clipboard
constructor(measurementsNumber: Int, startupTime: Int, factor: Double, isPowerAlwaysOn: Boolean)

Properties

Link copied to clipboard

The factor used for calibration in (mV/mA)/mV. The value by which ADC measurement in mV has to be multiplied to get measurand with the (mV/mA) unit. E.g. when 1000mV causes 10(mV/mA) ADC readout, factor equals 100(mV/mA)/mV.

Link copied to clipboard

Indicates if the power is always on. When enabled, power supply on the sensor's hardware extension board is always on. Additionally, the startup time parameter is ignored.

Link copied to clipboard

The number of measurements to take. Range 3 : 32 Specifies how many measurements will be used in arithmetic mean calculation. Note that the highest and the lowest measurement values are rejected.

Link copied to clipboard

The startup time in ms. Range 0 : 300000 Specifies the time from sensor power being enabled to the start of the measurements.