aboutsummaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-demo/app/Frontend/index.html
blob: b1b8a810c9a42da56add40b122b7df9955c5a29e (plain)
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
<!DOCTYPE html>
<!--[if lt IE 7]>      <html lang="en" ng-app="@@APPNAME@@" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html lang="en" ng-app="@@APPNAME@@" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html lang="en" ng-app="@@APPNAME@@" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en" ng-app="@@APPNAME@@" class="no-js"> <!--<![endif]-->
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>AGL Low CAN binding demo</title>
	<base href="@@URLBASE@@">
    <!-- bower:css -->
    <!-- endinject -->
    <!-- vendor:css -->
    <!-- endinject -->
    <!-- appli:css -->
    <!-- endinject -->
    <!-- inject:css -->
    <!-- endinject -->
	<!-- bower:js -->
	<!-- endinject -->
	<!-- inject:js -->
	<!-- endinject -->
</head>
<body class="not-connected">
	<!-- Navigation -->
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
			<a class="navbar-brand" href="http://iot.bzh" target="_blank" alt="IoT.bzh">
				<img id="iotbzh-logo" src="/images/logo_iot_bzh_lightgrey_325x90_50dpi.png"/>
			</a>
			<div class="collapse navbar-collapse">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
				<p class="navbar-text navbar-right">AGL Low CAN binding</p>
                <ul class="nav navbar-nav">
					<li class="if-not-connected">
                        <a role="button" onclick="doConnect();">Connect</a>
                    </li>
					<li class="if-connecting">
                        Connecting...
                    </li>
					<li class="if-started">
						<a role="button" onclick="doDisconnect();">Disconnect</a>
					</li>
				</ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>

    <div class="content">
		<div id="quad1" class="quad">
			<img id="view1"/>
<!--
			<div id="vspan">
				<svg height="100" width="100">
					<g>
						<circle cx="50" cy="50" r="49" stroke="white" stroke-width="3"/> 
						<text x="50%" y="80%" fill="white" text-anchor="middle">Km/h</text>
					</g>
				</svg>
				<div id="vspeed" class="number">0</div>
			</div>
			<div id="espan">
				<svg height="100" width="100">
					<g>
						<circle cx="50" cy="50" r="49" stroke="white" stroke-width="3"/> 
						<text x="50%" y="80%" fill="white" text-anchor="middle">Rpm</text>
					</g>
				</svg>
				<div id="espeed" class="number">0</div>
			</div>
-->
			<div id="cluster">
				<canvas id="torqueGauge"></canvas>
				<canvas id="rpmGauge"></canvas>
				<canvas id="MAFGauge"></canvas>
				<canvas id="speedGauge"></canvas>
				<canvas id="IATempGauge"></canvas>
			</div>
		</div>

<!--
		<div id="quad2" class="quad">
			<div id="mapsat"></div>
			<img id="car" class="invisible" src="images/car-top-view.png"/>
			<div id="gaspan">
				<div id="gas">
					<div id="gpgreen"></div>
					<div id="gpblack"></div>
					<div id="gpred"></div>
				</div>
				<div id="copan">
					<div id="con1"></div>
					<div id="con2"></div>
					<div id="con3"></div>
					<div id="con4"></div>
					<div id="con5"></div>
					<div id="con6"></div>
					<div id="con7"></div>
					<div id="con8"></div>
					<div id="con9"></div>
				</div>
			</div>
		</div>
-->
		<div id="quad3" class="quad">
			<table id="xcdata" class="table table-striped table-bordered table-condensed">
				<thead>
					<tr><th colspan="2">AGL CAN messages Details</th></tr>
					<tr><th class="col-md-4">Data</th><th>Value</th></tr>
				</thead>
				<tbody>
					<tr> <td>Vehicle Speed</td> <td><span id="vsp">?</span> km/h</td> </tr>
					<tr> <td>Engine Speed</td> <td><span id="esp">?</span> tr/mn</td> </tr>
					<tr> <td>Engine Load</td> <td><span id="trq">?</span> %</td> </tr>
					<tr> <td>MAF air flow rate</td> <td><span id="fue">?</span> grams/sec</td> </tr>
					<tr> <td>Intake Air temp</td> <td><span id="tem">?</span> °C</td> </tr>
					<tr> <td>Messages rate</td> <td><span id="msg">?</span> received events/s</td> </tr>
					<tr> <td>CPU load</td> <td><span id="stat">?</span> %</td> </tr>
				</tbody>
			</table>
		</div>

<!--
		<div id="quad4" class="quad">
			<div id="mapstreet"></div>
		</div>
-->
    </div>
</body>
</html>