<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 3, 2014 at 3:02 PM, Willem Ferguson <span dir="ltr"><<a href="mailto:willemferguson@zoology.up.ac.za" target="_blank">willemferguson@zoology.up.ac.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Calculate correct nitrogen and helium gas pressures for CCR after<br>
import from CSV.<br>
<br>
Currently the gas pressures stored in structures of pressure are<br>
calculated using the gasmix composition of the currently selected<br>
cylinder. But with CCR dives the default cylinder is the oxygen<br>
cylinder (cylinder index 0). However, the gas pressures need to<br>
be calculated using gasmix data from cylinder 1 (the diluent<br>
cylinder). This patch allows setting the appropriate cylinder<br>
for calculating the values in the structures of pressure. It<br>
also allows for correctly calculating gas pressures for any<br>
open circuit cylinders (e.g. bailout) that a CCR diver may<br>
use. These open circuit cylinders would have cylinder indices<br>
of 2 and larger.<br><br></blockquote><div>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.<br><br></div><div>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.<br></div><div><br>miika<br></div></div><br></div></div>