This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
forked from 221robotics/RobotOpen-HTML5-DriverStation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·312 lines (286 loc) · 13.5 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RobotOpenDS 708</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Maintained HTML5 Robot Controller">
<meta name="author" content="708 Robotics">
<link href="css/inspiritas.css" rel="stylesheet">
<link href="css/robotopen.css" rel="stylesheet">
<script data-main="js/main" src="lib/require.js"></script>
</head>
<body>
<!-- Navbar
================================================== -->
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="brand">RobotOpenDS 708</div>
<div id="joy-hovers">
<span class="label" rel="tooltip" id="joylabel1" title="Not mapped. Connect a joystick and press any button to map the next available slot." data-placement="bottom">Joy #1</span>
<span class="label" rel="tooltip" id="joylabel2" title="Not mapped. Connect a joystick and press any button to map the next available slot." data-placement="bottom">Joy #2</span>
<span class="label" rel="tooltip" id="joylabel3" title="Not mapped. Connect a joystick and press any button to map the next available slot." data-placement="bottom">Joy #3</span>
<span class="label" rel="tooltip" id="joylabel4" title="Not mapped. Connect a joystick and press any button to map the next available slot." data-placement="bottom">Joy #4</span>
</div>
<div class="pull-right">
<button class="btn btn-large btn-info" type="button" id="enable-btn">Enable Robot</button>
<button class="btn btn-large btn-success" type="button" id="connect-btn">Connect</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row-fluid" id="main-area">
<div class="span3">
<aside>
<nav>
<ul class="nav">
<li class="selected" id="control-link">
<a href="#"><i class="icon-play icon-white"></i> Control</a>
</li>
<li id="console-link">
<a href="#"><i class="icon-warning-sign icon-white"></i> Console</a>
</li>
<li id="parameters-link">
<a href="#"><i class="icon-cog icon-white"></i> Parameters</a>
</li>
<li id="setup-link">
<a href="#"><i class="icon-wrench icon-white"></i> Setup</a>
</li>
</ul>
</nav>
</aside>
</div>
<div class="span9" id="content-wrapper">
<div id="control-div">
<div id="content">
<!-- Navbar
================================================== -->
<section id="stats-section">
<header>
<div class="pull-right">
<p class="hinttext" id="disablehint" style="display: none;">Spacebar to Disable</p>
</div>
<h1>RobotOpen Dashboard</h1>
</header>
<div class="row-fluid" id="stats">
<!-- backbone render here -->
</div>
</section>
<!-- Graph
================================================== -->
<section id="graph-section">
<div class="sub-header">
<h2>Network Latency</h2>
</div>
<div class="row-fluid row-fluid-alternate-bg">
<div class="span12">
<div id="mainChart"></div>
</div>
</div>
</section>
<!-- DS Data
================================================== -->
<section id="feedback-section">
<div class="sub-header">
<h2>Robot Feedback</h2>
</div>
<table class="table table-striped full-section table-hover">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
<th>Type</th>
<th>Display</th>
</tr>
</thead>
<tbody id="bundles">
<tr>
<td colspan="4">Waiting for connection...</td>
</tr>
</tbody>
</table>
</section>
</div>
</div>
<div id="console-div" style="display: none;">
<div id="content">
<!-- Navbar
================================================== -->
<section id="setup-section">
<header>
<h1>Console/Debug</h1>
</header>
</section>
<!-- Console
================================================== -->
<section id="console-section">
<div class="row-fluid row-fluid-alternate-bg">
<div class="span12">
<div id="console"></div>
</div>
</div>
</section>
</div>
</div>
<div id="parameters-div" style="display: none;">
<div id="content">
<!-- Navbar
================================================== -->
<section id="parameters-heading-section">
<header>
<div class="pull-right">
<span class="label label-important" id="joywarningtext">Robot Must Be Disabled To Update or Modify</span>
<a class="btn btn-small" id="getParameters">Load from Robot</a>
<a class="btn btn-small" id="commitParameters">Commit All</a>
</div>
<h1>Parameters</h1>
</header>
</section>
<!-- Console
================================================== -->
<section id="parameters-section">
<div class="row-fluid row-fluid-alternate-bg">
<div class="span12" id="parameters">
<table class="table table-striped full-section table-hover">
<thead>
<tr>
<th>Name</th>
<th>Address</th>
<th width="100">Type</th>
<th>Value</th>
</tr>
</thead>
<tbody id="parameter-body">
<tr>
<td colspan="4">No parameters loaded</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
</div>
</div>
<div id="setup-div" style="display: none;">
<div id="content">
<!-- Navbar
================================================== -->
<section id="setup-section">
<header>
<h1>RobotOpen Setup</h1>
</header>
</section>
<!-- Joystick Config
================================================== -->
<section id="joystick-section">
<div class="row-fluid row-fluid-alternate-bg">
<div class="span12">
<div id="no-gamepad-support" style="display: none;">
Your browser does not appear to support Gamepad API.<br />
</div>
<div class="bs-docs-example">
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#joy1main" data-toggle="tab">Joy #1</a></li>
<li><a href="#joy2main" data-toggle="tab">Joy #2</a></li>
<li><a href="#joy3main" data-toggle="tab">Joy #3</a></li>
<li><a href="#joy4main" data-toggle="tab">Joy #4</a></li>
<li><a href="#robot" data-toggle="tab">Robot</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane active" id="joy1main">
<h4>Joystick #1</h4>
<select id="joystick_setup_1" class="joystick_setup" name="1">
<option value="null">No Joystick</option>
</select>
<table class="table" id="joy1map">
<thead>
<td>Identifier</td>
<td>Mapped Button/Axis</td>
</thead>
<tbody id="joy1">
</tbody>
</table>
</div>
<div class="tab-pane" id="joy2main">
<h4>Joystick #2</h4>
<select id="joystick_setup_2" class="joystick_setup" name="2">
<option value="null">No Joystick</option>
</select>
<table class="table" id="joy2map">
<thead>
<td>Identifier</td>
<td>Mapped Button/Axis</td>
</thead>
<tbody id="joy2">
</tbody>
</table>
</div>
<div class="tab-pane" id="joy3main">
<h4>Joystick #3</h4>
<select id="joystick_setup_3" class="joystick_setup" name="3">
<option value="null">No Joystick</option>
</select>
<table class="table" id="joy3map">
<thead>
<td>Identifier</td>
<td>Mapped Button/Axis</td>
</thead>
<tbody id="joy3">
</tbody>
</table>
</div>
<div class="tab-pane" id="joy4main">
<h4>Joystick #4</h4>
<select id="joystick_setup_4" class="joystick_setup" name="4">
<option value="null">No Joystick</option>
</select>
<table class="table" id="joy4map">
<thead>
<td>Identifier</td>
<td>Mapped Button/Axis</td>
</thead>
<tbody id="joy4">
</tbody>
</table>
</div>
<div class="tab-pane" id="robot">
<h4>Robot Connection</h4><br />
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputEmail">IP Address</label>
<div class="controls">
<input type="text" id="robotIp" placeholder="10.0.0.22" value="10.0.0.22">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">Port</label>
<div class="controls">
<input type="text" id="robotPort" placeholder="22211" value="22211">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">No Joystick Enable</label>
<div class="controls">
<input type="checkbox" name="no-joy-enable" id="no-joy-en-btn">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div><!-- /container -->
</body>
</html>