diff options
author | Tim Segers <tsegers@pm.me> | 2022-10-10 18:37:28 +0200 |
---|---|---|
committer | Tim Segers <tsegers@pm.me> | 2022-10-10 18:39:41 +0200 |
commit | 8c5571544169a4095ceebf5f6d6b5b9caf09c59b (patch) | |
tree | 08c8b44616ce4785d821db48fbbd0c5bf4421a75 /schedule.h | |
parent | 2337828095920b8debdb0f8e0337a9d6aad6b55c (diff) | |
download | opendeco-8c5571544169a4095ceebf5f6d6b5b9caf09c59b.tar.gz |
Move sources into src
Diffstat (limited to 'schedule.h')
-rw-r--r-- | schedule.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/schedule.h b/schedule.h deleted file mode 100644 index f2e6363..0000000 --- a/schedule.h +++ /dev/null @@ -1,42 +0,0 @@ -/* SPDX-License-Identifier: MIT-0 */ - -#ifndef SCHEDULE_H -#define SCHEDULE_H - -#include "deco.h" - -typedef struct waypoint_t { - double depth; - double time; - const gas_t *gas; -} waypoint_t; - -typedef struct decoinfo_t { - double ndl; - double tts; -} decoinfo_t; - -typedef enum segtype_t { - SEG_DECO_STOP, - SEG_DIVE, - SEG_GAS_SWITCH, - SEG_NDL, - SEG_SAFETY_STOP, - SEG_SURFACE, - SEG_TRAVEL, -} segtype_t; - -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); -const gas_t *next_gas(const double depth, const gas_t *gasses, const int nof_gasses); - -int direct_ascent(const decostate_t *ds, const double depth, const double time, const gas_t *gas); -double calc_ndl(decostate_t *ds, const double depth, const double ascrate, const gas_t *gas); - -void simulate_dive(decostate_t *ds, waypoint_t *waypoints, const int nof_waypoints, waypoint_callback_t wp_cb); - -decoinfo_t calc_deco(decostate_t *ds, const double start_depth, const gas_t *start_gas, const gas_t *deco_gasses, - const int nof_gasses, waypoint_callback_t wp_cb); - -#endif /* end of include guard: SCHEDULE_H */ |