[PATCH] Planner: simplify enough_gas comparison

Rick Walsh rickmwalsh at gmail.com
Mon Oct 12 00:17:46 PDT 2015


On 12 October 2015 at 17:39, Joakim Bygdell <j.bygdell at gmail.com> wrote:

>
> On 12 Oct 2015 8:23 am, "Rick Walsh" <rickmwalsh at gmail.com> wrote:
> >
> > The enough_gas function is used in recreational mode to determine that
> the
> > reserve gas is kept in reserve.  A simple comparison of end pressure =>
> reserve
> > pressure should suffice.
>
> Reserve gas is calculated as the minimum amount left in the tank at the
> surface _IF_ you have to do the ascent with your buddy breathing of your
> tank.
> That's why it is doubling the SAC on the ascent.
>
> Thanks for the explanation.  My understanding/definition of reserve gas is
the minimum gas you plan to have at the end of the dive.  The reserve needs
to be enough to cope with something going wrong, such as your buddy being
out of gas at the start of the ascent, then have more left over.

I think either way is fine so long as it is documented.

Cheers,

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151012/06dfeec2/attachment.html>


More information about the subsurface mailing list