bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

Sc 197851/rbr depth calibration #103

Closed russelldeguzman closed 8 months ago

russelldeguzman commented 8 months ago

Attempts to poll the sensor for the depth configuration (m) every 8s (same as probe type). Will write to rbrCodaDepthCalM sys config on success.

I'm around 70% sure this is the definition of "calibrated for x depth"

It would be nice to verify that with a known "RBR depth value" on a particular sensor to cross check these computations.

Screen Shot 2024-03-06 at 2 04 43 PM
DEBUG - Depth configuration updated to 10.328747

Computation:

Settings - 
Atmospheric pressure: 10.1325007812 
Density: 1.000000 g/cm3

p = rho * g * h
h = p / (rho * g)

h - depth (m)
g - 9.81 m/s^2
p - pressure (pascal)
rho - density (kg * m^3)

h = (10.1325007812 * 10000) / ((1 * 1000) * 9.81)
h  = 10.328747 m