comparison Discovery/Inc/vpm.h @ 907:46a21ff3f5ab Evo_2_23

Adaptation custom view deco plan for VPM: The VPM deco plan now shows the start of deco zone as well as the state of the deco table state. In case the table defined when reaching the deco zone is updated then the header line will change to yellow to indicate this. In case a deco stop is missed the head line will change to red.
author ideenmodellierer
date Sun, 13 Oct 2024 18:13:35 +0200
parents d4622533271d
children
comparison
equal deleted inserted replaced
906:49ee233c7a74 907:46a21ff3f5ab
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
46 void vpm_table_init(void); 54 void vpm_table_init(void);
55 uint8_t vpm_get_decozone(void);
56 SvpmTableState vpm_get_TableState(void);
47 57
48 58
49 #endif /* VPM_H */ 59 #endif /* VPM_H */