aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/deco.c
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-10-11 17:56:55 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-10-11 17:56:55 +0200
commit70ea0d58f937c4493bdcbacd59d4f7bf18792352 (patch)
treee1aa47ac7c9d62338e50e747d9e2dcee5f9444d0 /src/deco.c
parent07cac4282bf721e75d70f1811f55152989a6a7c5 (diff)
downloadopendeco-70ea0d58f937c4493bdcbacd59d4f7bf18792352.tar.gz
Make various constants configurable
- SURFACE_PRESSURE* - SWITCH_INTERMEDIATE* - P_WV - PO2_MAX - END_MAX - ALGO_VER * can now also be set from the CLI
Diffstat (limited to 'src/deco.c')
-rw-r--r--src/deco.c9
1 files changed, 6 insertions, 3 deletions
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;