comparison code_part1/OSTC_code_c_part2/shared_definitions.h @ 224:49c90c5d9603

Gas usage + Show after last page of decoplan. + Units in 0.1 litters (or bars), hence 16bits. + Define CF#56 and CF#57, defaults to 20.0 l/min. + Go RED if volume > 6553.5 (saturated). + Calculate gas usage at bottom of ascent (safe bet). + Fix when first gas is not Gas1. + BUGFIX gas usage: first gas is not in the sorted gaslist (in general). KNOWN BUG: wrong result if the gaslist is not sorted, or first gas do have a depth > 0.
author JeanDo
date Thu, 03 Mar 2011 15:16:23 +0100
parents 638f8e17bd51
children d995e220ddac
comparison
equal deleted inserted replaced
223:2a0a446fa6c0 224:49c90c5d9603
98 VAR_UINT (int_O_DBS2_bitfield); 98 VAR_UINT (int_O_DBS2_bitfield);
99 VAR_UINT (int_O_DBG_pre_bitfield); 99 VAR_UINT (int_O_DBG_pre_bitfield);
100 VAR_UINT (int_O_DBG_post_bitfield); 100 VAR_UINT (int_O_DBG_post_bitfield);
101 VAR_UCHAR (char_O_NDL_at_20mtr); 101 VAR_UCHAR (char_O_NDL_at_20mtr);
102 102
103 TAB_UCHAR (char_O_gas_volumes, 5); // Volumes evaluation for each gas tank, in 100's of liters. 103 TAB_UINT (int_O_gas_volumes, 5); // Volumes evaluation for each gas tank, in 0.1 liters.
104 104
105 TAB_UCHAR (char_O_hash, 16); 105 TAB_UCHAR (char_O_hash, 16);
106 106
107 #ifdef __18CXX 107 #ifdef __18CXX
108 //---- BANK 3 DATA ------------------------------------------------------- 108 //---- BANK 3 DATA -------------------------------------------------------
135 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor) 135 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor)
136 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation). 136 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation).
137 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation). 137 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation).
138 138
139 TAB_UCHAR (char_I_deco_gas_change, 5); // new in v.101 139 TAB_UCHAR (char_I_deco_gas_change, 5); // new in v.101
140 140 TAB_UCHAR (char_I_deco_N2_ratio, 5); // new in v.101
141 VAR_UCHAR (char_I_deco_N2_ratio1); // new in v.101 141 TAB_UCHAR (char_I_deco_He_ratio, 5); // new in v.101
142 VAR_UCHAR (char_I_deco_He_ratio1); // new in v.101
143 VAR_UCHAR (char_I_deco_N2_ratio2); // new in v.109
144 VAR_UCHAR (char_I_deco_He_ratio2); // new in v.109
145 VAR_UCHAR (char_I_deco_N2_ratio3); // new in v.109
146 VAR_UCHAR (char_I_deco_He_ratio3); // new in v.109
147 VAR_UCHAR (char_I_deco_N2_ratio4); // new in v.109
148 VAR_UCHAR (char_I_deco_He_ratio4); // new in v.109
149 VAR_UCHAR (char_I_deco_N2_ratio5); // new in v.109
150 VAR_UCHAR (char_I_deco_He_ratio5); // new in v.109
151 142
152 #ifdef __18CXX 143 #ifdef __18CXX
153 //---------------------------------------------------------------------------- 144 //----------------------------------------------------------------------------
154 // Access to various utilities defined in ASM-code. 145 // Access to various utilities defined in ASM-code.
155 // 146 //