-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsensor_read.html
110 lines (97 loc) · 2.58 KB
/
sensor_read.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My First Accelerometer Test</title>
<meta name="description" content="My First Reading Sensor page in HTML5">
<meta name="keyword" content="HTML,CSS,JavaScript">
<link rel="stylesheet" href=style.css>
<script src="main.js"></script>
</head>
<body>
<section>
<h1>IMU from RealSense 435i or other Sensors</h1>
</section>
<div id="game" class="game">
<div id="game_text" class="shakeToStart" style="display:none;">
</div>
</div>
<script>main()</script>
<h2>Accelerometer</h2>
<p> <strong id="accStatus"> OFF</strong> <br> </p>
<label class="switch">
<input id="startStopAcc" type="checkbox" onclick="startStopAcc();"/>
<span class="slider round"></span>
</label>
<table id="accelerometer">
<tr>
<th>x axis</th>
<th>y axis</th>
<th>z axis</th>
</tr>
<tr>
<td id="acc_x_val"> - </td>
<td id="acc_y_val"> - </td>
<td id="acc_z_val"> - </td>
</tr>
</table>
<p id="acc_status"> </p>
<h2>Linear Accelerometer</h2>
<p> <strong id="linAccStatus"> OFF</strong> <br> </p>
<label class="switch">
<input id="startStopLinAcc" type="checkbox" onclick="startStopLinAcc();"/>
<span class="slider round"></span>
</label>
<table id="linear_accelerometer">
<tr>
<th>x axis</th>
<th>y axis</th>
<th>z axis</th>
</tr>
<tr>
<td id="lin_acc_x_val"> - </td>
<td id="lin_acc_y_val"> - </td>
<td id="lin_acc_z_val"> - </td>
</tr>
</table>
<p id="lin_acc_status"> </p>
<h2>Gravity</h2>
<p> <strong id="gravityStatus"> OFF</strong> <br> </p>
<label class="switch">
<input id="startStopGravity" type="checkbox" onclick="startStopGravity();"/>
<span class="slider round"></span>
</label>
<table id="gravity">
<tr>
<th>x axis</th>
<th>y axis</th>
<th>z axis</th>
</tr>
<tr>
<td id="gravity_x_val"> - </td>
<td id="gravity_y_val"> - </td>
<td id="gravity_z_val"> - </td>
</tr>
</table>
<p id="gravity_status"> </p>
<h2>Gyroscope</h2>
<p> <strong id="gyroStatus"> OFF</strong> <br> </p>
<label class="switch">
<input id="startStopGyro" type="checkbox" onclick="startStopGyro();"/>
<span class="slider round"></span>
</label>
<table id="gyro">
<tr>
<th>x axis</th>
<th>y axis</th>
<th>z axis</th>
</tr>
<tr>
<td id="gyro_x_val"> - </td>
<td id="gyro_y_val"> - </td>
<td id="gyro_z_val"> - </td>
</tr>
</table>
<p id="gyro_status"> </p>
</body>
</html>