-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
180 lines (171 loc) · 6.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Simulator - ParaDrone</title>
<link rel="icon" type="image/png" href="https://paradr.one/favicon.png">
<meta charset="utf-8">
<meta property="og:title" content="ParaDrone: Autopilot for Parachutes">
<meta property="og:description" content="The ParaDrone project aims to create hardware and software for autonomous parachute flight at full human scale.">
<meta property="og:image" content="https://paradr.one/social.png">
<meta name="keywords" content="autopilot, paraglider, parachute, paramotor, ppg, flight, drone, arduino, gps, lora">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#6b00ff">
<link rel="stylesheet" href="css/sim.css">
<link rel="stylesheet" href="https://cesium.com/downloads/cesiumjs/releases/1.123/Build/Cesium/Widgets/widgets.css">
<link rel="preload" href="img/loading.jpg" as="image">
</head>
<body>
<div class="container">
<div class="sidebar">
<div class="sidebar-brand">
<h1>ParaDrone</h1>
<sub>Simulator</sub>
</div>
<div class="sidebar-section">
<div class="sidebar-header">
Wind
</div>
<div>
<svg id="windgram" width="100" height="100"></svg>
<div class="wind-labels">
<div id="wind-speed"></div>
<div id="wind-direction"></div>
</div>
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-header">
Toggles
</div>
<div class="toggle-container">
<div class="sidebar-parameter">
<div id="toggle-left-target"></div>
<div class="text-center text-faded">target</div>
<div id="toggle-right-target"></div>
</div>
<div class="sidebar-parameter">
<div id="toggle-left-position"></div>
<div class="text-center text-faded">position</div>
<div id="toggle-right-position"></div>
</div>
<div class="sidebar-parameter">
<div id="toggle-left-speed"></div>
<div class="text-center text-faded">speed</div>
<div id="toggle-right-speed"></div>
</div>
<div class="toggle" id="toggle-left"></div>
<div class="toggle" id="toggle-right"></div>
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-header plan-header" title="Short term plan">
Plan
<input type="checkbox" id="plan-enabled" title="Show short term plan" checked>
</div>
<div class="sidebar-parameter">
<div class="text-faded">mode</div>
<div id="plan-name"></div>
</div>
<div class="sidebar-parameter">
<div class="text-faded">plan error</div>
<div id="plan-error"></div>
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-header sim-header" title="Simulated path">
Sim
<input type="checkbox" id="sim-enabled" title="Show simulated path" checked>
</div>
<div class="sidebar-collapse" id="sim-section">
<div class="sidebar-parameter">
<div class="text-faded">sim error</div>
<div id="sim-error"></div>
</div>
<div class="sidebar-content">
<svg id="sim-error-chart"></svg>
</div>
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-header device-header" title="Send simulated location to real device for testing">
Device
<input type="checkbox" id="device-enabled">
</div>
<div class="sidebar-parameter">
<div class="text-faded">ip</div>
<input type="text" id="device-ip" value="192.168.1.29">
</div>
</div>
<div class="sidebar-section">
<div class="sidebar-header">
Testing
</div>
<div class="sidebar-parameter">
<button class="btn" id="test-button">Test</button>
<div id="test-time"></div>
</div>
<div id="test-params">
<div class="sidebar-parameter">
<div class="text-faded">score</div>
<div id="test-score"></div>
</div>
<div class="sidebar-parameter">
<div class="text-faded">distance</div>
<div id="test-distance"></div>
</div>
<div class="sidebar-parameter">
<div class="text-faded">angle</div>
<div id="test-angle"></div>
</div>
<div class="sidebar-parameter">
<div class="text-faded">samples</div>
<div id="test-n"></div>
</div>
</div>
</div>
</div>
<div class="map-container">
<div id="map"></div>
<div class="map-overlay">
<div class="ap-status">
<div id="ap-latlng"></div>
<div>
<div id="ap-alt"></div>
<div id="ap-speed"></div>
</div>
<div>
<div id="ap-flightmode"></div>
<div id="ap-landingzone"></div>
</div>
</div>
</div>
<div class="playback-controls map-overlay">
<div>
<button class="map-overlay-button icon-play" id="map-play" title="Play/pause"></button>
<button class="map-overlay-button icon-step" id="map-step" title="Step"></button>
</div>
</div>
</div>
</div>
<div id="welcome">
<h1>ParaDrone Simulator</h1>
<p>
Runs a simulation of ParaDrone flight.
This is a tool to help with developing the flight planning algorithm.
</p>
<p>
Click to place the paraglider above a given spot.
Use the playback controls to see how it would fly.
</p>
<p>
Wind can be set using the rose chart (circles).
The autopilot software is NOT aware of the windspeed, and has to adapt based on location data.
</p>
<p>
The "test" button will evaluate the landing accuracy for a grid of starting points.
</p>
</div>
<script src="https://cesium.com/downloads/cesiumjs/releases/1.123/Build/Cesium/Cesium.js"></script>
<script src="js/bundle.js"></script>
</body>
</html>