An internal pressure sensor exists but only provides compartment pressure. An external (water) pressure sensor may be used to get more accurate pressure readings. Pressure measurements help determine depth of the machine, which may then be used to maintain current depth underwater.
[x] Pressure data must be read and interpreted on the Arduino
[x] Measurements in Pascals are converted to measurements in meters
[x] Data is pipped from the Arduino through the C++ interface to the socket endpoint
[x] C++ pressure interface has a calibrate function which sets the current pressure as the 0-meter mark
[x] Depth measurements in meters are proportional to the current depth with respect to the calibrated value. (ie If the calibration depth was 12 m and the current depth is 15 m, the final depth will be 3 m.)
[x] Depth measurements are embedded in JSON string accessible from JS scripts
[x] A test script exists to demonstrate functionality and use.
An internal pressure sensor exists but only provides compartment pressure. An external (water) pressure sensor may be used to get more accurate pressure readings. Pressure measurements help determine depth of the machine, which may then be used to maintain current depth underwater.