-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.jp.html
83 lines (81 loc) · 3.17 KB
/
index.jp.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
<!DOCTYPE html>
<html lang="ja">
<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>フライトモード</td><td id="mode_cell">不明</td>
<td>GPS</td><td id="gps_cell">不明</td></tr>
<tr><td>バッテリー(V)</td><td id="batt_volt_cell">不明</td>
<td>バッテリー(C)</td><td id="batt_cur_cell">不明</td></tr>
<tr><td>バッテリー(%)</td><td id="batt_level_cell">不明</td>
<td>ARM可能</td><td id="armable_cell">不明</td></tr>
<tr><td>ARM中</td><td id="armed_cell">不明</td>
<td>システム状況</td><td id="sys_status_cell">不明</td></tr>
<tr><td>機体タイプ</td><td id="type_cell">不明</td>
<td><br/></td><td><br/></td></tr>
</tbody>
</table>
</div>
<div class="operation">
<span>モード変更指令</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();">設定</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">切断中</span>
</div>
<div class="operation">
<select id="sel_con">
<option value="close">切断</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();">接続/切断</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>