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/schedule.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/schedule.h') 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); -- cgit v1.2.3-70-g09d2