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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user