comparison src/p2_deco.c @ 379:6ec79c5384f5

minor
author heinrichsweikamp
date Fri, 11 Sep 2015 19:37:28 +0200
parents de8c45fb2ab9
children ff1e6adf55ad
comparison
equal deleted inserted replaced
377:f0828110d864 379:6ec79c5384f5
574 sim_limit(1.0); 574 sim_limit(1.0);
575 575
576 pres_gradient = sim_lead_tissue_limit - pres_surface; 576 pres_gradient = sim_lead_tissue_limit - pres_surface;
577 if (pres_gradient >= 0) 577 if (pres_gradient >= 0)
578 { 578 {
579 pres_gradient *= BAR_TO_METER/3; // Bar --> stop number; 579 pres_gradient *= BAR_TO_METER/3; // bar --> stop number;
580 temp_depth_limit = 3 * (short) (pres_gradient + 0.99); // --> metre : depth for deco 580 temp_depth_limit = 3 * (short) (pres_gradient + 0.99); // --> metre : depth for deco
581 need_stop = 1; // Hit. 581 need_stop = 1; // Hit.
582 582
583 // Implement last stop at 4m/5m/6m... 583 // Implement last stop at 4m/5m/6m...
584 if( temp_depth_limit == 3 ) 584 if( temp_depth_limit == 3 )
1030 1030
1031 pres_respiration = int_I_pres_respiration * 0.001; 1031 pres_respiration = int_I_pres_respiration * 0.001;
1032 pres_surface = int_I_pres_surface * 0.001; 1032 pres_surface = int_I_pres_surface * 0.001;
1033 N2_ratio = char_I_N2_ratio * 0.01; 1033 N2_ratio = char_I_N2_ratio * 0.01;
1034 He_ratio = char_I_He_ratio * 0.01; 1034 He_ratio = char_I_He_ratio * 0.01;
1035 float_deco_distance = char_I_deco_distance * 0.01; // Get offset in BAR 1035 float_deco_distance = char_I_deco_distance * 0.01; // Get offset in mbar
1036 1036
1037 // ____________________________________________________ 1037 // ____________________________________________________
1038 // 1038 //
1039 // _____________ G A S _ C H A N G E S ________________ 1039 // _____________ G A S _ C H A N G E S ________________
1040 // ____________________________________________________ 1040 // ____________________________________________________