Gases in divelist

Robert C. Helling helling at lmu.de
Mon Mar 18 07:50:47 PDT 2013


On Mon, 18 Mar 2013, Dirk Hohndel wrote:

> "Robert C. Helling" <helling at lmu.de> writes:
>
>> On Sun, 17 Mar 2013, Dirk Hohndel wrote:
>>
>>> Dirk Hohndel <dirk at hohndel.org> writes:
>>>
>>> Never mind. I had a couple of hours today and since this wasn't enough
>>> for any of the big things on my todo list I instead added this feature.
>>
>> Cool. Here is a patch that restricts the gases listed in the divelist to
>> those that are actually used. I seem to have the indentation now under
>> control but I am not sure about the logic:
>>
>> 1) First gas (with index 0) is always used.
>
> I'm not 100% sure that's true. For example, with an OSTC you can tell
> the DC which gas you'll be starting with. The way to tell is if there is
> an event at time=0 that switches to a different gas...
>
>> 2) If there is a gas switch event, the new gas is also used (determined by
>> walking the list of dive computers and then the list of events).
>
> Yes
>
> I applied as is - can you send an update that fixes the 'first gas'
> assumption, please?

Here you are.

Gas with index 0 is assumed to be the first gas only if there is no 
gaschage event in the first 30 seconds of the dive.

Signed-off-by: Robert C. Helling <helling at atdotde.de>

Best
Robert

-- 
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO 
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
                       Scientific Coordinator
 		      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another   Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
     stupid .sig\n";   http://www.atdotde.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first_gas_explicit.patch
Type: text/x-diff
Size: 1221 bytes
Desc: 
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130318/c3470d06/attachment.patch>


More information about the subsurface mailing list