diff options
Diffstat (limited to 'src/deco.c')
-rw-r--r-- | src/deco.c | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -13,7 +13,6 @@ enum UNITS UNITS = UNITS_DEFAULT; double SURFACE_PRESSURE = SURFACE_PRESSURE_DEFAULT; double P_WV = P_WV_DEFAULT; -double PO2_MAX = PO2_MAX_DEFAULT; double END_MAX = END_MAX_DEFAULT; typedef struct zhl_n2_t { @@ -117,41 +116,6 @@ double gauge_depth(double ad) return ad - SURFACE_PRESSURE; } -gas_t gas_new(unsigned char o2, unsigned char he, double mod) -{ - assert(o2 + he <= 100); - - if (mod == MOD_AUTO) - mod = PO2_MAX / (o2 / 100.0); - - return (gas_t){.o2 = o2, .he = he, .n2 = 100 - o2 - he, .mod = mod}; -} - -int gas_equal(const gas_t *g1, const gas_t *g2) -{ - return g1->o2 == g2->o2 && g1->he == g2->he && g1->mod == g2->mod; -} - -unsigned char gas_o2(const gas_t *gas) -{ - return gas->o2; -} - -unsigned char gas_he(const gas_t *gas) -{ - return gas->he; -} - -unsigned char gas_n2(const gas_t *gas) -{ - return gas->n2; -} - -double gas_mod(const gas_t *gas) -{ - return gas->mod; -} - void add_segment_ascdec(decostate_t *ds, double dstart, double dend, double time, const gas_t *gas) { assert(time > 0); |