summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-12-12 14:30:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-17 08:05:02 -0800
commitd67cce2af849209bd3222f7ee030b30c4686d666 (patch)
treedd4f51257262203137c6f8b7d915ca12ccdeeca5 /profile.h
parent8400776595f6865d6c84142fba5bf95f39fc0b7e (diff)
downloadsubsurface-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile.h b/profile.h
index 5d2009530..5c30ca4de 100644
--- a/profile.h
+++ b/profile.h
@@ -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