An intelligent underwater depth estimator exploiting COTS underwater pressure sensors. The filter takes in pressure and temperature from the sensor (and timestamps from an RTC) and uses an alpha-beta filter to calculate the depth of the object, with built-in thermocline, noise and timestamping error compensation.
Diff: depth_filter.h
- Revision:
- 0:b60e4aff03e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/depth_filter.h Mon Sep 28 20:10:32 2020 +0000 @@ -0,0 +1,9 @@ +#ifndef DEPTH_FILTER_H +#define DEPTH_FILTER_H + +class depth_filter_class{ + public: + void d_filt(float P, float prev_timestamp, float current_timestamp, float temp, float salinity, float x0, float dx, float g, float h, float output_arr[3]); +}; + +#endif \ No newline at end of file