mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
30f2d16dab
commit
a592b4e143
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue