[PATCH] CCR Import from CSV: Calculate correct nitrogen and helium gas pressures

Willem Ferguson willemferguson at zoology.up.ac.za
Sun Nov 2 23:02:58 PST 2014


Calculate correct nitrogen and helium gas pressures for CCR after
import from CSV.

Currently the gas pressures stored in structures of pressure are
calculated using the gasmix composition of the currently selected
cylinder. But with CCR dives the default cylinder is the oxygen
cylinder (cylinder index 0). However, the gas pressures need to
be calculated using gasmix data from cylinder 1 (the diluent
cylinder). This patch allows setting the appropriate cylinder
for calculating the values in the structures of pressure. It
also allows for correctly calculating gas pressures for any
open circuit cylinders (e.g. bailout) that a CCR diver may
use. These open circuit cylinders would have cylinder indices
of 2 and larger.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Calculate-correct-nitrogen-and-helium-gas-pressures-.patch
Type: text/x-diff
Size: 1924 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141103/d19e945b/attachment.patch>


More information about the subsurface mailing list