summaryrefslogtreecommitdiffstats
path: root/libdivecomputer
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2018-04-02 17:16:07 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-14 23:47:00 +0300
commitcf377beb2ea13833fa4a867b9c99153ecd9fff22 (patch)
tree4412c032ab354d5593ed064d362d1ca2d8ec9a46 /libdivecomputer
parent9b4728c7a96edf48f7150bec943fb8484d9332cd (diff)
downloadsubsurface-cf377beb2ea13833fa4a867b9c99153ecd9fff22.tar.gz
Incorporate bailout events in CCR & PSCR gas calculations.
This is a first step to interpret bailout events. 1) The event structures have a new attribute: divemode. Currently interpreted dive modes are OC, CCR, PSCR. 2) When doing fill_pressures(), the calculation is aware of divemode. When divemode is OC (==bailout), then the appropriate calculations of gas pressures are done. 3) Two new functions get_next_divemodechange() and get_divemode_at_time() are created to find divemode changes in the events linked list and to determine the dive mode at any point during the dive. 4) fill_pressures gets a small amendment to facilitate the correct calculations, depending on divemode. The cases where fill_pressures() is used *outside the planner* are changed. The result is that, for dives with bailout, the correct gas pressures are shown on the dive profile. The deco for bailout dives is not yet correct. This is the next step. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'libdivecomputer')
m---------libdivecomputer0
1 files changed, 0 insertions, 0 deletions
diff --git a/libdivecomputer b/libdivecomputer
-Subproject e0761561e959dbfa7922ac2942fce4c044eef71
+Subproject e97a47cca55973199715df0f818b4955e60d3a3