mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
93d07f631a
commit
4b735521e2
2 changed files with 14 additions and 10 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue