Mercurial > public > hwos_code
diff src/p2_deco.c @ 298:2fe34fc0e2ae
new submenu for gas consumption, show actual mix instead of GAS1-GAS5 in deco planner
author | heinrichsweikamp |
---|---|
date | Sun, 31 May 2015 16:19:56 +0200 |
parents | 30edd177016a |
children | 0ce5fa241b8e |
line wrap: on
line diff
--- a/src/p2_deco.c Sun May 31 10:42:47 2015 +0200 +++ b/src/p2_deco.c Sun May 31 16:19:56 2015 +0200 @@ -2151,9 +2151,8 @@ // Gas list. // char_I_first_gas is the bottom gas. // decoplan (char_O_deco_depth, char_O_deco_time). -// CF#54 == TRUE if shallowest stop first. -// CF#56 == bottom liters/minutes (5 .. 50) or bar/min. -// CF#57 == deco liters/minutes (5 .. 50) or bar/min. +// char_I_bottom_usage is bottom liters/minutes (5 .. 50) or bar/min. +// char_I_deco_usage is deco liters/minutes (5 .. 50) or bar/min. // Output: int_O_gas_volumes[0..4] in litters * 0.1 // void deco_gas_volumes(void) @@ -2168,9 +2167,8 @@ for(i=0; i<NUM_GAS; ++i) // Nothing yet... volumes[i] = 0.0; - // TODO: get conso from settings: - bottom_usage = 20; // In liter/minutes. - deco_usage = 20; // In liter/minutes. + bottom_usage = char_I_bottom_usage; // In liter/minutes. + deco_usage = char_I_deco_usage; // In liter/minutes. // Early return if not defined: if( deco_usage <= 0.0 || bottom_usage <= 0.0 )