-
Notifications
You must be signed in to change notification settings - Fork 0
/
soarMAGCOFF.h
76 lines (68 loc) · 8.45 KB
/
soarMAGCOFF.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef SOARMAGCOFF_H
#define SOARMAGCOFF_H
static float epoch = 2005.000000;
static float c[13][13] = {
{0.000000f, -29556.800781f, -3510.900146f, 3338.500000f, 4024.125000f, -1790.774902f, 1056.824951f, 2147.681152f, 1251.808594f, 531.781250f, -414.979279f, 964.457825f, -1584.466431f},
{5079.799805f, -1671.699951f, 5277.385254f, -7057.898926f, 4416.674316f, 3605.069824f, 1317.547729f, -2642.485596f, 516.140625f, 1261.294312f, -1532.702271f, -746.218323f, -358.811005f},
{-4494.151855f, -447.475342f, 1435.004028f, 2414.224121f, 826.842102f, 1603.903931f, 1146.222534f, -40.545135f, -650.555481f, 380.275146f, 337.107086f, -695.381592f, 159.025986f},
{-612.066223f, 521.497192f, -414.416504f, 532.843811f, -793.572083f, -642.398010f, -1506.378540f, 788.417847f, -285.795074f, -580.879883f, -429.728882f, 557.545654f, 519.376648f},
{1557.817139f, -884.364929f, 304.962616f, -225.328720f, 73.951004f, -373.378601f, -81.307243f, 153.126740f, -486.599243f, 287.516266f, 0.000000f, -23.951399f, -146.074692f},
{431.063049f, 1381.801392f, -578.864136f, -43.261333f, 72.681694f, -9.892008f, 33.971481f, 58.657425f, 148.305878f, -363.862244f, 229.138412f, 15.842360f, 367.423492f},
{-383.733398f, 817.449524f, 633.635376f, -345.965057f, -0.232681f, 33.853340f, -57.967133f, 13.804400f, 63.160099f, -22.617308f, 16.528036f, -65.882347f, -104.149460f},
{-2181.380615f, -648.722168f, 147.444382f, 313.662842f, 67.919121f, -63.936172f, -3.301025f, 1.165068f, -29.079193f, 66.295013f, 42.090691f, 34.723049f, 46.821556f},
{750.750000f, -1177.729736f, 397.627930f, -529.377136f, 238.772461f, 52.862255f, -32.338066f, -0.125341f, -3.258875f, -17.312651f, 31.912127f, 40.968067f, -17.558084f},
{-2560.809814f, 1401.585449f, 1045.583862f, -377.717438f, -272.896698f, 139.183441f, 21.847221f, -20.413424f, 3.654296f, -5.542350f, -0.265478f, 0.000000f, -7.662976f},
{583.886597f, 42.138386f, 727.233582f, 560.980164f, -480.451538f, -45.452099f, -68.146835f, -6.546077f, -6.106005f, -4.689661f, -1.365344f, 2.992380f, -0.943247f},
{139.915939f, 490.857574f, -262.374420f, -598.784912f, 142.581238f, -56.470589f, -133.931763f, -20.484034f, -11.459402f, -5.440690f, -0.695975f, 2.377916f, -0.834445f},
{-358.811005f, 238.538971f, 1558.130005f, -1265.980591f, 200.412827f, 62.489677f, 0.000000f, 0.000000f, 7.662976f, -8.489223f, -1.112594f, 0.454214f, -0.056777f}
};
static float cd[13][13] = {
{0.000000f, 8.000000f, -22.650002f, 1.000000f, -10.937500f, -22.049999f, -10.106250f, 5.362500f, 5.027344f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{-20.900000f, 10.600000f, -13.509996f, -7.960842f, 15.495161f, 7.116607f, 7.561250f, -3.546961f, 20.109375f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{-40.183578f, -12.643971f, -0.692820f, -2.323790f, -27.391834f, -24.592682f, -4.483270f, -8.688244f, -22.432947f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{15.309311f, -13.555442f, -0.474342f, -5.138701f, 12.968231f, -5.176834f, 22.914488f, 22.526224f, 12.425873f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{12.174769f, 6.260991f, 12.131572f, 0.073951f, -2.810138f, 0.221853f, -11.459410f, 7.409359f, -8.020866f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.000000f, 13.064862f, 9.883046f, 10.648944f, -0.771717f, -0.561249f, -1.396088f, 3.087233f, 2.966118f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{-11.341875f, -28.394041f, -3.985128f, -2.728431f, -0.698044f, 0.470185f, 0.940371f, -0.968730f, 2.746091f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{21.281763f, 11.584325f, 4.095677f, 3.704679f, -4.939573f, -0.484365f, 0.064726f, 0.388356f, -1.754779f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{-13.406250f, 5.608237f, 12.425873f, 10.694489f, 1.483059f, -1.373046f, 1.002731f, 0.250683f, 0.250683f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f}
};
static float k[13][13] = {
{0.000000f, 0.000000f, 0.333333f, 0.266667f, 0.257143f, 0.253968f, 0.252525f, 0.251748f, 0.251282f, 0.250980f, 0.250774f, 0.250627f, 0.250518f},
{0.000000f, 0.000000f, 0.000000f, 0.200000f, 0.228571f, 0.238095f, 0.242424f, 0.244755f, 0.246154f, 0.247059f, 0.247678f, 0.248120f, 0.248447f},
{0.000000f, 0.000000f, -1.000000f, 0.000000f, 0.142857f, 0.190476f, 0.212121f, 0.223776f, 0.230769f, 0.235294f, 0.238390f, 0.240602f, 0.242236f},
{0.000000f, 0.000000f, 0.000000f, -0.333333f, 0.000000f, 0.111111f, 0.161616f, 0.188811f, 0.205128f, 0.215686f, 0.222910f, 0.228070f, 0.231884f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.200000f, 0.000000f, 0.090909f, 0.139860f, 0.169231f, 0.188235f, 0.201238f, 0.210526f, 0.217391f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.142857f, 0.000000f, 0.076923f, 0.123077f, 0.152941f, 0.173375f, 0.187970f, 0.198758f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.111111f, 0.000000f, 0.066667f, 0.109804f, 0.139319f, 0.160401f, 0.175983f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.090909f, 0.000000f, 0.058824f, 0.099071f, 0.127820f, 0.149068f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.076923f, 0.000000f, 0.052632f, 0.090226f, 0.118012f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.066667f, 0.000000f, 0.047619f, 0.082816f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.058824f, 0.000000f, 0.043478f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.052632f, 0.000000f},
{0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, -0.047619f}
};
static float fn[13] = {0.000000f, 2.000000f, 3.000000f, 4.000000f, 5.000000f, 6.000000f, 7.000000f, 8.000000f, 9.000000f, 10.000000f, 11.000000f, 12.000000f, 13.000000f};
static float fm[13] = {0.000000f, 1.000000f, 2.000000f, 3.000000f, 4.000000f, 5.000000f, 6.000000f, 7.000000f, 8.000000f, 9.000000f, 10.000000f, 11.000000f, 12.000000f};
static float snorm[169] = {
1.000000f, 1.000000f, 1.500000f, 2.500000f, 4.375000f, 7.875000f, 14.437500f, 26.812500f, 50.273438f, 94.960938f, 180.425781f,
344.449219f, 660.194336f, 0.000000f, 1.000000f, 1.732051f, 3.061862f, 5.533986f, 10.166581f, 18.903124f, 35.469604f, 67.031250f,
127.403465f, 243.286072f, 466.386444f, 897.027466f, 0.000000f, 0.000000f, 0.866025f, 1.936492f, 3.913119f, 7.685213f, 14.944232f,
28.960812f, 56.082367f, 108.650040f, 210.691925f, 409.047974f, 795.129883f, 0.000000f, 0.000000f, 0.000000f, 0.790569f, 2.091650f,
4.706213f, 9.962821f, 20.478386f, 41.419575f, 82.982841f, 165.280350f, 327.968018f, 649.220825f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.739510f, 2.218530f, 5.456862f, 12.348931f, 26.736221f, 56.375740f, 116.870857f, 239.513977f, 486.915619f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.701561f, 2.326814f, 6.174466f, 14.830587f, 33.690948f, 73.915619f, 158.423599f,
334.021362f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.671693f, 2.421825f, 6.865228f, 17.397930f,
41.320087f, 94.117645f, 208.298920f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.647260f,
2.506827f, 7.533525f, 20.043186f, 49.604355f, 117.053886f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.626707f, 2.583978f, 8.182596f, 22.760038f, 58.526943f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.609049f, 2.654785f, 8.814925f, 25.543253f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.593628f, 2.720345f, 9.432471f,
0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.579979f, 2.781484f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 0.000000f, 0.567768f};
#endif