-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
345 lines (299 loc) · 12.1 KB
/
index.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>AirOS</title>
<link href="img/logos/rocket.svg" rel="icon">
<link href="css/app.css" rel="stylesheet">
<link href="css/chartist.min.css" rel="stylesheet">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.0.1/mapbox-gl.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="js/chartist.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.0.1/mapbox-gl.js"></script>
<meta charset="utf-8">
<meta name="author" content="Alto">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div class="appinfo">
<img src="img/logos/AirOS.svg">
<h1 class="appname">CanSat Flight Software</h1>
</div>
<div class="navbar">
<div data-view="home" class="element current">
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="146.11px" height="148.65px" viewBox="0 0 146.11 148.65" style="enable-background:new 0 0 146.11 148.65;"
xml:space="preserve">
<defs>
</defs>
<path d="M120.09,17.91L93.73,4.82C80.81-1.59,65.64-1.61,52.7,4.77L26.12,17.88C10.12,25.77,0,42.06,0,59.9v66.56
c0,12.23,9.91,22.15,22.14,22.15h14.14c12.24,0,22.15-9.92,22.15-22.15v-2.29c0-8.02,6.5-14.53,14.52-14.54h0.04
c8.03,0,14.55,6.53,14.53,14.58l-0.01,2.2c-0.03,12.23,9.86,22.17,22.09,22.2l14.14,0.04c12.24,0.03,22.18-9.87,22.21-22.1
l0.16-66.56C146.16,42.15,136.07,25.84,120.09,17.91z M47.05,77.52c-7.51,0-13.6-6.09-13.6-13.6s6.09-13.6,13.6-13.6
c7.51,0,13.6,6.09,13.6,13.6S54.56,77.52,47.05,77.52z"/>
</svg>
<p>Home</p>
</div>
<br>
<div data-view="data" class="element">
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="252px"
height="248px" viewBox="0 0 252 248" style="enable-background:new 0 0 252 248;" xml:space="preserve">
<defs>
</defs>
<g>
<path d="M249.24,205.95c-9.92,31.62-43.59,49.2-75.2,39.28c-21.84-6.85-36.98-25.04-40.99-46.05
c-2.09-10.98-9.88-20.01-20.43-23.72l-5.86-2.06c-10.05-3.54-21.17-1.69-29.64,4.76c-15.29,11.65-36.77,13.41-54.15,2.77
C0.35,167.11-6.77,137.57,7.06,114.95c10.53-17.22,30.17-25.46,48.92-22.3c10.46,1.76,21.1-1.98,28.28-9.79l8.52-9.26
c6.6-7.18,9.54-17.02,7.84-26.63c-1.93-10.91,0.65-22.56,8.1-31.9c13.76-17.28,38.93-20.13,56.21-6.37
c17.28,13.76,20.13,38.93,6.37,56.21c-8.72,10.95-22.03,16.11-35,14.91c-9.7-0.9-19.25,2.86-25.85,10.03l-8.57,9.32
c-7.2,7.82-9.93,18.75-7.32,29.05c0.03,0.1,0.05,0.2,0.08,0.31c2.54,10.32,10.07,18.69,20.1,22.23l3.27,1.15
c11.2,3.94,23.69,1.27,32.21-6.98c15.29-14.82,38.01-21.01,59.75-14.18C241.57,140.66,259.16,174.33,249.24,205.95z"/>
</g>
</svg>
<p>Data View</p>
</div>
<br>
<div data-view="loc" class="element">
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="48.92px"
height="67.61px" viewBox="0 0 48.92 67.61" style="enable-background:new 0 0 48.92 67.61;" xml:space="preserve">
<defs>
</defs>
<g>
<path d="M48.65,20.86c-1.48-9.36-6.53-14.6-11.63-17.53c-7.74-4.44-17.38-4.44-25.12,0C6.79,6.26,1.74,11.5,0.27,20.86
c-2.68,16.97,15.14,38.39,21.77,45.68c1.3,1.43,3.54,1.43,4.84,0C33.51,59.25,51.33,37.83,48.65,20.86z M24.46,32.61
c-3.87,0-7-3.13-7-7s3.13-7,7-7c3.86,0,7,3.13,7,7S28.32,32.61,24.46,32.61z"/>
</g>
</svg>
<p>Location</p>
</div>
<br>
<div data-view="stats" class="element">
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="60px"
height="60px" viewBox="0 0 60 60" style="enable-background:new 0 0 60 60;" xml:space="preserve">
<defs>
</defs>
<g>
<path d="M30,0C13.45,0,0,13.45,0,30c0,16.53,13.45,30,30,30c16.53,0,30-13.47,30-30C60,13.45,46.53,0,30,0z M30,38.87
c-4.14,0-7.6-2.95-8.38-6.85c-0.16-0.85,0.49-1.66,1.37-1.66h14.02c0.85,0,1.5,0.8,1.34,1.66C37.58,35.92,34.14,38.87,30,38.87z"/>
</g>
</svg>
<p>Status</p>
</div>
</div>
<div id="home" class="content curr">
<div class="calt">
<div class="vbar-cont">
<div class="vbar" id="bar"><p id="barv">999</p></div>
</div>
<p class="stitle">Current Altitude</p>
<p class="sdetail">Shows the current altitude in meters</p>
</div>
<div class="valcont" id="vc1">
<svg
class="crotat"
width="100"
height="100">
<circle
class="crotatcir"
stroke="#E9E9E9"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
<circle
id="fallspd"
class="crotatcir"
stroke="var(--accent)"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
</svg>
<p class="cronum" id="fallspdnum">-</p>
<p class="stitle">Fall Speed</p>
<p class="sdetail">Current velocity in m×s<sup>-1</sup></p>
</div>
<div class="valcont" id="vc2">
<svg
class="crotat"
width="100"
height="100">
<circle
class="crotatcir"
stroke="#E9E9E9"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
<circle
id="extime"
class="crotatcir"
stroke="var(--accent)"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
</svg>
<p class="cronum" id="extimenum">-</p>
<p class="stitle">Experiment Time</p>
<p class="sdetail">Time Pump was running for in s</p>
</div>
<div class="valcont" id="vc3">
<svg
class="crotat"
width="100"
height="100">
<circle
class="crotatcir"
stroke="#E9E9E9"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
<circle
id="rssi"
class="crotatcir"
stroke="var(--accent)"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
</svg>
<p class="cronum" id="rssinum">-</p>
<p class="stitle">RSSI</p>
<p class="sdetail">Current comms strength</p>
</div>
<div class="valcont" id="vc4">
<svg
class="crotat"
width="100"
height="100">
<circle
class="crotatcir"
stroke="#E9E9E9"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
<circle
id="gspd"
class="crotatcir"
stroke="var(--accent)"
stroke-width="6"
stroke-linecap="round"
fill="transparent"
r="45"
cx="50"
cy="50"/>
</svg>
<p class="cronum" id="gspdnum">-</p>
<p class="stitle">Velocity</p>
<p class="sdetail">Ground speed in m×s<sup>-1</sup></p>
</div>
<div class="valcont" id="vc5">
<div class="valbox">
<p class="valboxdef" id="vhealthnum">BOOT</p>
</div>
<p class="stitle">Vehicle Health</p>
<p class="sdetail">Current Vehicle status</p>
</div>
<div class="valcont" id="vc6">
<div class="valcirc">
<p class="valcircdef" id="vheadnum">420°</p>
</div>
<p class="stitle">Heading</p>
<p class="sdetail">Current Heading in degrees</p>
</div>
</div>
<div id="data" class="content">
<div class="datacont">
<div class="ct-chart ct-minor-seventh" id="mchart"></div>
<div class="tcont">
<p class="stitle">Altitude Readings</p>
<p class="sdetail">Shows a timeline of reported altitude readings.</p>
</div>
</div>
</div>
<div id="loc" class="content">
<div id="map"></div>
<!-- Generator: Adobe Illustrator 24.0.1, SVG Export Plug-In -->
<svg id="pointer" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="488px"
height="488px" viewBox="0 0 488 488" style="enable-background:new 0 0 488 488;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<defs>
</defs>
<path class="st0" d="M244,0C109.24,0,0,109.24,0,244s109.24,244,244,244s244-109.24,244-244S378.76,0,244,0z M244,305
c-33.69,0-61-27.31-61-61s27.31-61,61-61s61,27.31,61,61S277.69,305,244,305z"/>
</svg>
<div class="tcont">
<p class="stitle">Realtime GPS Position</p>
<p class="sdetail" id="posnownum">52.1983, 20.9734</p>
</div>
</div>
<div id="stats" class="content">
<div class="statcont" id="v1">
<div class="statvalc">
<p class="statval" id="antdatanum" style="font-size: 28px; padding-top: 27px;">NO DATA FROM YAGI</p>
</div>
<p class="stitle">Raw Data String</p>
<p class="sdetail">Shows incoming data from the YAGI in Raw form.</p>
</div>
<div class="statcont" id="v2">
<div class="statvalc">
<p class="statval" id="modenum">-</p>
</div>
<p class="stitle">Mode</p>
<p class="sdetail">Shows current POCU working Mode.</p>
</div>
<div class="statcont" id="v3">
<div class="statvalc">
<p class="statval" id="distnum">Not Available</p>
</div>
<p class="stitle">Distance Downrange</p>
<p class="sdetail">Displays the distance from the CanSat in m</p>
</div>
<div class="statcont" id="v4">
<div class="statvalc">
<p class="statval" id="statcurnum" style="font-size: 20px; padding-top: 32px;">Unknown</p>
</div>
<p class="stitle">Computed Vehicle status</p>
<p class="sdetail">Ongoing Mission Event in human-readable form.</p>
</div>
<div class="statcont" id="v5">
<div class="statvalc">
<p class="statval" id="sanitynum">Pass</p>
</div>
<p class="stitle">Sanity check</p>
<p class="sdetail">Shows if any parameters are off-scale.</p>
</div>
<div class="statcont" id="v6">
<div class="statvalc" style="background: var(--accent)">
<p class="statval" id="antdatanum">NOMINAL</p>
</div>
<p class="stitle">Master Warning</p>
<p class="sdetail">Shows alert when things go awry.</p>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>