-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol.html
More file actions
121 lines (118 loc) · 4.52 KB
/
control.html
File metadata and controls
121 lines (118 loc) · 4.52 KB
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
<!doctype HTML>
<html>
<head>
<title>Lunar Rover - Control Interface</title>
<meta charset="utf-8" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="control.js"></script>
<link href="control.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="control-holder" id="command-queue-live">
<h1>Live Commands</h1>
<div id="live-queue-holder" class="queue-holder"></div>
<div id="all-resume" onclick="allResume()">RESUME</div>
<div id="all-stop" onclick="allStop()">STOP</div>
</div>
<div class="control-holder" id="command-queue-staging">
<h1>Staged Commands</h1>
<div id="staging-queue-holder" class="queue-holder"></div>
</div>
<div class="control-holder" id="command-palette">
<h1>Command Palette</h1>
<div id="command-palette-holder">
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'Motors')">Motors</button>
<button class="tablinks" onclick="openTab(event, 'Arm')">Arm</button>
<button class="tablinks" onclick="openTab(event, 'Camera')">Camera</button>
</div>
<div id="Motors" class="tabcontent">
<div>
<form action="#" id="forward" onsubmit="submitForward()">
<h3>Forward</h3>
<span>Velocity</span>
<input class="vel" type="text" />
<span>Duration</span>
<input class="dur" type="text" />
<input type="submit" value="Stage" />
</form>
<form action="#" id="reverse" onsubmit="submitReverse()">
<h3>Reverse</h3>
<span>Velocity</span>
<input class="vel" type="text" />
<span>Duration</span>
<input class="dur" type="text" />
<input type="submit" value="Stage" />
</form>
<form action="#" id="left" onsubmit="submitLeft()">
<h3>Left</h3>
<span>Angle</span>
<input class="ang" type="text" />
<input type="submit" value="Stage" />
</form>
<form action="#" id="right" onsubmit="submitRight()">
<h3>Right</h3>
<span>Angle</span>
<input class="ang" type="text" />
<input type="submit" value="Stage" />
</form>
</div>
</div>
<div id="Arm" class="tabcontent">
<form action="#" id="stow" onsubmit="submitStow()">
<h3>Stow</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="extend" onsubmit="submitExtend()">
<h3>Extend</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="ice-box" onsubmit="submitIceBox()">
<h3>Go To Ice Box</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="grip" onsubmit="submitGrip()">
<h3>Grip</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="release" onsubmit="submitRelease()">
<h3>Release</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="arm-go-to" onsubmit="submitArmGoTo()">
<h3>Go To</h3>
<span>X-Position</span>
<input class="x" type="text" />
<span>Y-Position</span>
<input class="y" type="text" />
<span>Z-Position</span>
<input class="z" type="text" />
<input type="submit" value="Stage" />
</form>
<form action="#" id="orient" onsubmit="submitOrient()">
<h3>Orient</h3>
<span>X-Angle</span>
<input class="x" type="text" />
<span>Y-Angle</span>
<input class="y" type="text" />
<span>Z-Angle</span>
<input class="z" type="text" />
<input type="submit" value="Stage" />
</form>
</div>
<div id="Camera" class="tabcontent">
<form action="#" id="pan" onsubmit="submitPan()">
<h3>Pan</h3>
<input type="submit" value="Stage" />
</form>
<form action="#" id="camera-go-to" onsubmit="submitCameraGoTo()">
<h3>Go To</h3>
<span>Angle</span>
<input class="ang" type="text" />
<input type="submit" value="Stage" />
</form>
</div>
</div>
</div>
</body>
</html>