comparison code_part1/OSTC_code_c_part2/p2_deco.c @ 527:31db81de1d4f

Minor: should not reset char_I_depth_last_deco.
author JeanDo
date Mon, 12 Dec 2011 18:21:21 +0100
parents 6fa776a44768
children f5a06b9e2fef
comparison
equal deleted inserted replaced
526:d445f0627e86 527:31db81de1d4f
106 #include "p2_definitions.h" 106 #include "p2_definitions.h"
107 #define TEST_MAIN 107 #define TEST_MAIN
108 #include "../OSTC_code_asm_part1/shared_definitions.h" 108 #include "../OSTC_code_asm_part1/shared_definitions.h"
109 109
110 // Water vapour partial pressure in the lumb. 110 // Water vapour partial pressure in the lumb.
111 #define ppWater 0.0627 111 #define ppWater 0.0627
112 #define METER_TO_BAR 0.09985 112 #define METER_TO_BAR 0.09985
113 #define BAR_TO_METER 10.0150 // (1.0/METER_TO_BAR) 113 #define BAR_TO_METER 10.0150 // (1.0/METER_TO_BAR)
114 114
115 // Surface security factor 115 // Surface security factor
116 #define SURFACE_DESAT_FACTOR 0.7042 116 #define SURFACE_DESAT_FACTOR 0.7042
561 ////////////////////////////////////////////////////////////////////////////// 561 //////////////////////////////////////////////////////////////////////////////
562 // read buhlmann tables A and B for compatriment ci 562 // read buhlmann tables A and B for compatriment ci
563 // 563 //
564 static void read_buhlmann_coefficients(void) 564 static void read_buhlmann_coefficients(void)
565 { 565 {
566
567 #ifndef CROSS_COMPILE 566 #ifndef CROSS_COMPILE
568 // Note: we don't use far rom pointer, because the 567 // Note: we don't use far rom pointer, because the
569 // 24 bits is too complex, hence we have to set 568 // 24 bits is too complex, hence we have to set
570 // the UPPER page ourself... 569 // the UPPER page ourself...
571 // --> Set zero if tables are moved to lower pages ! 570 // --> Set zero if tables are moved to lower pages !
673 int_O_DBG_pre_bitfield |= DBG_ZH16ERR; 672 int_O_DBG_pre_bitfield |= DBG_ZH16ERR;
674 673
675 break; 674 break;
676 675
677 default: 676 default:
678 assert(0); // Never go there... 677 assert(0); // Never go there...
679 } 678 }
680 } 679 }
681 680
682 ////////////////////////////////////////////////////////////////////////////// 681 //////////////////////////////////////////////////////////////////////////////
683 // read buhlmann tables for compatriment ci 682 // read buhlmann tables for compatriment ci
1227 char_O_deco_status = 0; 1226 char_O_deco_status = 0;
1228 char_O_nullzeit = 0; 1227 char_O_nullzeit = 0;
1229 int_O_ascenttime = 0; 1228 int_O_ascenttime = 0;
1230 char_O_gradient_factor = 0; 1229 char_O_gradient_factor = 0;
1231 char_O_relative_gradient_GF = 0; 1230 char_O_relative_gradient_GF = 0;
1232 char_I_depth_last_deco = 0; // for compatibility with v.101pre_no_last_deco
1233 1231
1234 calc_lead_tissue_limit = 0.0; 1232 calc_lead_tissue_limit = 0.0;
1235 char_O_gtissue_no = 0; 1233 char_O_gtissue_no = 0;
1236 } 1234 }
1237 1235