diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/shared_definitions.h	Thu Mar 03 02:23:56 2011 +0100
+++ b/code_part1/OSTC_code_c_part2/shared_definitions.h	Thu Mar 03 15:16:23 2011 +0100
@@ -100,7 +100,7 @@
 VAR_UINT  (int_O_DBG_post_bitfield);
 VAR_UCHAR (char_O_NDL_at_20mtr);
 
-TAB_UCHAR (char_O_gas_volumes, 5);           // Volumes evaluation for each gas tank, in 100's of liters.
+TAB_UINT (int_O_gas_volumes, 5);            // Volumes evaluation for each gas tank, in 0.1 liters.
 
 TAB_UCHAR (char_O_hash, 16);
 
@@ -137,17 +137,8 @@
 VAR_UCHAR (char_I_bottom_time);            // Bottom time for planning (used in gas volume evaluation).
 
 TAB_UCHAR (char_I_deco_gas_change, 5);     // new in v.101
-
-VAR_UCHAR (char_I_deco_N2_ratio1);         // new in v.101
-VAR_UCHAR (char_I_deco_He_ratio1);         // new in v.101
-VAR_UCHAR (char_I_deco_N2_ratio2);         // new in v.109
-VAR_UCHAR (char_I_deco_He_ratio2);         // new in v.109
-VAR_UCHAR (char_I_deco_N2_ratio3);         // new in v.109
-VAR_UCHAR (char_I_deco_He_ratio3);         // new in v.109
-VAR_UCHAR (char_I_deco_N2_ratio4);         // new in v.109
-VAR_UCHAR (char_I_deco_He_ratio4);         // new in v.109
-VAR_UCHAR (char_I_deco_N2_ratio5);         // new in v.109
-VAR_UCHAR (char_I_deco_He_ratio5);         // new in v.109
+TAB_UCHAR (char_I_deco_N2_ratio, 5);       // new in v.101
+TAB_UCHAR (char_I_deco_He_ratio, 5);       // new in v.101
 
 #ifdef __18CXX
 //----------------------------------------------------------------------------