diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-12-12 14:30:13 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-17 08:05:02 -0800 |
commit | d67cce2af849209bd3222f7ee030b30c4686d666 (patch) | |
tree | dd4f51257262203137c6f8b7d915ca12ccdeeca5 /profile.h | |
parent | 8400776595f6865d6c84142fba5bf95f39fc0b7e (diff) | |
download | subsurface-d67cce2af849209bd3222f7ee030b30c4686d666.tar.gz |
Recording average depth data
This is the calculation that is needed to display a running average in the
profile.
It adds a new member plot_data.running_sum which can be turned into the
running average by dividing by plot_data.time.
Right now this isn't used by the UI.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r-- | profile.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ struct plot_data { int cns; int smoothed; int sac; + int running_sum; struct gas_pressures pressures; pressure_t o2pressure; // for rebreathers, this is consensus measured po2, or setpoint otherwise. 0 for OC. pressure_t o2sensor[3]; //for rebreathers with up to 3 PO2 sensors |