comparison src/p2_deco.c @ 123:d076e9c02438

add ceiling display
author heinrichsweikamp
date Sun, 29 Jun 2014 13:40:59 +0200
parents 72259a79eac2
children 9e856337b225
comparison
equal deleted inserted replaced
122:3e84e2a64188 123:d076e9c02438
85 // 2013/03/05: [jDG] Should vault low_depth too. 85 // 2013/03/05: [jDG] Should vault low_depth too.
86 // 2013/03/05: [jDG] Wrobell remark: ascent_to_first_stop works better with finer steps (2sec). 86 // 2013/03/05: [jDG] Wrobell remark: ascent_to_first_stop works better with finer steps (2sec).
87 // 2013/05/08: [jDG] A. Salm remark: NOAA tables for CNS are in ATA, not bar. 87 // 2013/05/08: [jDG] A. Salm remark: NOAA tables for CNS are in ATA, not bar.
88 // 2013/12/21: [jDG] Fix CNS calculation in decoplan w/o marked gas switch 88 // 2013/12/21: [jDG] Fix CNS calculation in decoplan w/o marked gas switch
89 // 2014/06/16: [jDG] Fix Helium diluant. Fix volumes with many travel mix. 89 // 2014/06/16: [jDG] Fix Helium diluant. Fix volumes with many travel mix.
90 // 2014/06/29: [mH] Compute int_O_ceiling
90 // 91 //
91 // TODO: 92 // TODO:
92 // 93 //
93 // Literature: 94 // Literature:
94 // Bühlmann, Albert: Tauchmedizin; 4. Auflage [2002]; 95 // Bühlmann, Albert: Tauchmedizin; 4. Auflage [2002];
939 940
940 calc_hauptroutine_data_input(); 941 calc_hauptroutine_data_input();
941 942
942 calc_hauptroutine_update_tissues(); 943 calc_hauptroutine_update_tissues();
943 calc_gradient_factor(); 944 calc_gradient_factor();
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;
944 951
945 // toggle between calculation for nullzeit (bottom time), 952 // toggle between calculation for nullzeit (bottom time),
946 // deco stops 953 // deco stops
947 // and more deco stops (continue) 954 // and more deco stops (continue)
948 switch( char_O_deco_status ) 955 switch( char_O_deco_status )