summaryrefslogtreecommitdiffstats
path: root/core/gettextfromc.cpp
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2018-01-15 09:43:57 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-01-19 19:43:16 +0200
commitf072f78c296cb943c7ef3a0cf104347a2ea851bb (patch)
tree144bf10e2bbfe5333081271e81fd8c859bc177ae /core/gettextfromc.cpp
parenta15d0ec52518e76b8d4f2f6bb8e0e880429411d6 (diff)
downloadsubsurface-f072f78c296cb943c7ef3a0cf104347a2ea851bb.tar.gz
Implement ICD calculations in planner output
This patch implements the calculation and printing of icd parameters in the dive planner output. It does: 1) icd parameters are calculated following the rule-of-fifths for OC trimix dives. For each gas change on the ascent that involves helium, the change in gas composition as well as the change in partial pressures are shown. If rule-of-fifths is exceeded, a warning message is prinetd. 2) An independent function is provided that in principle enables calculation of icd paramaters outside of the context of the dive planner. Further updates to icd calculations These changes respond to #1047. Code style conventions have been improved. The ICD table is now also printed when the planner is set to verbatim mode. The code that created the html icd results has been moved to a function. This does not make the code more efficient (many parameters passed) but it makes the code more clean. Free a new dynamic variable (old_gas_name) Stylistic changes to new code in plannernotes.c Changes in comments to explain some of the changes I made. Preparation of comments and functioning of isobaric_counterdiffusion() and its dependent data structure for possible transfer to dive.c and dive.h after finalisation and merging of the present PR. Smaller stylistic changes to conform to our coding rules. The several comments and suggestions during github review (@atdotde, @leolit123, @sfuchs79) are incorporated. Fixed up mis-aligned comments and text descriptions by replacing tab characters with space characters, thereby hard-forcing alignment of indented lines of text. Remove parameter *dive from function isobaric_counterdiffusion(). Improve a few constructs to conform to our style rules. Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
Diffstat (limited to 'core/gettextfromc.cpp')
0 files changed, 0 insertions, 0 deletions