[PATCH] Planner notes: Show VPM-B conservatism

Rick Walsh rickmwalsh at gmail.com
Mon Sep 7 13:49:58 PDT 2015


Hi Dirk,

I sent this patch to print the VPM-B conservatism level in the planner
notes, similar to how we print gradient factors for Buhlmann.  I definitely
think we should do this in one way or another.

Was this patch overlooked, or is there a problem with it?  When I sent it
you were probably considering greater issues.

Rick
On 2 Sep 2015 21:54, "Rick Walsh" <rickmwalsh at gmail.com> wrote:

> Signed-off-by: Rick Walsh <rickmwalsh at gmail.com>
> ---
>  planner.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/planner.c b/planner.c
> index e0f889e..4a191ca 100644
> --- a/planner.c
> +++ b/planner.c
> @@ -552,7 +552,10 @@ static void add_plan_to_notes(struct diveplan
> *diveplan, struct dive *dive, bool
>                 snprintf(temp, sz_temp, translate("gettextFromC", "based
> on Buhlmann ZHL-16B with GFlow = %d and GFhigh = %d"),
>                         diveplan->gflow, diveplan->gfhigh);
>         } else if (prefs.deco_mode == VPMB){
> -               snprintf(temp, sz_temp, "%s", translate("gettextFromC",
> "based on VPM-B"));
> +               if (prefs.conservatism_level == 0)
> +                       snprintf(temp, sz_temp, "%s",
> translate("gettextFromC", "based on VPM-B at nominal conservatism"));
> +               else
> +                       snprintf(temp, sz_temp, translate("gettextFromC",
> "based on VPM-B at +%d conservatism"), prefs.conservatism_level);
>         } else if (prefs.deco_mode == RECREATIONAL){
>                 snprintf(temp, sz_temp, translate("gettextFromC",
> "recreational mode based on Buhlmann ZHL-16B with GFlow = %d and GFhigh =
> %d"),
>                         diveplan->gflow, diveplan->gfhigh);
> --
> 2.4.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150908/aab9b526/attachment.html>


More information about the subsurface mailing list