Skip to main content

Class AtlasScientificGravityDOMeter

Atlas Scientific Analog Gravity Dissolved Oxygen Meter

Assembly: AtlasScientificGravityDOMeter.dll
View Source
public class AtlasScientificGravityDOMeter : SamplingSensorBase<double>, IObservable<IChangeResult<double>>, IDissolvedOxygenSaturationSensor, ISamplingSensor<double>, ISensor<double>, ISensor, ISamplingSensor

Inheritance: System.Object -> Meadow.Foundation.ObservableBase<UNIT> -> Meadow.Foundation.SamplingSensorBase<UNIT>

Implements:
System.IObservable<Meadow.IChangeResult<System.Double>>, Meadow.Peripherals.Sensors.Environmental.IDissolvedOxygenSaturationSensor, Meadow.Peripherals.Sensors.ISamplingSensor<System.Double>, Meadow.Peripherals.Sensors.ISensor<System.Double>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor

Properties

CalibrationInAir

The calibration value for the sensor in air

View Source
public Voltage CalibrationInAir { get; set; }

AnalogInputPort

Returns the analog input port

View Source
protected IAnalogInputPort AnalogInputPort { get; }

Saturation

Last saturation value read from the sensor (0.0-1.0)

View Source
public double? Saturation { get; protected set; }

Methods

GetCurrentVoltage()

Get the current voltage, useful for calibration

View Source
public Task<Voltage> GetCurrentVoltage()
Returns

System.Threading.Tasks.Task<Meadow.Units.Voltage>

ReadSensor()

Reads data from the sensor

View Source
protected override Task<double> ReadSensor()
Returns

System.Threading.Tasks.Task<System.Double>: The latest sensor reading### StartUpdating(TimeSpan?) Starts continuously sampling the sensor

View Source
public override void StartUpdating(TimeSpan? updateInterval)
Parameters
TypeName
System.Nullable<System.TimeSpan>updateInterval

StopUpdating()

Stops sampling the sensor

View Source
public override void StopUpdating()

Implements

  • System.IObservable<Meadow.IChangeResult<System.Double>>
  • Meadow.Peripherals.Sensors.Environmental.IDissolvedOxygenSaturationSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<System.Double>
  • Meadow.Peripherals.Sensors.ISensor<System.Double>
  • Meadow.Peripherals.Sensors.ISensor
  • Meadow.Peripherals.Sensors.ISamplingSensor