This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
59 lines (49 loc) · 2.66 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Path Generator</title>
<link rel="icon" type="image" href="images/icon.png">
<link rel="stylesheet" href="index.css">
</head>
<body oncontextmenu="return false;">
<div>
<canvas id="fieldCanvas" class="fieldCanvas" width="693" height="693"></canvas>
</div>
<div class="sliderContainer">
<input type="range" value="20" min="0" max="200" step="0.01" oninput="this.nextElementSibling.value = this.value" id="decelerationSlider">
<output class="text" id="decelVal">20</output>
<label for="decelerationSlider" class="text">Max Deceleration</label>
<input type="range" value="62.83" min="0" max="200" step="0.01" oninput="this.nextElementSibling.value = this.value" id="maxSpeedSlider">
<output class="text" id="maxSpeedVal">62.83</output>
<label for="maxSpeedSlider" class="text">Max Speed</label>
<input type="range" value="50" min="0.1" max="200" step="0.01" oninput="this.nextElementSibling.value = this.value" id="multiplierSlider">
<output class="text" id="multiplierVal">50</output>
<label for="multiplierSlider" class="text">Turn Multiplier</label>
<button type="button" id="downloadPathBtn">Download Path Data</button>
<input type="file" id="uploadPathBtn"></input>
<label for="uploadPathBtn" id="uploadPathLabel">Upload Path Data</label>
</div>
<div class="modeContainer">
<button type="button" id="modeBtn">mode</button>
</div>
<div class="debugContainer">
<input type="file" id="uploadDebugBtn"></input>
<label for="uploadDebugBtn" id="uploadDebugLabel">Upload Robot Debug Data</label>
<button type="button" id="debugBackBtn">⏮</button>
<button type="button" id="debugPauseBtn">⏯</button>
<button type="button" id="debugForwardBtn">⏭</button>
<input type="range" value ="0" min="0" max="100" step="1" oninput="this.nextElementSibling.value = this.value" id="timeSlider">
</div>
<div class="graph" id="graphContainer">
<canvas id="leftMotorCanvas"></canvas>
<canvas id="rightMotorCanvas"></canvas>
</div>
<script src="scripts/settings.js"></script>
<script src="scripts/vector.js"></script>
<script src="scripts/graphics.js"></script>
<script src="scripts/path.js"></script>
<script src="scripts/events.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>