From 06ddfc01222879ee0463affe796dba05de33b368 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 24 Oct 2014 16:40:21 +0200 Subject: Prepare for PSCR calculations Calculations for passive semi-closed rebreathers are pretty much like OC except the pO2 is lower bey a certain (SAC dependent) factor. This patch introduces the corresponding calculations in case dctype == PSCR which is so far never set and there is currently no UI for these calculations. As pO2 is SAC dependent it takes a certain attempt at getting it and drops to defaults from the prefs otherwise. As there is no UI at this point and I also don't have any dives, this has not received much testing, yet, but it compiles. At least. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- subsurfacestartup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'subsurfacestartup.c') diff --git a/subsurfacestartup.c b/subsurfacestartup.c index 4bdd7012d..22a41e4a6 100644 --- a/subsurfacestartup.c +++ b/subsurfacestartup.c @@ -45,6 +45,8 @@ struct preferences default_prefs = { .drop_stone_mode = false, .bottomsac = 20000, .decosac = 17000, + .o2consumption = 1000, + .pscr_ratio = 100, .show_pictures_in_profile = true, .tankbar = false }; -- cgit v1.2.3-70-g09d2