-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.en.html
82 lines (80 loc) · 3.1 KB
/
index.en.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>pyWebGCS</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og==" crossorigin=""></script>
<link rel="stylesheet" href="static/style.css">
<script src="static/MovingMarker.js"></script>
<script src="static/leaflet.rotatedMarker.js"></script>
</head>
<body onload="map_init()">
<header>
<nav>
<div id="logo"><p>pyWebGCS</p></div>
</nav>
</header>
<div id="wrapper">
<div id="mapcontainer"></div>
<div id="control">
<canvas id="fl_status"></canvas>
<canvas id="compass"></canvas>
<div class="operation">
<table>
<tbody>
<tr><td>Flight Mode</td><td id="mode_cell">unknown</td></tr>
<tr><td>GPS</td><td id="gps_cell">unknown</td></tr>
<tr><td>Battery(V)</td><td id="batt_volt_cell">unknown</td></tr>
<tr><td>Battery(C)</td><td id="batt_cur_cell">unknown</td></tr>
<tr><td>Battery(%)</td><td id="batt_level_cell">unknown</td></tr>
<tr><td>ARMable</td><td id="armable_cell">unknown</td></tr>
<tr><td>ARMed</td><td id="armed_cell">unknown</td></tr>
<tr><td>System Status</td><td id="sys_status_cell">unknown</td></tr>
<tr><td>Vehicle type</td><td id="type_cell">unknown</td></tr>
</tbody>
</table>
</div>
<div class="operation">
<span>Mode Change</span>
<select id="sel_mode">
<option value="MANUAL">Manual</option>
<option value="GUIDED">Guided</option>
<option value="ALTHOLD">Alt Hold</option>
<option value="LOITER">Loiter</option>
<option value="AUTO">Auto</option>
<option value="RTL">RTL</option>
</select>
</span>
<span>
<button id="btn_mode" onclick="onMode();">Set</button>
</span>
</div>
<div class="operation">
<button id="btn_arm" onclick="onArm();">ARM/DISARM</button>
</div>
<div class="operation">
<span id="connect_marker">●</span>
<span id="connect_status">Closed</span>
</div>
<div class="operation">
<select id="sel_con">
<option value="close">closed</option>
<option value="/dev/ttyAMA0">GPIO Serial</option>
<option value="/dev/ttyACM0">USB Serial</option>
<option value="tcp:127.0.0.1:5762">Local(tcp)</option>
<option value="udp:127.0.0.1:14550">Local(UDP)</option>
</select>
<button id="btn_con" onclick="onConnect();">connect/close</button>
</div>
</div><!-- end control-->
</div><!-- end wrapper-->
</body>
<script src="static/map_setup.js"></script>
<script src="static/ws_setup.js"></script>
<script src="static/uav_setup.js"></script>
<script src="static/inst_setup.js"></script>
</html>