forked from guilherme-daros/boat-telemetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.js
More file actions
42 lines (38 loc) · 629 Bytes
/
lists.js
File metadata and controls
42 lines (38 loc) · 629 Bytes
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
const warningColors = {
red: "#ff0000",
green: "#00ca00",
};
const boatBattery = {
warnings: {
overTemperature: false,
overCurrent: false,
CHG: false,
DSG: false,
underVoltage: false,
overVoltage: false,
},
power: 0,
SoC: 0,
cPack: 0,
vPack: 0,
tPack: 0,
cellTemp: {
cell1: 0,
cell2: 0,
cell3: 0,
cell4: 0,
cell5: 0,
cell6: 0,
cell7: 0,
cell8: 0,
},
};
const warningIdList = [
"overTemperature",
"overCurrent",
"CHG",
"DSG",
"underVoltage",
"overVoltage",
];
const infoIdList = ["power", "SoC", "vPackInfo", "cPackInfo", "tPackInfo"];