ModularSensors > Files > sensors / DecagonCTD.h

DecagonCTD.h file

Contains the DecagonCTD subclass of the SDI12Sensors class along with the variable subclasses DecagonCTD_Cond, DecagonCTD_Temp, and DecagonCTD_Depth.

These are used for the Decagon Devices CTD-10.

This depends on the EnviroDIY SDI-12 library and the SDI12Sensors super class.

Classes

class DecagonCTD
The Sensor sub-class for the Decagon CTD-10 conductivity, temperature, and depth sensor.
class DecagonCTD_Cond
The Variable sub-class used for the conductivity output from a Decagon CTD-10 3-in-1 water level sensor..
class DecagonCTD_Temp
The Variable sub-class used for the temperature Output from a Decagon CTD-10 3-in-1 water level sensor..
class DecagonCTD_Depth
The Variable sub-class used for the depth output from a Decagon CTD-10 3-in-1 water level sensor..

Defines

#define CTD_NUM_VARIABLES = 3
Sensor::_numReturnedValues; the CTD can report 3 values.

Sensor Timing

The sensor timing for a Decagon CTD-10

#define CTD_WARM_UP_TIME_MS = 500
Sensor::_warmUpTime_ms; maximum warm-up time in SDI-12 mode: 500ms.
#define CTD_STABILIZATION_TIME_MS = 0
Sensor::_stabilizationTime_ms; the CTD is stable as soon as it warms up (0ms stabilization).
#define CTD_MEASUREMENT_TIME_MS = 500
Sensor::_measurementTime_ms; maximum measurement duration: 500ms.
#define CTD_EXTRA_WAKE_TIME_MS = 0
Extra wake time required for an SDI-12 sensor between the "break" and the time the command is sent. The CTD requires no extra time.

Conductivity

The conductivity variable from a Decagon CTD-10

  • Range is 0 – 120 mS/cm (bulk)
  • Accuracy is ±0.01mS/cm or ±10% (whichever is greater)

DecagonCTD_Cond(DecagonCTD* parentSense, const char* uuid = "", const char* varCode = CTD_COND_DEFAULT_CODE) explicit

Construct a new DecagonCTD_Cond object.

Parameters
parentSense The parent DecagonCTD providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "CTDcond".

#define CTD_COND_RESOLUTION = 1
Decimals places in string representation; conductivity should have 1.
#define CTD_COND_VAR_NUM = 2
Sensor variable number; conductivity is stored in sensorValues[2].
#define CTD_COND_VAR_NAME = "specificConductance"
Variable name in ODM2 controlled vocabulary; "specificConductance".
#define CTD_COND_UNIT_NAME = "microsiemenPerCentimeter"
Variable unit name in ODM2 controlled vocabulary; "microsiemenPerCentimeter" (µS/cm)
#define CTD_COND_DEFAULT_CODE = "CTDcond"
Default variable short code; "CTDcond".

Temperature

The temperature variable from a Decagon CTD-10

  • Range is -11°C to +49°C
  • Accuracy is ±1°C

DecagonCTD_Temp(DecagonCTD* parentSense, const char* uuid = "", const char* varCode = CTD_TEMP_DEFAULT_CODE) explicit

Construct a new DecagonCTD_Temp object.

Parameters
parentSense The parent DecagonCTD providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "CTDtemp".

#define CTD_TEMP_RESOLUTION = 2
Decimals places in string representation; temperature should have 2.
#define CTD_TEMP_VAR_NUM = 1
Sensor variable number; temperature is stored in sensorValues[1].
#define CTD_TEMP_VAR_NAME = "temperature"
Variable name in ODM2 controlled vocabulary; "temperature".
#define CTD_TEMP_UNIT_NAME = "degreeCelsius"
Variable unit name in ODM2 controlled vocabulary; "degreeCelsius" (°C)
#define CTD_TEMP_DEFAULT_CODE = "CTDtemp"
Default variable short code; "CTDtemp".

Water Depth

The water depth variable from a Decagon CTD-10

  • Range is 0 to 5 m or 0 to 10 m, depending on model
  • Accuracy is ±0.05% of full scale

DecagonCTD_Depth(DecagonCTD* parentSense, const char* uuid = "", const char* varCode = CTD_DEPTH_DEFAULT_CODE) explicit

Construct a new DecagonCTD_Depth object.

Parameters
parentSense The parent DecagonCTD providing the result values.
uuid A universally unique identifier (UUID or GUID) for the variable; optional with the default value of an empty string.
varCode A short code to help identify the variable in files; optional with a default value of "CTDdepth".

#define CTD_DEPTH_RESOLUTION = 1
Decimals places in string representation; depth should have 1.
#define CTD_DEPTH_VAR_NUM = 0
Sensor variable number; depth is stored in sensorValues[0].
#define CTD_DEPTH_VAR_NAME = "waterDepth"
Variable name in ODM2 controlled vocabulary; "waterDepth".
#define CTD_DEPTH_UNIT_NAME = "millimeter"
Variable unit name in ODM2 controlled vocabulary; "millimeter".
#define CTD_DEPTH_DEFAULT_CODE = "CTDdepth"
Default variable short code; "CTDdepth".