Mercurial > public > hwos_code
diff src/p2_deco.c @ 123:d076e9c02438
add ceiling display
author | heinrichsweikamp |
---|---|
date | Sun, 29 Jun 2014 13:40:59 +0200 |
parents | 72259a79eac2 |
children | 9e856337b225 |
line wrap: on
line diff
--- a/src/p2_deco.c Fri Jun 27 16:55:49 2014 +0200 +++ b/src/p2_deco.c Sun Jun 29 13:40:59 2014 +0200 @@ -87,6 +87,7 @@ // 2013/05/08: [jDG] A. Salm remark: NOAA tables for CNS are in ATA, not bar. // 2013/12/21: [jDG] Fix CNS calculation in decoplan w/o marked gas switch // 2014/06/16: [jDG] Fix Helium diluant. Fix volumes with many travel mix. +// 2014/06/29: [mH] Compute int_O_ceiling // // TODO: // @@ -942,6 +943,12 @@ calc_hauptroutine_update_tissues(); calc_gradient_factor(); + // Fill int_O_ceiling if ceiling is below the surface + if ((calc_lead_tissue_limit-pres_surface)>0) + int_O_ceiling = (short)((calc_lead_tissue_limit-pres_surface)*1000); + else + int_O_ceiling = 0; + // toggle between calculation for nullzeit (bottom time), // deco stops // and more deco stops (continue)