-
Notifications
You must be signed in to change notification settings - Fork 3
/
veteran.html
147 lines (145 loc) · 6.69 KB
/
veteran.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
<!doctype html>
<html lang="en">
<head>
<title>EUC Dash - Veteran</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="js/veteran.js"></script>
</head>
<body>
<div class="container mt-1 pt-1">
<button type="button" id="scan-disconnect" class="btn-lg btn-primary" onclick="scan()">Scan & Connect</button>
<button type="button" id="packet-switch" class="btn-lg btn-success invisible" onclick="switchToExtendedPackets()">Switch to extended packets</button>
<button type="button" id="next-page" class="btn-lg btn-success invisible" onclick="nextPage()">Next page</button>
<form class="mt-2 pt-2">
<div id="main" class="visible">
<div class="card mb-2 col-lg-6">
<div class="card-header">
Wheel Info
</div>
<div class="card-body">
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="version">Version:</label>
<div class="col-lg-7">
<input class="form-control" id="version" type="text" value="" disabled readonly>
</div>
</div>
</div>
</div>
<div class="card mb-2 col-lg-6">
<div class="card-header">
Live data
</div>
<div class="card-body">
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="voltage">Voltage:</label>
<div class="col-lg-7">
<input class="form-control" id="voltage" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="speed">Speed:</label>
<div class="col-lg-7">
<input class="form-control" id="speed" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="pwm">PWM:</label>
<div class="col-lg-7">
<input class="form-control" id="pwm" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="phase-current">Phase current:</label>
<div class="col-lg-7">
<input class="form-control" id="phase-current" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="temperature">Temperature:</label>
<div class="col-lg-7">
<input class="form-control" id="temperature" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="trip-distance">Trip distance:</label>
<div class="col-lg-7">
<input class="form-control" id="trip-distance" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="total-distance">Total distance:</label>
<div class="col-lg-7">
<input class="form-control" id="total-distance" type="text" value="" disabled readonly>
</div>
</div>
</div>
</div>
<div id="main" class="visible">
<div class="card mb-2 col-lg-6">
<div class="card-header">
Settings
</div>
<div class="card-body">
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="tiltback-speed">Tiltback speed:</label>
<div class="col-lg-7">
<input class="form-control" id="tiltback-speed" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="alarm-speed">Alarm speed:</label>
<div class="col-lg-7">
<input class="form-control" id="alarm-speed" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="pedal-mode">Pedal mode:</label>
<div class="col-lg-7">
<input class="form-control" id="pedal-mode" type="text" value="" disabled readonly>
</div>
</div>
</div>
</div>
<div class="card mb-2 col-lg-6">
<div class="card-header">
Wheel state
</div>
<div class="card-body">
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="angle">Angle:</label>
<div class="col-lg-7">
<input class="form-control" id="angle" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="charge-mode">Charge mode:</label>
<div class="col-lg-7">
<input class="form-control" id="charge-mode" type="text" value="" disabled readonly>
</div>
</div>
<div class="mb-2 row">
<label class="col-lg-5 col-form-label" for="poweroff-timer">Poweroff timer:</label>
<div class="col-lg-7">
<input class="form-control" id="poweroff-timer" type="text" value="" disabled readonly>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="extended" style="display:none">
<div class="card mb-2 col-lg-6">
<div class="card-header">
Live data
</div>
<div class="card-body" id="extended-data">
</div>
</div>
</div>
</form>
</div>
</body>
</html>