diff options
author | Tim Segers <tsegers@pm.me> | 2022-10-11 17:56:55 +0200 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2022-10-11 17:56:55 +0200 |
commit | 70ea0d58f937c4493bdcbacd59d4f7bf18792352 (patch) | |
tree | e1aa47ac7c9d62338e50e747d9e2dcee5f9444d0 /src/deco.c | |
parent | 07cac4282bf721e75d70f1811f55152989a6a7c5 (diff) | |
download | opendeco-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |