From 4b735521e2561fe6d03f9f94122fbdc58f48e4a5 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Nov 2011 15:34:30 -0700 Subject: Fix missing pressure plot at start of the dive in some situations In some situations we could end up with no sample pressure and no interpolated pressure at time = 0. This is now fixed. Fix notes in test dive the exposed the issue. Also change the code in create_plot_info to keep the number of samples and the number of corresponding pi entries in separate variables. This avoids future changes from breaking if they assume they can access dive->sample[nr_samples - 1] (which is a reasonable assumption to make). Signed-off-by: Dirk Hohndel --- dives/test8.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dives') diff --git a/dives/test8.xml b/dives/test8.xml index 97097348c..d2edfc495 100644 --- a/dives/test8.xml +++ b/dives/test8.xml @@ -5,7 +5,7 @@ 8th test dive, with samples SAC should be 0.93 cuft/min or 26.2 l/min -Tank pressure plotted incorrectly (issues with first sample of first tank). +Tank pressure plotted correctly (linear approximation) Descent light green First Ascent red, second orange, third yellow, last green -- cgit v1.2.3-70-g09d2