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

Miika Turkia miika.turkia at gmail.com
Sun Nov 2 23:48:52 PST 2014


On Mon, Nov 3, 2014 at 3:02 PM, Willem Ferguson <
willemferguson at zoology.up.ac.za> wrote:

> 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.
>
> Will hard coding the diluent cylinder index be sufficient for us? If we
have always oxygen cylinder on index 0 and diluent on cylinder 1, then I
guess hard coding might be sufficient, but if there can be variation with
different rebreathers, then it would make sense to have the diluent and
oxygen cylinders assigned dynamically per dive.

Otherwise we should probably just use define to have the diluent and oxygen
cylinders named properly so one don't need to guess what the numbers mean.

miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141103/4660104e/attachment.html>


More information about the subsurface mailing list