Fix pO2 for CCR at shallow depths

Even when diving a CCR, the pO2 cannot exceed ambient
pressure. This only makes a difference at shallow depths.

Fix this in the calculation of OTUs and CNS.

This affects some tests that now have slightly different CNS and OTU values.

Suggested-by: Justin Ashworth
Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2021-02-23 11:36:00 +01:00 committed by Dirk Hohndel
parent 6b8a07f0d9
commit 2064ce06cc
11 changed files with 35 additions and 31 deletions

View file

@ -6,7 +6,7 @@
</site>
</divesites>
<dives>
<dive number='1' sac='15.471 l/min' otu='14' cns='5%' divesiteid='64785a00' date='2011-05-17' time='11:01:00' duration='32:00 min'>
<dive number='1' sac='15.471 l/min' otu='15' cns='6%' divesiteid='64785a00' date='2011-05-17' time='11:01:00' duration='32:00 min'>
<buddy>Linus</buddy>
<notes>Second deep dive
Linus and I planned and executed - Alex just watching