/// <summary> /// Convert Sensor Reading into Converted Reading /// </summary> public void ConvertReading(SensorMetadataBase sdr) { if (sdr != null) { if (sdr.GetType() == typeof(FullSensorRecord)) { FullSensorRecord record = (FullSensorRecord)sdr; if (record.IsNumeric) { this._converted = record.ConvertReading(_rawreading); if (record.ThresholdReadable > 0) _hasThresholds = true; SetThresholds(record); } } } }
internal HardwareSensor(SensorMetadataBase sdr, SensorReading reading) { this.Sdr = sdr; this.Reading = reading; }