[PATCH 2/2] Ticket #831 Fix

Davide DB dbdavide at gmail.com
Tue Mar 10 04:08:40 PDT 2015


If I recall it correctly, I remember that some developer told me that
having at least a cylinder is compulsory.
Why?
When I import dives from my Viper in gauge mode, the cylinder table is
originally empty.
When I import from my Xdeep I have a unkonwn cylinder (it's logged
into the imported uddf file).

I'll try to explain...
If I do not care about tanks and gases I will not touch cylinder table

If I care about gases and tanks I will edit its content: Once I have
all my tanks into the table I should be able to freely arrange them
without making any assumption on main/default cylinders.

Right now the app tries to guide you deciding what is the starting
tank so you cannot add a gas change to it.
I should just be able to pinpoint, to choose the tank I entered the
water (or you can call it default/main tank) in to the table. By
default the cylinder table will have a main/default cylinder: if user
doesn't have strange needs he will not touch it. This is better than
having a forced gas change at 0 at 0.
Then tanks are sorted via the gas change events: as I add/delete them
on the profile graph, tanks are automatically sorted in the table. If
a tank is used more than once, only the first gas change move it in
the table.

There is still a problem with the current index management: when I
copy a tank set from a dive, their index are copied as well. They
should not (must be an oprional parameter). They will added again when
I will add gas changes.


I'm sure i forgot something or I made some mistake because I don't
know the inner algorithm used by the app to manage all that burden :)















On Tue, Mar 10, 2015 at 10:39 AM, Willem Ferguson
<willemferguson at zoology.up.ac.za> wrote:
>
>
> Dirk and Tomaz,
> How easy would it be to implement reordering the cylinders in the
> equipment tab after they have been copy-and- pasted from another dive,
> that is, without having to delete and re-type all the information for a
> cylinder? The present setup is not very user-friendly for divers using
> more than one cylinder because a cylinder is always added at the end of
> the list. So if cylinder position is important, one often has to erase
> all but one of the existing cylinders and manually re-do the remaining
> cylinders.
> Kind regards,
> willem
>
>
> On 10/03/2015 11:19, Davide DB wrote:
>>
>> On Tue, Mar 10, 2015 at 6:52 AM, Joakim Bygdell <j.bygdell at gmail.com>
>> wrote:
>>>
>>> The default cylinder setup is more suited to people that do not dive the
>>> way you do, since the way you describe it you rarely start a dive on
>>> backgas.
>>> It's just a way to make it convenient for people that doesn't have as
>>> complex setup.
>>
>> I see, but I'm nearly sure that the whole procedure was ok until few
>> releases ago.
>> I remeber Dirk had a brilliant idea and modified how the cylinder table
>> works.
>> Maybe the introduction of the tank index put some strict constraints
>> again or maybe I was doing exactly the same sequence each time. Now
>> that I have "convinced" several friends to use Subsurface, my phone
>> keeps ringing and ringing :)
>>
>>>> In my above example:
>>>>
>>>> I made a formal gas change at the surface switching to a 35/25
>>>> At 30m I switched to my bottom mix: 16/60 on a AL80 [**]
>>>> Deco was performed on 35/25, 50/20 and 100%
>>>> My backgas was a D8,5L on 16/60 (that is set as default tank in
>>>> Subsurface). It's my bailout reserve, my main tank.
>>>>
>>>> [**] I could have more f this.
>>>>
>>>> Should I remove the default cylinder to be able to switch at 0 at 0?
>>>> If I had a proper DC managing all of this and I forget to press a
>>>> button, could I fix all of this later? Hummm....
>>>
>>> When you set up the cylinders for that dive make sure that the one you
>>> start with are the first gas in the list, the order of the other mixes is
>>> not as important.
>>>
>>> At the start of the dive subsurface will implicit start you on 35/25 as
>>> that is the first gas in the list.
>>> You can then do gas switches at the appropriate time points during the
>>> dive.
>>>
>>> If you do this, is it something that is wrong in the way the dive is
>>> presented to you?
>>
>> I have to try.
>> The gas change at 0 at 0 was suggested here to overcome the default cylinder.
>> I should completely remove default cylinder. Its' a shame. Default
>> cylinder along copy-paste are two useful tools to speed-up logging
>> operations.
>> When I get stuck in some dead, usually I directly edit the xml file
>> but two friends of mine who are Subsurface new adopter were caught
>> immediately into the "current gas is in use..." dead end without being
>> able to solve it.
>> Copy-paste was a Linus brilliant idea to avoid inserting each dive all
>> the tanks. Others (like me) suggested having predefined cylinder sets
>> saved into user preferences but this solution implied a whole new UI
>> and Linus solution it simple and effective.
>> Currently it become a dangerous option because if you copy-paste a
>> slightly different tank set your gas changes will likely get screwed
>> up mainly because the cylinder index get copy-pasted too.
>>
>> Why it's compulsory to have a cylinder into the cylinder table?
>> _______________________________________________
>> subsurface mailing list
>> subsurface at subsurface-divelog.org
>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
>
>
>
> _______________________________________________
> subsurface mailing list
> subsurface at subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface



-- 
Davide
https://vimeo.com/bocio/videos


More information about the subsurface mailing list