-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
60 lines (57 loc) · 1.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
color: #554236;
font-family: sans-serif;
margin: 0;
overflow: hidden;
}
.caption {
font-weight: bold;
position: absolute;
right: 0;
bottom: 0;
margin: 10px;
cursor: default;
}
.caption a {
color: #F77825;
}
.control {
position: absolute;
right: 0;
top: 0;
margin: 10px;
}
</style>
</head>
<body>
<span class="caption">
<a href="https://en.wikipedia.org/wiki/PID_controller">PID controller</a>.
CLICK TO FLY. Ball is physically simulated, orange lines represent your thrusters.
</span>
<span class="control">
<label for="kp">Kp</label>
<input type="text" id="kp" size="8">
<label for="ki">Ki</label>
<input type="text" id="ki" size="8">
<label for="sat">sat</label>
<input type="text" id="sat" size="8">
<label for="kd">Kd</label>
<input type="text" id="kd" size="8">
<label for="wind">Wind</label>
<input type="text" id="wind" size="8">
<label for="deltaX">deltaX</label>
<input type="text" id="deltaX" size="8">
<label for="deltaY">deltaY</label>
<input type="text" id="deltaY" size="8">
</span>
</span>
<canvas id="c"></canvas>
<script src="pid.js"></script>
</body>
</html>