Retrospective gradient factors on real dives

Anton Lundin glance at acc.umu.se
Fri Dec 9 14:40:02 PST 2016


On 09 December, 2016 - John Van Ostrand wrote:

> On Thu, Dec 8, 2016 at 9:36 AM, Willem Ferguson <
> willemferguson at zoology.up.ac.za> wrote:
> 
> >
> > Would it be feasible to calculate retrospective gradient factors on real
> > dive profiles? We sometimes use a VR3 dive computer which does give this
> > information, but it would be very useful to to have it being calculated
> > automatically for each dive.
> >
> 
>  Do you mean you want to see the decompression stops for a different set of
> GFs? Or do you want to automatically find the most liberal GFs that fit a
> dive profile?
> 
> For the former questoin set up GFs in the Preferences and go back to view
> the dive. For the latter question I iterate through GFs manually to find
> the closest one.
> 

I guess Willem is looking for something like the "current-GF", in the
mouse-over for example.

@47:00 GF: 72%
@47:30 GF: 92%

And so on.

diff --git i/core/profile.c w/core/profile.c
index abe1757..ec51853 100644
--- i/core/profile.c
+++ w/core/profile.c
@@ -1405,6 +1405,11 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
                        }
                }
        }
+       int max_gf = 0;
+       for (int k = 0; k < 16; k++)
+               if (entry->percentages[k] > max_gf)
+                       max_gf = entry->percentages[k];
+       put_format(b, translate("gettextFromC", "GF: %.2d%\n"), max_gf);
        if (entry->heartbeat && prefs.hrgraph)
                put_format(b, translate("gettextFromC", "heartbeat: %d\n"), entry->heartbeat);
        if (entry->bearing)


//Anton

-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list