![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Defineds an analog pH sensor interface for the Atlas Gravity pH. More...
#include <Atlas_Gravity_pH.hpp>
Public Member Functions | |
AtlasGravitypH () | |
< Constructor for object, no initialization here. | |
double | getpH (double voltage) |
Converts analog voltage reading to a double pH value. | |
std::string | getSensorType () |
Get the sensor brand and model atlas_gravity_ph for debugging. | |
std::string | toJSON (double voltage) |
Converts a voltage reading to JSON string object. | |
Defineds an analog pH sensor interface for the Atlas Gravity pH.
Converts analog voltage reading to a double pH value.
Applies a linear equation to convert between voltage and pH for the given sensor. Requires sensor calibration to be reliable and accurate. Calibration requires following the manufacturer guide and adjusting the two values in the linear equation in this method to produce accurate pH readings.
[in] | voltage | A raw analog reading in volts. |
Reimplemented from pHSensor.
|
inlinevirtual |
Get the sensor brand and model atlas_gravity_ph
for debugging.
"atlas_gravity_ph"
Reimplemented from pHSensor.
|
inlinevirtual |
Converts a voltage reading to JSON string object.
PH_RAW
(voltage) and PH
(pH) fields. Reimplemented from pHSensor.