Mercurial > public > hwos_code
comparison src/p2_deco.c @ 126:9e856337b225
fix depth<0m display, ceiling
author | heinrichsweikamp |
---|---|
date | Mon, 30 Jun 2014 10:58:02 +0200 |
parents | d076e9c02438 |
children | 939f1e83c4c2 |
comparison
equal
deleted
inserted
replaced
125:53409476a05f | 126:9e856337b225 |
---|---|
941 calc_hauptroutine_data_input(); | 941 calc_hauptroutine_data_input(); |
942 | 942 |
943 calc_hauptroutine_update_tissues(); | 943 calc_hauptroutine_update_tissues(); |
944 calc_gradient_factor(); | 944 calc_gradient_factor(); |
945 | 945 |
946 // Fill int_O_ceiling if ceiling is below the surface | |
947 if ((calc_lead_tissue_limit-pres_surface)>0) | |
948 int_O_ceiling = (short)((calc_lead_tissue_limit-pres_surface)*1000); | |
949 else | |
950 int_O_ceiling = 0; | |
951 | |
952 // toggle between calculation for nullzeit (bottom time), | 946 // toggle between calculation for nullzeit (bottom time), |
953 // deco stops | 947 // deco stops |
954 // and more deco stops (continue) | 948 // and more deco stops (continue) |
955 switch( char_O_deco_status ) | 949 switch( char_O_deco_status ) |
956 { | 950 { |
1137 calc_tissue(1); | 1131 calc_tissue(1); |
1138 | 1132 |
1139 // Calc limit for surface, ie. GF_high. | 1133 // Calc limit for surface, ie. GF_high. |
1140 calc_limit(); | 1134 calc_limit(); |
1141 | 1135 |
1142 int_O_gtissue_limit = (short)(calc_lead_tissue_limit * 1000); | 1136 // Fill int_O_ceiling if ceiling is below the surface |
1137 if ((calc_lead_tissue_limit-pres_surface)>0) | |
1138 int_O_ceiling = (short)((calc_lead_tissue_limit-pres_surface)*1000); | |
1139 else | |
1140 int_O_ceiling = 0; | |
1141 | |
1143 int_O_gtissue_press = (short)((pres_tissue_N2[char_O_gtissue_no] + pres_tissue_He[char_O_gtissue_no]) * 1000); | 1142 int_O_gtissue_press = (short)((pres_tissue_N2[char_O_gtissue_no] + pres_tissue_He[char_O_gtissue_no]) * 1000); |
1144 } | 1143 } |
1145 | 1144 |
1146 | 1145 |
1147 ////////////////////////////////////////////////////////////////////////////// | 1146 ////////////////////////////////////////////////////////////////////////////// |