-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (76 loc) · 3.84 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Motion Profile Testing</title>
<script src="libs/matter.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js" charset="utf-8"></script>
<meta content="width=device-width, initial-scale=1" name="viewport">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link charset="utf-8" href="style.css" media="screen" rel="stylesheet" title="no title">
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="container">
<h2 class="text-center">Motion Profile Testing</h2>
<h4 class="text-center">FRC Team 5112, The Gongoliers</h4>
<div class="col-md-6">
<form id="sim-form">
<div class="form-group">
<label for="p">P constant</label>
<input type="number" class="form-control" id="p" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="i">I constant</label>
<input type="number" class="form-control" id="i" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="d">D constant</label>
<input type="number" class="form-control" id="d" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="ffv">FFV constant</label>
<input type="number" class="form-control" id="ffv" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="ffa">FFA constant</label>
<input type="number" class="form-control" id="ffa" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="tolerance">Tolerance</label>
<input type="number" class="form-control" id="tolerance" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="move">Max meters per second</label>
<input type="number" class="form-control" id="move" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="time">Total time</label>
<input type="number" class="form-control" id="time" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="setpoint">Setpoint (Meters)</label>
<input type="number" class="form-control" id="setpoint" placeholder="0.0" step="any">
</div>
<div class="form-group">
<label for="momentum">Momentum factor [0,1]</label>
<input type="number" class="form-control" id="momentum" placeholder="0.005" step="any">
</div>
<button type="button" class="btn btn-danger" id="run">Run</button>
<button type="button" class="btn btn-primary" id="resetPosition">Reset Position</button>
<button type="button" class="btn btn-primary" id="resetValues">Reset Values</button>
<button type="button" class="btn btn-danger" id="stop">Stop</button>
</form>
<h4>Current Position: <span id="currentPosition"></span></h4>
</div>
<div class="col-md-6 text-center">
<canvas id="myChart" width="400" height="400"></canvas>
<div id="field" width="400" height="222"></div>
<img src="field.png" id="fieldImg" style="display: none;">
</div>
</div>
</body>
<script src="app.js" charset="utf-8"></script>
</html>