-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (219 loc) · 10.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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<html>
<head>
<!-- CSS -->
<link rel="stylesheet" href="./css/styleProject.css" type="text/css" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- JS -->
<script src="./js/p5.min.js"></script>
<script src="./js/road.js"></script>
<script src="./js/car.js"></script>
<script src="./js/trafficLight.js"></script>
<script src="./js/fuzzyLogic.js"></script>
<script src="./js/main.js"></script>
</head>
<body>
<audio id="audio" controls style="display:none">
<source src="./honk honk.mp3" type="audio/mpeg"> Your browser does not support the audio element.
</audio>
<div class="header">
<h2>Fuzzy Logic: Gradual halt of Car at Traffic Light</h2>
</div>
<section class="white-bg" id="services">
<div class="container">
<div class="row">
<div class="col-md-3">
<h3 class="title-small">
<span>Rules</span>
</h3>
<p class="content-detail">
<h3>1.</h3>
If Car is Close to the Traffic Light OR Traffic Light is Red, then Slow Down.
<h3>2.</h3>
If Car is neither far or close to Traffic Light OR Traffic Light is Green, then Keep
Middle Speed.
<h3>3.</h3>
If Car is Far from the Traffic Light OR Traffic Light is Orange, then Speed Up.
</p>
</div>
<div class="col-md-9 content-right">
<div class="row">
<ul class="listing-item">
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
Rule 1
</h3>
<p class="head-sm">
if car is Close
</p>
<p class="text-grey">
<img src="./plots/distance_close.jpg" alt="close gaussmf plot">
<input type="text" id="case1Distance" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
->
</h3>
<p class="head-sm">
or TL is red
</p>
<p class="text-grey">
<img src="./plots/color_red.jpg" alt="red trimf plot">
<input type="text" id="case1Light" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
v
</h3>
<p class="head-sm">
slow down
</p>
<p class="text-grey">
Move with 0% of your standard speed.
</p>
</div>
</li>
</ul>
<ul class="listing-item">
<li>
<div class="col-md-4 col-sm-4">
<p class="icon-use">
Rule 2
</p>
<p class="head-sm">
if car is Middle
</p>
<p class="text-grey">
<img src="./plots/distance_middle.jpg" alt="middle gaussmf plot">
<input type="text" id="case2Distance" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
->
</h3>
<p class="head-sm">
or TL is green
</p>
<p class="text-grey">
<img src="./plots/color_green.jpg" alt="green trimf plot">
<input type="text" id="case2Light" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
+
</h3>
<p class="head-sm">
keep middle speed
</p>
<p class="text-grey">
Move with 50% of your standard speed.
</p>
</div>
</li>
</ul>
<ul class="listing-item">
<li>
<div class="col-md-4 col-sm-4">
<p class="icon-use">
Rule 3
</p>
<p class="head-sm">
if car is Far
</p>
<p class="text-grey">
<img src="./plots/distance_far.jpg" alt="far gaussmf plot">
<input type="text" id="case3Distance" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
->
</h3>
<p class="head-sm">
or TL is orange
</p>
<p class="text-grey">
<img src="./plots/color_orange.jpg" alt="orange trimf plot">
<input type="text" id="case3Light" value="Some text...">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
+
</h3>
<p class="head-sm">
speed up
</p>
<p class="text-grey">
Move with 100% of your standard speed.
</p>
</div>
</li>
</ul>
<ul class="listing-item">
<li>
<div class="col-md-4 col-sm-4">
<p class="icon-use">
^
</p>
<p class="head-sm">
Distance
</p>
<p class="text-grey">
<input type="text" id="distanceShow" value="">
<input type="text" id="carDistance" value="">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
^
</h3>
<p class="head-sm">
color
</p>
<p class="text-grey">
<input type="text" id="colorShow" value="">
<input type="text" id="tlTick" value="">
</p>
</div>
</li>
<li>
<div class="col-md-4 col-sm-4">
<h3 class="icon-use">
=
</h3>
<p class="head-sm">
percentage of speed
</p>
<p class="text-grey">
<input type="text" id="totalPercentage" value="">
</p>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
</body>
</html>