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.
depth_filter.h@2:6089e3afb8cb, 2020-09-28 (annotated)
- Committer:
- swapnilsayansaha
- Date:
- Mon Sep 28 20:16:46 2020 +0000
- Revision:
- 2:6089e3afb8cb
- Parent:
- 0:b60e4aff03e2
Updated comments;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
swapnilsayansaha | 0:b60e4aff03e2 | 1 | #ifndef DEPTH_FILTER_H |
swapnilsayansaha | 0:b60e4aff03e2 | 2 | #define DEPTH_FILTER_H |
swapnilsayansaha | 0:b60e4aff03e2 | 3 | |
swapnilsayansaha | 0:b60e4aff03e2 | 4 | class depth_filter_class{ |
swapnilsayansaha | 0:b60e4aff03e2 | 5 | public: |
swapnilsayansaha | 0:b60e4aff03e2 | 6 | 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]); |
swapnilsayansaha | 0:b60e4aff03e2 | 7 | }; |
swapnilsayansaha | 0:b60e4aff03e2 | 8 | |
swapnilsayansaha | 0:b60e4aff03e2 | 9 | #endif |