summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar willemferguson <willemferguson@zoology.up.ac.za>2019-06-03 16:38:20 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-06-03 22:56:06 +0200
commita592b4e143e81cfc4154a8c5eeef81155c486937 (patch)
tree8309d056795e3fea138a5cc65e5bd92dc617c6f5
parent30f2d16dabd49ec0cb871f18ec1bb69f21478020 (diff)
downloadsubsurface-a592b4e143e81cfc4154a8c5eeef81155c486937.tar.gz
Add delta-pO2 disply in Information Box
Add display of the difference between pO2 in rebreather loop and the equivalent OC pO2: this is the oxygen drop over the mouthpiece for SCR dives. Obviously this is only displayed for SCR dives. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
-rw-r--r--core/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/profile.c b/core/profile.c
index 1d1a246cc..61277b6be 100644
--- a/core/profile.c
+++ b/core/profile.c
@@ -1417,8 +1417,11 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
put_format_loc(b, translate("gettextFromC", "SAC: %.*f%s/min\n"), decimals, sacvalue, unit);
if (entry->cns)
put_format_loc(b, translate("gettextFromC", "CNS: %u%%\n"), entry->cns);
- if (prefs.pp_graphs.po2 && entry->pressures.o2 > 0)
+ if (prefs.pp_graphs.po2 && entry->pressures.o2 > 0) {
put_format_loc(b, translate("gettextFromC", "pO₂: %.2fbar\n"), entry->pressures.o2);
+ if (entry->scr_OC_pO2.mbar)
+ put_format_loc(b, translate("gettextFromC", "SCR ΔpO2: %.2fbar\n"), entry->scr_OC_pO2.mbar/1000.0 - entry->pressures.o2);
+ }
if (prefs.pp_graphs.pn2 && entry->pressures.n2 > 0)
put_format_loc(b, translate("gettextFromC", "pN₂: %.2fbar\n"), entry->pressures.n2);
if (prefs.pp_graphs.phe && entry->pressures.he > 0)