forked from vtwireless/HLSI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
13_manual_avoidance.html
88 lines (70 loc) · 1.79 KB
/
13_manual_avoidance.html
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
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>HLSI Ex 13</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" media="all" href="hlsi.css">
<style>
output {font-weight: bold;}
</style>
<script src=d3.v5.min.js></script>
<script src=fft.js></script>
<script src=common.js></script>
<script src=signal.js></script>
<script src=sliders.js></script>
<script src=powerSpectrumPlot.js></script>
<script src=spectralEfficiencyPlot.js></script>
<script src=label.js></script>
<script src=capacityBanner.js></script>
<script src=throughputPlot.js></script>
<script src=hoppingInterferer.js></script>
</head>
<body>
<h2>Exercise 13 - Manual Interferer Avoidance</h2>
<p><a href="index.html">[exercises]</a></p>
<p id=hoppingInterferer>
</p>
<p id=capacityBanner>
</p>
<p>
<input type="range" id=freq />
</p>
<p>
<input type="range" id=bw />
</p>
<p>
<input type="range" id=gn />
</p>
<p>
<input type="range" id=mcs />
</p>
</body>
<script>
'use strict';
var sig = Signal(conf.sig0, '', {
bw_max: 38.0e6, // Hz
bw_min: 4.0e6, // Hz
bw_init: 4.0e6, // Hz
gn_init: -10, // dB
gn_min: -40, // dB
mcs_init: 6 // array index int
});
var interferer = new Signal(conf.sig0, 'interferer', {
bw_max: 38.0e6, // Hz
bw_init: 2.5e6, // Hz
gn_init: -12, // dB
gn_min: -40, // dB
freq_init: 1785.0e6 // Hz
});
var noise = Signal(conf.noise, "Noise", { gn_init: -40})
Slider(sig, 'freq', '#freq');
Slider(sig, 'bw', '#bw');
Slider(sig, 'gn', '#gn');
Slider(sig, 'mcs', '#mcs');
HoppingInterferer(interferer, '#hoppingInterferer');
CapacityBanner(sig, '#capacityBanner');
PowerSpectrumPlot();
ThroughputPlot(sig);
SpectralEfficiencyPlot(sig);
</script>
</html>