[PATCH] CCR dive log rendering. Solve problems for a cylinder using 100% oxygen.

Willem Ferguson willemferguson at zoology.up.ac.za
Sat Nov 1 03:23:36 PDT 2014

Remove code causing problems with CCR dive log rendering.

Currently, if there is a po2 value for a point in the dive log, the dive 
is assumed
to be CCR. Currently, when a CCR dive has a fo2 of 100%, then the po2 is 
set as
the same as ambient pressure. This destroys the CCR po2 graph in the dive
profile that derives from oxygen with a fo2 of 100% in one of the
cylinders but which, after adding the dilent gas, has a po2 far below
ambient pressure. The calculation for 100% oxygen only applies to deco
using 100% o2 and then the dive computer calculates the appropriate po2.
This patch removes the setting of po2 to ambient when fo2 is 100%,
1) to enable accurate graphing of po2 values for CCR dives using 100% o2
    in the first cylinder.
2) To use the po2 value reported by the DC in the first place.

Signed-off-by: willem ferguson <willemferguson at zoology.up.ac.za>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Remove-code-causing-problems-with-CCR-dive-log-rende.patch
Type: text/x-diff
Size: 2454 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141101/06c581fc/attachment.patch>

More information about the subsurface mailing list