comparison src/p2_deco.c @ 133:939f1e83c4c2

BUGFIX: Surface interval was not displayed correctly in some cases NEW: Store tissue load, date and time, surface interval, desat. time and nofly time every hour and reload them after battery change
author heinrichsweikamp
date Mon, 14 Jul 2014 15:17:07 +0200
parents 9e856337b225
children 42a2cfc3e85d
comparison
equal deleted inserted replaced
132:ec0b1e829399 133:939f1e83c4c2
225 225
226 //---- Bank 7 parameters ----------------------------------------------------- 226 //---- Bank 7 parameters -----------------------------------------------------
227 #ifndef UNIX 227 #ifndef UNIX
228 # pragma udata bank7=0x700 228 # pragma udata bank7=0x700
229 #endif 229 #endif
230 230 // Keep order of 0x700 variables
231 float pres_tissue_N2[NUM_COMP]; 231 float pres_tissue_N2[NUM_COMP];
232 float pres_tissue_He[NUM_COMP]; 232 float pres_tissue_He[NUM_COMP];
233 float sim_pres_tissue_N2[NUM_COMP]; // 16 floats = 64 bytes. 233 float sim_pres_tissue_N2[NUM_COMP]; // 16 floats = 64 bytes.
234 float sim_pres_tissue_He[NUM_COMP]; // 16 floats = 64 bytes. 234 float sim_pres_tissue_He[NUM_COMP]; // 16 floats = 64 bytes.
235 235
2158 // CF#54 == TRUE if shallowest stop first. 2158 // CF#54 == TRUE if shallowest stop first.
2159 // CF#56 == bottom liters/minutes (5 .. 50) or bar/min. 2159 // CF#56 == bottom liters/minutes (5 .. 50) or bar/min.
2160 // CF#57 == deco liters/minutes (5 .. 50) or bar/min. 2160 // CF#57 == deco liters/minutes (5 .. 50) or bar/min.
2161 // Output: int_O_gas_volumes[0..4] in litters * 0.1 2161 // Output: int_O_gas_volumes[0..4] in litters * 0.1
2162 // 2162 //
2163 /*
2164
2163 void deco_gas_volumes(void) 2165 void deco_gas_volumes(void)
2164 { 2166 {
2165 overlay float volumes[NUM_GAS]; 2167 overlay float volumes[NUM_GAS];
2166 overlay float bottom_usage, deco_usage; 2168 overlay float bottom_usage, deco_usage;
2167 overlay unsigned char i, deepest_first; 2169 overlay unsigned char i, deepest_first;
2287 int_O_gas_volumes[i] = (unsigned short)(volumes[i] + 0.5); 2289 int_O_gas_volumes[i] = (unsigned short)(volumes[i] + 0.5);
2288 } 2290 }
2289 2291
2290 ////////////////////////////////////////////////////////////////////////////// 2292 //////////////////////////////////////////////////////////////////////////////
2291 2293
2294 */
2295
2292 void deco_push_tissues_to_vault(void) 2296 void deco_push_tissues_to_vault(void)
2293 { 2297 {
2294 overlay unsigned char x; 2298 overlay unsigned char x;
2295 RESET_C_STACK 2299 RESET_C_STACK
2296 2300