summaryrefslogtreecommitdiffstats
path: root/dives/test8.xml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 15:34:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 15:38:46 -0700
commit4b735521e2561fe6d03f9f94122fbdc58f48e4a5 (patch)
tree9a76d724b1df37d3590915421891e8148d419033 /dives/test8.xml
parent93d07f631aec470fb9f920f66ccb03ce699942b5 (diff)
downloadsubsurface-4b735521e2561fe6d03f9f94122fbdc58f48e4a5.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'dives/test8.xml')
-rw-r--r--dives/test8.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
<temperature air='27.0 C' water='26.0 C' />
<location>8th test dive, with samples</location>
<notes>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
</notes>