forked from CharlieA0/FlightTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWaypoint.html
79 lines (57 loc) · 2.55 KB
/
Waypoint.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
<!DOCTYPE html>
<html lang="en">
<!--Bronxville Flight Tool - Copyright 2016 Charles Vorbach. Uses Cesium to create, visualize, and export custom GPS Waypoint Flight Plans based on QGC WPL 110 format-->
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Flight Tool - Bronxville Programming</title>
<!--Import Cesium-->
<script src="../../Build/Cesium/Cesium.js"></script>
<!--Style-->
<link rel="stylesheet" type="text/css" href="Waypoint.css">
</head>
<body>
<!--Cesium Container and Flight Tool Code-->
<div id="cesiumContainer"></div>
<script src="Waypoint.js"></script>
<!--Container for toolbar-->
<div id="waypointControls">
<!--Use Tables to organize toolbar-->
<table align="center">
<!--Title-->
<td width="20%">
<span id="title">Bronxville Flight Tool © 2016</span>
</td>
<!--Toolbar Tools-->
<td>
<form>
<table>
<!--Toolbar Fields-->
<div id="waypointData" data-point-number="">
<td>Waypoint: <input type="number" min="1" max="1" id="WaypointNumber" onchange="moveWaypoint()"> </td>
<td>Command: <input type="text" size="9" id="Command" onchange="updateWaypoints()"> </td>
<td>Latitude: <input type="text" size="9" id="Latitude" onchange="updateWaypoints()"> </td>
<td>Longitude: <input type="text" size="9" id="Longitude" onchange="updateWaypoints()"> </td>
<td>Altitude: <input type="text" size="9" id="Altitude" onchange="updateWaypoints()"> </td>
<td>Raduis: <input type="text" size="9" id="Radius" onchange="updateWaypoints()"> </td>
</div>
</table>
</form>
</td>
<!--Button to Export the Flight Plan-->
<td>
<button onClick="exportList()">Export Flight Plan</button>
</td>
<!--Button to Download the Flight Plan-->
<td>
<a id="download" download="FlightPlan.waypoints" disabled="false" href="">
</a>
</td>
</table>
</div>
</body>
</html>