This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (107 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin="anonymous"
></script>
<script src="scripts.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta charset="utf-8" />
<title>Jetson Serial Simulator</title>
</head>
<body>
<div class="container">
<div>
<select id="port-list"></select>
<button id="refresh">Refresh</button>
</div>
<div>
<button id="connect">Connect</button>
<button id="disconnect">Disconnect</button>
<button id="flush">Flush</button>
</div>
<hr>
<div class="colContainer">
<div class="leftCol">
<label>Serial Output</label>
<textarea id="serialOut"></textarea>
<div>
<button id="send">Send</button>
<button id="flush">Flush</button>
</div>
</div>
<div class="middleCol">
<label>Serial In</label>
<textarea readonly id="serialIn"></textarea>
<label>Command In</label>
<textarea readonly id="cmdIn"></textarea>
<button id="clear">Clear</button>
</div>
<div class="rightCol">
<button id="enable">Enable</button>
<button id="control">Control</button>
<div>
<label>Continuous Control</label>
<input type="checkbox" id="continuous_control" />
<label>freq</label>
<input class='freq' id="control-freq" type='number' value="1" min="1" max="10"></input>
<label>Hz</label>
</div>
<label>Brake Control</label>
<input
type="range"
class="slider"
id="brake"
min="0"
max="255"
value="0"
oninput="document.getElementById('brake_label').innerHTML = this.value"
/>
<label id="brake_label">0</label>
<label>Throttle Control</label>
<input
type="range"
class="slider"
id="throttle"
min="0"
max="255"
value="0"
oninput="document.getElementById('throttle_label').innerHTML = this.value"
/>
<label id="throttle_label">0</label>
<label>Steering Control</label>
<input
type="range"
class="slider"
id="steering"
min="0"
max="255"
value="127"
oninput="document.getElementById('steering_label').innerHTML = this.value"
/>
<label id="steering_label">127</label>
<label>Data Length</label>
<input
type="range"
class="slider"
id="data_length"
min="1"
max="3"
value="3"
oninput="data_length_callback(this.value)"
/>
<label id="data_length_label">3</label>
</div>
</div>
<div class="terminal">
<label>Terminal</label>
<textarea id="terminal"></textarea>
</div>
</div>
<script>
require('./renderer.js');
</script>
</body>
</html>