-
Notifications
You must be signed in to change notification settings - Fork 2
/
conftest.py
61 lines (58 loc) · 1.57 KB
/
conftest.py
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
from pytest import fixture
@fixture(scope='function')
def setup_params():
return {
'iterations': 1,
'seed_value': 1,
'mu': 2,
'sigma': 1,
'total_area_earth_km_sq': 100, #Area of Earth in km^2
'portion_of_earth_covered': 0.8, #We assume the poles aren't covered
'altitude_km': 10, #Altitude of starlink satellites in km
'dl_frequency': 13.5*10**9, #Downlink frequency in Hertz
'dl_bandwidth': 0.25*10**9,
'speed_of_light': 3.0*10**8, #Speed of light in vacuum
'antenna_diameter': 0.7, #Metres
'antenna_efficiency': 0.6,
'power': 30, #dBw
'losses': 4, #dB
'receiver_gain': 38, #dB
'earth_atmospheric_losses': 10, #Rain Attenuation
'all_other_losses': 0.53, #All other losses
'number_of_channels': 1,
}
@fixture(scope='function')
def setup_lut():
return [
(5.12, 1.647211),
(5.96, 1.972253),
(6.54, 1.972253),
(6.83, 2.104850),
(7.5, 2.193247),
(7.79, 2.281645),
(7.40, 2.370043),
(8.0, 2.370043),
(8.37, 2.458441),
(8.42, 2.524739),
(9.26, 2.635236),
(9.70, 2.745734),
(10.64, 2.856231),
(11.98, 3.077225),
(11.09, 3.386618),
(11.74, 3.291954),
(12.16, 3.510192),
(13.04, 3.620536),
(13.97, 3.841226),
(14.8, 4.206428),
(15.46, 4.338659),
(15.86, 4.603122),
(16.54, 4.735354),
(17.72, 4.936639),
(18.52, 5.163248),
(16.97, 5.355556),
(17.23, 5.065690),
(18.0, 5.241514),
(18.58, 5.417338),
(18.83, 5.593162),
(19.56, 5.768987),
]