comparison code_part1/OSTC_code_c_part2/p2_tables.romdata @ 0:96a35aeda5f2

Initial setup
author heinrichsweikamp
date Tue, 12 Jan 2010 15:05:59 +0100
parents
children 8b5b848db4cd
comparison
equal deleted inserted replaced
-1:000000000000 0:96a35aeda5f2
1
2
3 // OSTC - diving computer code
4
5 // Copyright (C) 2008 HeinrichsWeikamp GbR
6
7
8
9 // This program is free software: you can redistribute it and/or modify
10
11 // it under the terms of the GNU General Public License as published by
12
13 // the Free Software Foundation, either version 3 of the License, or
14
15 // (at your option) any later version.
16
17
18
19 // This program is distributed in the hope that it will be useful,
20
21 // but WITHOUT ANY WARRANTY; without even the implied warranty of
22
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
25 // GNU General Public License for more details.
26
27
28
29 // You should have received a copy of the GNU General Public License
30
31 // along with this program. If not, see <http://www.gnu.org/licenses/>.
32
33
34
35
36
37 /*
38
39 INHALT
40
41 ------
42
43 { unsigned int *rom e2secs[];
44
45 { unsigned int *rom a_N2[];
46
47 { unsigned int *rom b_N2[];
48
49 { unsigned int *rom t05[]; formated: und zwar t05 * -1.0 / ln(2)
50
51 { unsigned int *rom e1min[];
52
53 { unsigned int *rom ht[]; t05 unmodified
54
55 */
56
57
58
59
60
61 rom const unsigned int e2secs[] =
62
63 {
64
65 // N2
66
67 0x07BB, 0xBC3B, 0xD0FF, 0x3C3B, 0xF80C, 0xF23A, 0x4997, 0xA33A
68
69 , 0xE93A, 0x603A, 0x0418, 0x1E3A, 0x9009, 0xDF39, 0x014C, 0x9D39
70
71 , 0xE53E, 0x5E39, 0x3AED, 0x2539, 0x338D, 0x0139, 0xC6BA, 0xCA38
72
73 , 0x82DC, 0x9E38, 0x844D, 0x7838, 0x9F9D, 0x4238, 0x34AC, 0x1838
74
75 // He
76
77 , 0xA3C9, 0x783C, 0x45BD, 0xF93B, 0xCC02, 0xA03B, 0x3E44, 0x583B
78
79 , 0x6223, 0x143B, 0x31FA, 0xD03A, 0xA46D, 0x933A, 0xDDFB, 0x4F3A
80
81 , 0x03F8, 0x123A, 0x8D71, 0xDB39, 0xAB55, 0xAB39, 0x7712, 0x8639
82
83 , 0xEA1E, 0x5239, 0x2C54, 0x2439, 0x37B2, 0x0039, 0xDADB, 0xC938
84
85 /*
86
87 Die e2secs Werte in float Notation:
88
89 5.7596E-03, und zwar 1 - 2^(-2sec/t05)
90
91 2.8839E-03,
92
93 1.8467e-03,
94
95 1.2481e-03,
96
97 8.5537E-04,
98
99 6.0308E-04,
100
101 4.2541E-04,
102
103 3.0002E-04,
104
105 2.1195E-04,
106
107 1.5824E-04,
108
109 1.2355E-04,
110
111 9.6669E-05,
112
113 7.5751E-05,
114
115 5.92E-05,
116
117 4.64E-05,
118
119 3.64E-05
120
121 // e 2 sec He
122
123 sim_pres_tissue_limit[0] = 0.01518479275;
124
125 sim_pres_tissue_limit[1] = 0.007621439546;
126
127 sim_pres_tissue_limit[2] = 0.004883145696;
128
129 sim_pres_tissue_limit[3] = 0.003299965996;
130
131 sim_pres_tissue_limit[4] = 0.002260409686;
132
133 sim_pres_tissue_limit[5] = 0.00159437032;
134
135 sim_pres_tissue_limit[6] = 0.001124788578;
136
137 sim_pres_tissue_limit[7] = 0.0007933953673;
138
139 sim_pres_tissue_limit[8] = 0.0005606414716;
140
141 sim_pres_tissue_limit[9] = 0.0004185553604;
142
143 sim_pres_tissue_limit[10] =0.0003267948866;
144
145 sim_pres_tissue_limit[11] =0.0002557222899;
146
147 sim_pres_tissue_limit[12] =0.0002003867723;
148
149 sim_pres_tissue_limit[13] =0.0001567161546;
150
151 sim_pres_tissue_limit[14] =0.0001227342122;
152
153 sim_pres_tissue_limit[15] =9.625377675E-5
154
155 */
156
157 };
158
159
160
161 rom const unsigned int a_N2[] =
162
163 {
164
165 // N2
166
167 0x6744, 0xA13F, 0x0000, 0x803F, 0xED9E, 0x5C3F, 0x5396, 0x413F
168
169 , 0x52B8, 0x1E3F, 0xCE19, 0x013F, 0xC1CA, 0xE13E, 0xCDCC, 0xCC3E
170
171 , 0x0000, 0xC03E, 0x3333, 0xB33E, 0x39B4, 0xA83E, 0x91ED, 0x9C3E
172
173 , 0xE926, 0x913E, 0xCBA1, 0x853E, 0xB6F3, 0x7D3E, 0xE948, 0x6E3E
174
175 // He
176
177 , 0xF706, 0xDF3F, 0x2506, 0xB13F, 0x2E90, 0x983F, 0xC7DC, 0x853F
178
179 , 0x3108, 0x6C3F, 0x4A0C, 0x523F, 0x0C02, 0x3B3F, 0x8273, 0x263F
180
181 , 0xEC51, 0x183F, 0xB6F3, 0x0D3F, 0x5986, 0x083F, 0xA1D6, 0x043F
182
183 , 0x34A2, 0x043F, 0x6F81, 0x043F, 0x3867, 0x043F, 0xE10B, 0x033F
184
185
186
187 /*
188
189 // a of N2
190
191 sim_pres_tissue[0] = 1.2599;
192
193 sim_pres_tissue[1] = 1.0;
194
195 sim_pres_tissue[2] = 0.8618;
196
197 sim_pres_tissue[3] = 0.7562;
198
199 sim_pres_tissue[4] = 0.6200;
200
201 sim_pres_tissue[5] = 0.5043;
202
203 sim_pres_tissue[6] = 0.4410;
204
205 sim_pres_tissue[7] = 0.4000;
206
207 sim_pres_tissue[8] = 0.3750;
208
209 sim_pres_tissue[9] = 0.3500;
210
211 sim_pres_tissue[10] = 0.3295;
212
213 sim_pres_tissue[11] = 0.3065;
214
215 sim_pres_tissue[12] = 0.2835;
216
217 sim_pres_tissue[13] = 0.2610;
218
219 sim_pres_tissue[14] = 0.2480;
220
221 sim_pres_tissue[15] = 0.2327;
222
223 // a of He
224
225 sim_pres_tissue[16] = 1742.4 / 1000.0;
226
227 sim_pres_tissue[17] = 1383.0 / 1000.0;
228
229 sim_pres_tissue[18] = 1191.9 / 1000.0;
230
231 sim_pres_tissue[19] = 1045.8 / 1000.0;
232
233 sim_pres_tissue[20] = 9220. / 10000.0;
234
235 sim_pres_tissue[21] = 8205. / 10000.0;
236
237 sim_pres_tissue[22] = 7305. / 10000.0;
238
239 sim_pres_tissue[23] = 6502. / 10000.0;
240
241 sim_pres_tissue[24] = 5950. / 10000.0;
242
243 sim_pres_tissue[25] = 5545. / 10000.0;
244
245 sim_pres_tissue[26] = 5333. / 10000.0;
246
247 sim_pres_tissue[27] = 5189. / 10000.0;
248
249 sim_pres_tissue[28] = 5181. / 10000.0;
250
251 sim_pres_tissue[29] = 5176. / 10000.0;
252
253 sim_pres_tissue[30] = 5172. / 10000.0;
254
255 sim_pres_tissue[31] = 5119. / 10000.0;
256
257 */
258
259 };
260
261
262
263 rom const unsigned int b_N2[] =
264
265 {
266
267 // N2
268
269 0xAE47, 0x013F, 0x27C2, 0x263F, 0x19E2, 0x383F, 0xEC51, 0x483F,
270
271 0x8E06, 0x503F, 0x10E9, 0x573F, 0x728A, 0x5E3F, 0x9318, 0x643F,
272
273 0x55C1, 0x683F, 0x4D15, 0x6C3F, 0x0091, 0x6E3F, 0x80B7, 0x703F,
274
275 0x789C, 0x723F, 0x8F53, 0x743F, 0xABCF, 0x753F, 0xE71D, 0x773F
276
277 // He
278
279 , 0x1058, 0xD93E, 0x8A1F, 0x133F, 0x5917, 0x273F, 0xA7E8, 0x383F
280
281 , 0x6519, 0x423F, 0xFFB2, 0x4B3F, 0x41F1, 0x533F, 0xF1F4, 0x5A3F
282
283 , 0xE02D, 0x603F, 0xB3EA, 0x633F, 0xBD52, 0x663F, 0xD044, 0x683F
284
285 , 0xF085, 0x693F, 0x11C7, 0x6A3F, 0x88F4, 0x6B3F, 0x363C, 0x6D3F
286
287
288
289 /*
290
291 5050, Werte sind Einheitslos. 5050 ist in float als 0.5050
292
293 6514,
294
295 7222,
296
297 7825,
298
299 8126,
300
301 8434,
302
303 8693,
304
305 8910,
306
307 9092,
308
309 9222,
310
311 9319,
312
313 9403,
314
315 9477,
316
317 9544,
318
319 9602,
320
321 9653
322
323 // b
324
325 sim_pres_tissue[16] = 0.4245;
326
327 sim_pres_tissue[17] = 0.5747;
328
329 sim_pres_tissue[18] = 0.6527;
330
331 sim_pres_tissue[19] = 0.7223;
332
333 sim_pres_tissue[20] = 0.7582;
334
335 sim_pres_tissue[21] = 0.7957;
336
337 sim_pres_tissue[22] = 0.8279;
338
339 sim_pres_tissue[23] = 0.8553;
340
341 sim_pres_tissue[24] = 0.8757;
342
343 sim_pres_tissue[25] = 0.8903;
344
345 sim_pres_tissue[26] = 0.8997;
346
347 sim_pres_tissue[27] = 0.9073;
348
349 sim_pres_tissue[28] = 0.9122;
350
351 sim_pres_tissue[29] = 0.9171;
352
353 sim_pres_tissue[30] = 0.9217;
354
355 sim_pres_tissue[31] = 0.9267;
356
357 */
358
359 };
360
361
362
363 rom const unsigned int t05[] =
364
365 {
366
367 // N2
368
369 0x3BAA, 0xB8C0, 0x3BAA, 0x38C1, 0xFE44, 0x90C1, 0xD484, 0xD5C1
370
371 , 0xA2CF, 0x1BC2, 0x5805, 0x5DC2, 0x3BAD, 0x9CC2, 0xCF2C, 0xDEC2
372
373 , 0xF640, 0x1DC3, 0x2BA2, 0x52C3, 0x59E4, 0x86C3, 0xED66, 0xACC3
374
375 , 0xD002, 0xDCC3, 0xABA9, 0x0CC4, 0x939D, 0x33C4, 0x2007, 0x65C4
376
377 // He
378
379 , 0x0B6C, 0x0BC0, 0x0B6C, 0x8BC0, 0x98E7, 0xD9C0, 0xDC59, 0x21C1
380
381 , 0xBDAD, 0x6BC1, 0x2E1F, 0xA7C1, 0xBFF2, 0xECC1, 0xC7FC, 0x27C2
382
383 , 0x93C1, 0x6DC2, 0xA33E, 0x9FC2, 0xDEF7, 0xCBC2, 0x4455, 0x02C3
384
385 , 0x0C54, 0x26C3, 0x9EAE, 0x54C3, 0x55C9, 0x87C3, 0x2225, 0xADC3
386
387 /*
388
389 4, und zwar 4.0 * -1.0 / ln(2) ...
390
391 8,
392
393 12,
394
395 18,
396
397 27,
398
399 39,
400
401 55,
402
403 77,
404
405 109,
406
407 146,
408
409 187,
410
411 239,
412
413 305,
414
415 390,
416
417 498,
418
419 635
420
421 // He; t05 * -1 /ln(2)
422
423 pres_tissue[16] = -2.178469512;
424
425 pres_tissue[17] = -4.356939024;
426
427 pres_tissue[18] = -6.809520594;
428
429 pres_tissue[19] = -10.08443834;
430
431 pres_tissue[20] = -14.72991637;
432
433 pres_tissue[21] = -20.89022419;
434
435 pres_tissue[22] = -29.61852919;
436
437 pres_tissue[23] = -41.99685264;
438
439 pres_tissue[24] = -59.43903569;
440
441 pres_tissue[25] = -79.62233931;
442
443 pres_tissue[26] = -101.9841124;
444
445 pres_tissue[27] = -130.33307;
446
447 pres_tissue[28] = -166.3283113;
448
449 pres_tissue[29] = -212.6821029;
450
451 pres_tissue[30] = -271.5729145;
452
453 pres_tissue[31] = -346.2900907;
454
455 */
456
457 };
458
459
460
461 // ab hier bei Speicher 0x4100
462
463 rom const unsigned int e1min[] =
464
465 { // N2
466
467 0x0EEC, 0x223E, 0xC9F9, 0xA93D, 0xA8F2, 0x5C3D, 0x8AA0, 0x163D
468
469 , 0x23A1, 0xCF3C, 0x89EC, 0x923C, 0x9AD0, 0x4F3C, 0x52D3, 0x123C
470
471 , 0x26B7, 0xCF3B, 0x3A33, 0x9B3B, 0x7B78, 0x723B, 0xC0CA, 0x3D3B
472
473 , 0xD7C4, 0x143B, 0x58BF, 0xE83A, 0xA54E, 0xB63A, 0x0AFF, 0x8E3A
474
475 // He
476
477 , 0xBE78, 0xBC3E, 0x9001, 0x523E, 0x71DB, 0x0B3E, 0x3757, 0xC13D
478
479 , 0x186C, 0x863D, 0x2274, 0x3F3D, 0xBAFB, 0x073D, 0x1AC2, 0xC03C
480
481 , 0x44AB, 0x883C, 0x107C, 0x4C3C, 0x0EDE, 0x1F3C, 0x9174, 0xFA3B
482
483 , 0xBB6A, 0xC43B, 0x6CB5, 0x993B, 0x57E0, 0x703B, 0x8FFA, 0x3C3B
484
485 /*
486
487 Die e1min Werte in float Notation:
488
489 und zwar 1 - 2^(-1/t05)
490
491 c_2[0] = 0.1591036;
492
493 c_2[1] = 0.08299596;
494
495 c_2[2] = 0.053942353;
496
497 c_2[3] = 0.036774196;
498
499 c_2[4] = 0.02534539;
500
501 c_2[5] = 0.017935055;
502
503 c_2[6] = 0.012684012;
504
505 c_2[7] = 8.961515534E-3;
506
507 c_2[8] = 6.338971845E-3;
508
509 c_2[9] = 4.73633146E-3;
510
511 c_2[10] = 3.699808187E-3;
512
513 c_2[11] = 2.89599589E-3;
514
515 c_2[12] = 2.270033275E-3;
516
517 c_2[13] = 1.775722E-3;
518
519 c_2[14] = 1.390893611E-3;
520
521 c_2[15] = 1.090974815E-3;
522
523 // e 1 īmin He
524
525 pres_tissue[0] = 0.368108684;
526
527 pres_tissue[1] = 0.2050840824;
528
529 pres_tissue[2] = 0.1365792957;
530
531 pres_tissue[3] = 0.09440463235;
532
533 pres_tissue[4] = 0.06563586265;
534
535 pres_tissue[5] = 0.04674161154;
536
537 pres_tissue[6] = 0.03319905126;
538
539 pres_tissue[7] = 0.02353005571;
540
541 pres_tissue[8] = 0.0166832282;
542
543 pres_tissue[9] = 0.01248075064;
544
545 pres_tissue[10] = 0.009757532198;
546
547 pres_tissue[11] = 0.007643290133;
548
549 pres_tissue[12] = 0.005994168431;
550
551 pres_tissue[13] = 0.004690816669;
552
553 pres_tissue[14] = 0.003675481163;
554
555 pres_tissue[15] = 0.002883586737;
556
557 */
558
559 };
560
561
562
563 rom const unsigned int ht[] =
564
565 {
566
567 // N2
568
569 0x0000, 0x8040, 0x0000, 0x0041, 0x0000, 0x4841, 0x0000, 0x9441
570
571 , 0x0000, 0xD841, 0x3333, 0x1942, 0x3333, 0x5942, 0x0000, 0x9A42
572
573 , 0x0000, 0xDA42, 0x0000, 0x1243, 0x0000, 0x3B43, 0x0000, 0x6F43
574
575 , 0x0080, 0x9843, 0x0000, 0xC343, 0x0000, 0xF943, 0x00C0, 0x1E44
576
577 // He
578
579 , 0xAE47, 0xC13F, 0xAE47, 0x4140, 0x3D0A, 0x9740, 0x14AE, 0xDF40
580
581 , 0x295C, 0x2341, 0x14AE, 0x6741, 0x713D, 0xA441, 0x48E1, 0xE841
582
583 , 0xCDCC, 0x2442, 0x8FC2, 0x5C42, 0x4861, 0x8D42, 0x14AE, 0xB442
584
585 , 0x7B94, 0xE642, 0x856B, 0x1343, 0x713D, 0x3C43, 0xAE07, 0x7043
586
587 /*
588
589 He:
590
591 sim_pres_tissue[0] = 1.51;
592
593 sim_pres_tissue[1] = 3.02;
594
595 sim_pres_tissue[2] = 4.72;
596
597 sim_pres_tissue[3] = 6.99;
598
599 sim_pres_tissue[4] =10.21;
600
601 sim_pres_tissue[5] =14.48;
602
603 sim_pres_tissue[6] =20.53;
604
605 sim_pres_tissue[7] =29.11;
606
607 sim_pres_tissue[8] =41.20;
608
609 sim_pres_tissue[9] =55.19;
610
611 sim_pres_tissue[10] =70.69;
612
613 sim_pres_tissue[11] =90.34;
614
615 sim_pres_tissue[12] =115.29;
616
617 sim_pres_tissue[13] =147.42;
618
619 sim_pres_tissue[14] =188.24;
620
621 sim_pres_tissue[15] =240.03;
622
623 */
624
625 };
626
627
628
629 rom const unsigned int e10min[] =
630
631 {
632
633 // N2
634
635 0xBEBE, 0x523F, 0x855D, 0x143F, 0xEEEE, 0xD93E, 0x4CFE, 0x9F3E
636
637 , 0x99D9, 0x673E, 0x2785, 0x293E, 0xAD6E, 0xF53D, 0x044E, 0xB03D
638
639 , 0x8D5C, 0x7C3D, 0xCDEA, 0x3D3D, 0xB00B, 0x153D, 0x232C, 0xEA3C
640
641 , 0x9612, 0xB83C, 0x6E4F, 0x903C, 0x8276, 0x623C, 0x9FDE, 0x313C
642
643 // He
644
645 , 0xE066, 0x7D3F, 0xC635, 0x663F, 0x7C0D, 0x453F, 0xEA07, 0x213F
646
647 , 0x0953, 0xFC3E, 0xB5C4, 0xC23E, 0x1CB5, 0x923E, 0xA5F8, 0x583E
648
649 , 0xBC90, 0x1E3E, 0x9EB7, 0xF13D, 0xC348, 0xBF3D, 0x4942, 0x973D
650
651 , 0xD400, 0x6F3D, 0x6921, 0x3C3D, 0xF514, 0x143D, 0x982E, 0xE93C
652
653 /*
654
655 He: 10 min
656
657 sim_pres_tissue[0] = 0.989851;
658
659 sim_pres_tissue[1] = 0.899258;
660
661 sim_pres_tissue[2] = 0.769737;
662
663 sim_pres_tissue[3] = 0.629027;
664
665 sim_pres_tissue[4] = 0.492821;
666
667 sim_pres_tissue[5] = 0.380407;
668
669 sim_pres_tissue[6] = 0.286538;
670
671 sim_pres_tissue[7] = 0.211886;
672
673 sim_pres_tissue[8] = 0.154849;
674
675 sim_pres_tissue[9] = 0.118026;
676
677 sim_pres_tissue[10] =0.0934005;
678
679 sim_pres_tissue[11] =0.0738569;
680
681 sim_pres_tissue[12] =0.0583504;
682
683 sim_pres_tissue[13] =0.0459303;
684
685 sim_pres_tissue[14] =0.0361528;
686
687 sim_pres_tissue[15] =0.0284646;
688
689 N2: 10 min
690
691 sim_pres_tissue[16] = 0.823223;
692
693 sim_pres_tissue[17] = 0.579552;
694
695 sim_pres_tissue[18] = 0.425651;
696
697 sim_pres_tissue[19] = 0.312487;
698
699 sim_pres_tissue[20] = 0.226416;
700
701 sim_pres_tissue[21] = 0.165547;
702
703 sim_pres_tissue[22] = 0.11984;
704
705 sim_pres_tissue[23] = 0.0860863;
706
707 sim_pres_tissue[24] = 0.0616117;
708
709 sim_pres_tissue[25] = 0.0463665;
710
711 sim_pres_tissue[26] = 0.0363881;
712
713 sim_pres_tissue[27] = 0.0285855;
714
715 sim_pres_tissue[28] = 0.0224698;
716
717 sim_pres_tissue[29] = 0.017616;
718
719 sim_pres_tissue[30] = 0.0138222;
720
721 sim_pres_tissue[31] = 0.0108563;
722
723 */
724
725 };
726