comparison Discovery/Inc/vpm.h @ 981:c6c781a2e85b default

Merge into default
author heinrichsweikamp
date Tue, 11 Feb 2025 18:12:00 +0100
parents 46a21ff3f5ab
children
comparison
equal deleted inserted replaced
871:f7318457df4d 981:c6c781a2e85b
32 32
33 extern long vpm_time_calc_begin; 33 extern long vpm_time_calc_begin;
34 enum DECOLIST{DECOSTOPS,FUTURESTOPS,BAILOUTSTOPS, OFF = -1}; // order is important!! 34 enum DECOLIST{DECOSTOPS,FUTURESTOPS,BAILOUTSTOPS, OFF = -1}; // order is important!!
35 enum VPM_CALC_STATUS{CALC_END, CALC_BEGIN, CALC_CRITICAL, CALC_FINAL_DECO, CALC_NDL }; 35 enum VPM_CALC_STATUS{CALC_END, CALC_BEGIN, CALC_CRITICAL, CALC_FINAL_DECO, CALC_NDL };
36 36
37 typedef enum
38 {
39 VPM_TABLE_INIT = 0,
40 VPM_TABLE_ACTIVE,
41 VPM_TABLE_WARNING,
42 VPM_TABLE_MISSED
43 } SvpmTableState;
44
37 float schreiner_equation__2(float *initial_inspired_gas_pressure,float *rate_change_insp_gas_pressure,float *interval_time_minutes, const float *gas_time_constant,float *initial_gas_pressure); 45 float schreiner_equation__2(float *initial_inspired_gas_pressure,float *rate_change_insp_gas_pressure,float *interval_time_minutes, const float *gas_time_constant,float *initial_gas_pressure);
38 46
39 int vpm_calc(SLifeData* pINPUT, SDiveSettings* diveSettings, SVpm* pVPM, SDecoinfo* pDECOINFO, int calc_what); 47 int vpm_calc(SLifeData* pINPUT, SDiveSettings* diveSettings, SVpm* pVPM, SDecoinfo* pDECOINFO, int calc_what);
40 void vpm_saturation_after_ascent(SLifeData* input); 48 void vpm_saturation_after_ascent(SLifeData* input);
41 extern const float helium_time_constant[16]; 49 extern const float helium_time_constant[16];
42 extern const float nitrogen_time_constant[16]; 50 extern const float nitrogen_time_constant[16];
43 51
44 float vpm_get_CNS(void); 52 float vpm_get_CNS(void);
45 53
54 void vpm_table_init(void);
55 uint8_t vpm_get_decozone(void);
56 SvpmTableState vpm_get_TableState(void);
57
46 58
47 #endif /* VPM_H */ 59 #endif /* VPM_H */