From 70ea0d58f937c4493bdcbacd59d4f7bf18792352 Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Tue, 11 Oct 2022 17:56:55 +0200 Subject: Make various constants configurable - SURFACE_PRESSURE* - SWITCH_INTERMEDIATE* - P_WV - PO2_MAX - END_MAX - ALGO_VER * can now also be set from the CLI --- src/deco.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/deco.c') diff --git a/src/deco.c b/src/deco.c index 5ef6537..5d03e75 100644 --- a/src/deco.c +++ b/src/deco.c @@ -6,11 +6,14 @@ #include "deco.h" +#define RND(x) (round((x) *10000) / 10000) + enum ALGO ALGO_VER = ZHL_16C; +double SURFACE_PRESSURE = 1.01325; +double P_WV = P_WV_BUHL; -#define PO2_MAX (1.6) -#define END_MAX (abs_depth(msw_to_bar(30))) -#define RND(x) (round((x) *10000) / 10000) +double PO2_MAX = 1.6; +double END_MAX = 4.01325; typedef struct zhl_n2_t { double t; -- cgit v1.2.3-70-g09d2