Skip to content

Commit

Permalink
Added new satellite testcases.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorgan committed Sep 26, 2015
1 parent 74684e5 commit 8c7e6ea
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 9 deletions.
39 changes: 31 additions & 8 deletions tests/data-generator/generate_predict_testcases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function generate_satellite_testcase(){
for timestemp in $steps; do
sleep 1
predict_response=($(./predict_client "GET_SAT $satellite_name"))
echo ${predict_response[@]} >> "test_file.dat"
time=$(./predict_client "GET_TIME")
doppler_shift=($(./predict_client "GET_DOPPLER $satellite_name"))
satname=${predict_response[0]}
Expand Down Expand Up @@ -165,13 +166,35 @@ killall predict
#compile and prepare UDP client
gcc -o predict_client predict_client.c

#satellites
#generate_satellite_testcase "testcase.tle" "testcase.qth" "OSCAR-7" "2015-09-20 19:15" "20"
#generate_satellite_testcase "testcase.tle" "testcase.qth" "OSCAR-7" "2015-09-20 19:31" "20"
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "THOR_III" "2015-09-26 19:30" "20"
#Elliptic orbit
#Is SDP4, has defined alon, alat in .db-file for squint angle calc
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "MOLNIYA_1-29" "2015-09-26 18:00" "20"

#Geostationary
#Is SDP4, has defined alon, alat in .db-file for squint angle calc
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "THOR_III" "2015-09-26 18:00" "20"

#Sun-synchronous
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "HINODE" "2015-09-26 18:00" "20"

#Frozen orbit
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "ERS-1" "2015-09-26 18:00" "20"

#High Earth Orbit
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "VELA-1" "2015-09-26 18:00" "20"

#Medium Earth Orbit
#Is SDP4, has defined alon, alat in .db-file for squint angle calc
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "GPS_BIIA-10" "2015-09-26 18:00" "20"

#Tundra orbit
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "SIRIUS-1" "2015-09-26 18:00" "20"

#Low Earth Orbit
generate_satellite_testcase "testcase.tle" "testcase.qth" "testcase.db" "ISS" "2015-09-26 18:00" "20"

#sun and moon
#generate_sun_testcase "2015-09-20 19:33" "20" "testcase.qth"
#generate_sun_testcase "2015-09-21 06:00" "20" "testcase.qth"
#generate_moon_testcase "2015-09-20 10:00" "20" "testcase.qth"
#generate_moon_testcase "2015-09-20 16:00" "20" "testcase.qth"
generate_sun_testcase "2015-09-20 19:33" "20" "testcase.qth"
generate_sun_testcase "2015-09-21 06:00" "20" "testcase.qth"
generate_moon_testcase "2015-09-20 10:00" "20" "testcase.qth"
generate_moon_testcase "2015-09-20 16:00" "20" "testcase.qth"
2 changes: 1 addition & 1 deletion tests/data-generator/testcase.tle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MOLNIYA 1-29
MOLNIYA_1-29
1 07780U 75036A 15268.44024861 .00000357 00000-0 -30994-3 0 9998
2 07780 61.6281 228.0088 7320994 263.7628 16.5221 2.00561847296359
THOR_III
Expand Down
33 changes: 33 additions & 0 deletions tests/data/sat_ERS-1_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 21574U 91050A 15268.99630557 .00000263 00000-0 10150-3 0 9991
2 21574 98.3773 218.1360 0034080 40.2399 0.7933 14.37359081267054

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,-81.33,79.73,811.29,163.64,-74.00,393.649582,360.00
1443283202,-81.35,79.34,811.27,163.74,-73.98,394.736750,360.00
1443283203,-81.36,78.96,811.26,163.83,-73.96,395.823902,360.00
1443283204,-81.38,78.57,811.24,163.93,-73.94,396.910433,360.00
1443283205,-81.39,78.18,811.22,164.02,-73.92,397.994090,360.00
1443283206,-81.41,77.79,811.20,164.11,-73.90,399.075136,360.00
1443283207,-81.42,77.40,811.19,164.21,-73.88,400.158979,360.00
1443283208,-81.44,77.00,811.17,164.30,-73.86,401.245358,360.00
1443283209,-81.45,76.61,811.15,164.39,-73.84,402.331157,360.00
1443283210,-81.46,76.21,811.13,164.48,-73.82,403.416549,360.00
1443283211,-81.48,75.82,811.11,164.58,-73.80,404.502053,360.00
1443283212,-81.49,75.42,811.10,164.67,-73.78,405.587712,360.00
1443283213,-81.50,75.02,811.08,164.76,-73.76,406.672660,360.00
1443283214,-81.51,74.62,811.06,164.85,-73.74,407.758194,360.00
1443283215,-81.52,74.21,811.04,164.94,-73.72,408.839559,360.00
1443283216,-81.53,73.81,811.02,165.04,-73.70,409.919177,360.00
1443283217,-81.54,73.41,811.00,165.13,-73.68,411.001629,360.00
1443283218,-81.55,73.01,810.98,165.22,-73.66,412.085918,360.00
1443283219,-81.56,72.60,810.97,165.31,-73.64,413.170662,360.00
1443283220,-81.57,72.19,810.95,165.40,-73.61,414.255125,360.00
33 changes: 33 additions & 0 deletions tests/data/sat_GPS_BIIA-10_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 20959U 90103A 15268.04814446 -.00000015 00000-0 00000+0 0 9997
2 20959 54.2521 190.2003 0113059 6.2850 353.8618 2.00562036181841

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,+54.32,35.18,20154.45,116.57,+69.64,-66.592298,77.11
1443283202,+54.32,35.19,20154.50,116.56,+69.64,-66.628707,77.12
1443283203,+54.32,35.20,20154.54,116.54,+69.63,-66.665149,77.13
1443283204,+54.32,35.21,20154.58,116.52,+69.62,-66.701522,77.14
1443283205,+54.32,35.22,20154.63,116.51,+69.62,-66.737952,77.15
1443283206,+54.32,35.23,20154.67,116.49,+69.61,-66.774245,77.16
1443283207,+54.32,35.24,20154.72,116.48,+69.61,-66.810570,77.17
1443283208,+54.32,35.25,20154.76,116.46,+69.60,-66.846997,77.18
1443283209,+54.32,35.26,20154.80,116.44,+69.60,-66.883387,77.19
1443283210,+54.32,35.27,20154.85,116.43,+69.59,-66.919788,77.20
1443283211,+54.32,35.28,20154.89,116.41,+69.59,-66.956101,77.21
1443283212,+54.32,35.29,20154.94,116.39,+69.58,-66.992419,77.22
1443283213,+54.32,35.30,20154.98,116.38,+69.58,-67.028808,77.23
1443283214,+54.32,35.31,20155.02,116.36,+69.57,-67.065209,77.25
1443283215,+54.32,35.33,20155.07,116.34,+69.57,-67.101482,77.26
1443283216,+54.32,35.34,20155.11,116.33,+69.56,-67.137780,77.27
1443283217,+54.32,35.35,20155.16,116.31,+69.56,-67.174169,77.28
1443283218,+54.32,35.36,20155.20,116.30,+69.55,-67.210549,77.29
1443283219,+54.32,35.37,20155.24,116.28,+69.55,-67.246931,77.30
1443283220,+54.32,35.38,20155.29,116.26,+69.54,-67.283306,77.31
33 changes: 33 additions & 0 deletions tests/data/sat_HINODE_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 29479U 06041A 15269.11672282 .00000318 00000-0 69027-4 0 9994
2 29479 98.1514 267.8479 0018201 43.1347 317.1278 14.64523079481168

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,+17.78,20.63,669.23,167.18,-16.65,2189.035450,360.00
1443283202,+17.84,20.62,669.23,167.19,-16.61,2189.480590,360.00
1443283203,+17.90,20.60,669.23,167.19,-16.57,2189.926309,360.00
1443283204,+17.96,20.59,669.23,167.20,-16.53,2190.371907,360.00
1443283205,+18.02,20.57,669.22,167.21,-16.49,2190.816455,360.00
1443283206,+18.09,20.56,669.22,167.22,-16.45,2191.260466,360.00
1443283207,+18.15,20.55,669.22,167.23,-16.41,2191.701997,360.00
1443283208,+18.21,20.53,669.22,167.24,-16.37,2192.143237,360.00
1443283209,+18.27,20.52,669.22,167.25,-16.33,2192.584250,360.00
1443283210,+18.33,20.50,669.22,167.26,-16.29,2193.024312,360.00
1443283211,+18.39,20.49,669.22,167.27,-16.24,2193.463685,360.00
1443283212,+18.45,20.48,669.21,167.28,-16.20,2193.900463,360.00
1443283213,+18.51,20.46,669.21,167.29,-16.16,2194.336850,360.00
1443283214,+18.58,20.45,669.21,167.30,-16.12,2194.773326,360.00
1443283215,+18.64,20.43,669.21,167.31,-16.08,2195.208686,360.00
1443283216,+18.70,20.42,669.21,167.32,-16.04,2195.643520,360.00
1443283217,+18.76,20.41,669.21,167.33,-16.00,2196.076976,360.00
1443283218,+18.82,20.39,669.21,167.34,-15.96,2196.509400,360.00
1443283219,+18.88,20.38,669.21,167.35,-15.91,2196.941359,360.00
1443283220,+18.95,20.36,669.21,167.36,-15.87,2197.372075,360.00
33 changes: 33 additions & 0 deletions tests/data/sat_ISS_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 25544U 98067A 15268.21313216 .00005785 00000-0 94507-4 0 9995
2 25544 51.6463 304.6860 0005196 319.3549 152.0018 15.54144244963604

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,-23.80,31.98,407.76,160.72,-42.76,1109.231070,360.00
1443283202,-23.76,32.03,407.75,160.67,-42.74,1109.682035,360.00
1443283203,-23.71,32.07,407.73,160.62,-42.72,1110.133209,360.00
1443283204,-23.66,32.11,407.71,160.57,-42.69,1110.583076,360.00
1443283205,-23.61,32.16,407.70,160.53,-42.67,1111.032192,360.00
1443283206,-23.56,32.20,407.68,160.48,-42.65,1111.478772,360.00
1443283207,-23.51,32.25,407.66,160.43,-42.63,1111.923624,360.00
1443283208,-23.47,32.29,407.65,160.38,-42.61,1112.368739,360.00
1443283209,-23.42,32.33,407.63,160.34,-42.59,1112.813735,360.00
1443283210,-23.37,32.38,407.61,160.29,-42.56,1113.257793,360.00
1443283211,-23.32,32.42,407.60,160.24,-42.54,1113.700647,360.00
1443283212,-23.27,32.46,407.58,160.19,-42.52,1114.141275,360.00
1443283213,-23.22,32.51,407.56,160.15,-42.50,1114.581300,360.00
1443283214,-23.18,32.55,407.55,160.10,-42.48,1115.019736,360.00
1443283215,-23.13,32.60,407.53,160.05,-42.45,1115.457547,360.00
1443283216,-23.08,32.64,407.51,160.00,-42.43,1115.895600,360.00
1443283217,-23.03,32.68,407.50,159.95,-42.41,1116.331434,360.00
1443283218,-22.98,32.73,407.48,159.91,-42.39,1116.765055,360.00
1443283219,-22.93,32.77,407.47,159.86,-42.37,1117.198893,360.00
1443283220,-22.88,32.81,407.45,159.81,-42.34,1117.632747,360.00
33 changes: 33 additions & 0 deletions tests/data/sat_MOLNIYA_1-29_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 07780U 75036A 15268.44024861 .00000357 00000-0 -30994-3 0 9998
2 07780 61.6281 228.0088 7320994 263.7628 16.5221 2.00561847296359

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=0
alon=0

[data]
1443283201,+61.12,60.76,39631.93,74.04,+63.92,16.118362,3.86
1443283202,+61.12,60.76,39631.89,74.04,+63.92,16.163084,3.86
1443283203,+61.12,60.76,39631.86,74.04,+63.92,16.207826,3.86
1443283204,+61.12,60.75,39631.83,74.04,+63.92,16.252559,3.87
1443283205,+61.12,60.75,39631.79,74.04,+63.92,16.297318,3.87
1443283206,+61.12,60.75,39631.76,74.03,+63.92,16.342044,3.87
1443283207,+61.12,60.75,39631.72,74.03,+63.92,16.386653,3.87
1443283208,+61.12,60.75,39631.69,74.03,+63.92,16.431282,3.87
1443283209,+61.12,60.75,39631.65,74.03,+63.92,16.476050,3.87
1443283210,+61.12,60.75,39631.62,74.03,+63.92,16.520774,3.87
1443283211,+61.12,60.75,39631.58,74.03,+63.92,16.565519,3.88
1443283212,+61.12,60.75,39631.55,74.03,+63.92,16.610220,3.88
1443283213,+61.12,60.75,39631.51,74.03,+63.92,16.654951,3.88
1443283214,+61.12,60.75,39631.48,74.03,+63.92,16.699695,3.88
1443283215,+61.12,60.75,39631.44,74.03,+63.92,16.744279,3.88
1443283216,+61.13,60.75,39631.40,74.03,+63.92,16.788920,3.88
1443283217,+61.13,60.75,39631.37,74.03,+63.92,16.833650,3.89
1443283218,+61.13,60.75,39631.33,74.03,+63.92,16.878369,3.89
1443283219,+61.13,60.75,39631.29,74.03,+63.92,16.923086,3.89
1443283220,+61.13,60.75,39631.26,74.03,+63.92,16.967833,3.89
33 changes: 33 additions & 0 deletions tests/data/sat_SIRIUS-1_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 26390U 00035A 15263.05767392 .00000057 00000-0 00000+0 0 9995
2 26390 59.7673 235.4685 2643498 268.8985 140.1391 1.00280878 55759

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,-58.33,279.45,24769.49,235.44,-56.78,45.969539,360.00
1443283202,-58.33,279.46,24769.65,235.44,-56.78,45.952938,360.00
1443283203,-58.33,279.47,24769.82,235.43,-56.78,45.936327,360.00
1443283205,-58.33,279.48,24769.98,235.43,-56.77,45.919719,360.00
1443283206,-58.33,279.49,24770.14,235.43,-56.77,45.903107,360.00
1443283207,-58.32,279.50,24770.31,235.42,-56.76,45.886550,360.00
1443283208,-58.32,279.51,24770.47,235.42,-56.76,45.870025,360.00
1443283209,-58.32,279.52,24770.63,235.42,-56.76,45.853498,360.00
1443283210,-58.32,279.53,24770.79,235.41,-56.75,45.836971,360.00
1443283211,-58.32,279.54,24770.96,235.41,-56.75,45.820435,360.00
1443283212,-58.31,279.55,24771.12,235.41,-56.74,45.803897,360.00
1443283213,-58.31,279.56,24771.28,235.40,-56.74,45.787366,360.00
1443283214,-58.31,279.56,24771.45,235.40,-56.73,45.770753,360.00
1443283215,-58.31,279.57,24771.61,235.40,-56.73,45.754107,360.00
1443283216,-58.30,279.58,24771.78,235.39,-56.73,45.737524,360.00
1443283217,-58.30,279.59,24771.94,235.39,-56.72,45.720945,360.00
1443283218,-58.30,279.60,24772.10,235.39,-56.72,45.704340,360.00
1443283219,-58.30,279.61,24772.27,235.38,-56.71,45.687737,360.00
1443283220,-58.30,279.62,24772.43,235.38,-56.71,45.671125,360.00
1443283221,-58.29,279.63,24772.60,235.38,-56.70,45.654516,360.00
33 changes: 33 additions & 0 deletions tests/data/sat_THOR_III_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 25358U 98035A 15268.24841071 -.00000057 00000-0 00000+0 0 9999
2 25358 4.3158 63.1329 0002182 131.4584 254.3027 1.00273084 63433

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=50
alon=90

[data]
1443283201,+0.19,355.73,35779.30,196.83,+17.02,-11.218636,110.30
1443283202,+0.19,355.73,35779.30,196.83,+17.02,-11.218704,110.30
1443283203,+0.19,355.73,35779.30,196.83,+17.02,-11.218771,110.30
1443283204,+0.19,355.73,35779.30,196.83,+17.02,-11.218838,110.30
1443283205,+0.19,355.73,35779.30,196.83,+17.02,-11.218905,110.30
1443283206,+0.19,355.73,35779.30,196.83,+17.02,-11.218972,110.31
1443283207,+0.19,355.73,35779.30,196.83,+17.02,-11.219040,110.31
1443283208,+0.19,355.73,35779.30,196.83,+17.02,-11.219107,110.31
1443283209,+0.19,355.73,35779.30,196.83,+17.02,-11.219174,110.31
1443283210,+0.19,355.73,35779.30,196.83,+17.02,-11.219240,110.31
1443283211,+0.19,355.73,35779.30,196.83,+17.02,-11.219307,110.31
1443283212,+0.18,355.73,35779.30,196.83,+17.02,-11.219374,110.32
1443283213,+0.18,355.73,35779.30,196.83,+17.02,-11.219440,110.32
1443283214,+0.18,355.73,35779.30,196.83,+17.02,-11.219507,110.32
1443283215,+0.18,355.73,35779.30,196.83,+17.02,-11.219573,110.32
1443283216,+0.18,355.73,35779.30,196.83,+17.02,-11.219640,110.32
1443283218,+0.18,355.73,35779.30,196.83,+17.02,-11.219706,110.33
1443283219,+0.18,355.73,35779.30,196.83,+17.02,-11.219772,110.33
1443283220,+0.18,355.73,35779.30,196.83,+17.02,-11.219838,110.33
1443283221,+0.18,355.73,35779.31,196.83,+17.02,-11.219904,110.33
33 changes: 33 additions & 0 deletions tests/data/sat_VELA-1_201509261800.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[tle]
1 00692U 63039C 15270.70453905 -.00001516 00000-0 00000+0 0 9999
2 00692 35.8806 1.0617 5492959 190.0635 359.6944 0.22560069 41927

[qth]
lat=63.9
lon=10.9
alt=0
freq=0
alat=No alat
alon=No alon

[data]
1443283201,+25.97,157.94,132900.06,29.34,+0.90,299.646962,360.00
1443283202,+25.97,157.93,132899.28,29.35,+0.90,299.652777,360.00
1443283203,+25.97,157.93,132898.48,29.35,+0.90,299.658575,360.00
1443283204,+25.97,157.93,132897.70,29.35,+0.90,299.664378,360.00
1443283205,+25.97,157.92,132896.91,29.36,+0.90,299.670171,360.00
1443283206,+25.97,157.92,132896.12,29.36,+0.90,299.675971,360.00
1443283207,+25.97,157.92,132895.33,29.36,+0.90,299.681786,360.00
1443283208,+25.97,157.91,132894.53,29.37,+0.90,299.687597,360.00
1443283209,+25.97,157.91,132893.75,29.37,+0.90,299.693413,360.00
1443283210,+25.97,157.90,132892.95,29.37,+0.91,299.699223,360.00
1443283211,+25.97,157.90,132892.16,29.38,+0.91,299.705047,360.00
1443283212,+25.97,157.90,132891.36,29.38,+0.91,299.710860,360.00
1443283213,+25.97,157.89,132890.58,29.38,+0.91,299.716672,360.00
1443283214,+25.97,157.89,132889.78,29.38,+0.91,299.722485,360.00
1443283215,+25.97,157.89,132888.98,29.39,+0.91,299.728298,360.00
1443283216,+25.97,157.88,132888.20,29.39,+0.91,299.734090,360.00
1443283217,+25.97,157.88,132887.41,29.39,+0.91,299.739888,360.00
1443283218,+25.97,157.87,132886.62,29.40,+0.91,299.745700,360.00
1443283219,+25.97,157.87,132885.83,29.40,+0.91,299.751511,360.00
1443283220,+25.98,157.87,132885.03,29.40,+0.92,299.757322,360.00

0 comments on commit 8c7e6ea

Please sign in to comment.