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/schedule.h | |
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/schedule.h')
-rw-r--r-- | src/schedule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/schedule.h b/src/schedule.h index f2e6363..57f1e9d 100644 --- a/src/schedule.h +++ b/src/schedule.h @@ -5,6 +5,7 @@ #include "deco.h" +/* types */ typedef struct waypoint_t { double depth; double time; @@ -26,6 +27,10 @@ typedef enum segtype_t { SEG_TRAVEL, } segtype_t; +/* global variables */ +extern int SWITCH_INTERMEDIATE; + +/* functions */ typedef void (*waypoint_callback_t)(const decostate_t *ds, const waypoint_t, const segtype_t); const gas_t *best_gas(const double depth, const gas_t *gasses, const int nof_gasses); |