summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-04-09 19:25:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-23 20:43:34 -0700
commitee0025f69687af08347de738dcd2d2dc9ebc6365 (patch)
treef9c50e4b7b5cbbf2c3a0bda3cc2de690638dbcee /dive.c
parent8cdb8364008487753d9e8f31f9165048f827f2d1 (diff)
downloadsubsurface-ee0025f69687af08347de738dcd2d2dc9ebc6365.tar.gz
Add a simple table-based cns calculations
For dives where divecomputers haven't provided us with a cns, we calculate our cns accumulated during that dive based on a simple table. We also check if we did a dive in the prior 12 ours and grab the cns from it and calculate how much of that still affects us. [Dirk Hohndel: a couple of small changes: remove unnecessary check of cns values in the samples of the first dive computer, changed the way we determine the 'previous dive' and used the end time of that previous dive for the decay calculation] Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions