diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-11-04 15:34:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-11-04 15:38:46 -0700 |
commit | 4b735521e2561fe6d03f9f94122fbdc58f48e4a5 (patch) | |
tree | 9a76d724b1df37d3590915421891e8148d419033 /dives | |
parent | 93d07f631aec470fb9f920f66ccb03ce699942b5 (diff) | |
download | subsurface-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')
-rw-r--r-- | dives/test8.xml | 2 |
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> |