Refactored fixed confs 1 into modular chunks and added to llookup function to make...
[freeems-vanilla.git] / interface / DatalogExample.js
blob90b9a3036eb9204e6b3c6898b1a0f18258f29dec
2         "FreeEMSStructuredDataLog": {
3                 "MetaData": {
4                         "DateTimeStarted":                                      "2008/11/22 07:22:57 GMT",
5                         "DateTimeLastWritten":                          "2008/11/22 07:22:58 GMT",
6                         "FirmwareVersionUniqueIdentifier":      "FreeEMS Vanilla 0.0.17 pre-alpha",
7                         "TuningToolName":                                       "FreeEMS-Tuner",
8                         "TuningToolVersion":                            "0.1 build 200811220726r",
9                         "VehicleProfileIdentifier":                     "SweetHBCosmo1",
10                         "UserNotes":                                            "This wxPython app rocks!"
11                 },
12                 "Columns": [
13                         {"Name": "AppSeq",      "Unit": "Logs",         "Description": "The index of a particular log entry as the application received them."},
14                         {"Name": "EMSSeq",      "Unit": "Logs",         "Description": "The index of a particular log entry as FreeEMS sent them."},
15                         {"Name": "RPM",         "Unit": "RPM",          "Description": "Revolutions Per Minute - The rotational speed of the engine."},
16                         {"Name": "MAP",         "Unit": "kPa",          "Description": "Manifold Absolute Pressure - The pressure in the intake manifold in kilo Pascals."},
17                         {"Name": "CHT",         "Unit": "*C",           "Description": "Coolant/Head Temperature - The temperature of the engine itself."},
18                         {"Name": "IAT",         "Unit": "*C",           "Description": "Inlet Air Temperature - The temperature of the air the engine was breathing."},
19                         {"Name": "TPS",         "Unit": "%",            "Description": "Throttle Position Sensor - The proportion that the thottle plates are open."},
20                         {"Name": "EGO",         "Unit": "Lambda",       "Description": "Exhaust Gas Oxygen - How rich or lean the exhaust gas stream is."},
21                         {"Name": "AAP",         "Unit": "kPa",          "Description": "Absolute Atmospheric Pressure - An indicator of exhaust scavenging efficiency."},
22                         {"Name": "BRV",         "Unit": "V",            "Description": "Battery Reference Voltage - The current voltage at the battery reference sense wire."},
23                         {"Name": "MAT",         "Unit": "*C",           "Description": "Manifold Air Temperature - What temperature the air is inside the intake manifold."},
24                         {"Name": "EGO2",        "Unit": "Lambda",       "Description": "Exhaust Gas Oxygen - How rich or lean the exhaust gas stream is."},
25                         {"Name": "IAP",         "Unit": "kPa",          "Description": "Intercooler Absolute Pressure - The pressure in the intake before the throttle."},
26                         {"Name": "MAF",         "Unit": "Flow",         "Description": "Mass Air Flow - A direct measurement of air flow through the engine."},
27                         {"Name": "DMAP",        "Unit": "DkPa",         "Description": "Delta MAP - The rate of change of MAP."},
28                         {"Name": "DTPS",        "Unit": "D%",           "Description": "Delta TPS - The rate of change of TPS."},
29                         {"Name": "DRPM",        "Unit": "DRPM",         "Description": "Delta RPM - The rate of change of RPM."},
30                         {"Name": "DDRPM",       "Unit": "DDRPM",        "Description": "Delta Delta RPM - The rate of change of the rate of change of RPM."},
31                         {"Name": "LoadMain","Unit": "%",                "Description": "Engine Load - Usually configured to be the same as MAP."},
32                         {"Name": "Boost",       "Unit": "PSI",          "Description": "Boost Presssure - Pressure in the manifold in Pounds per Square Inch."},
33                         {"Name": "VEMain",      "Unit": "%",            "Description": "Volumetric Efficiency - The proportion of cylinder filling occurring."},
34                         {"Name": "Lambda",      "Unit": "Lambda",       "Description": "Lambda Target - The Lambda we are aiming to achieve."},
35                         {"Name": "BasePW",      "Unit": "ms",           "Description": "Base Pulse Width - Fuel injection pulse width before applying corrections."},
36                         {"Name": "IDT",         "Unit": "ms",           "Description": "Injector Dead Time - How long per pulse the injector spends powered up and closed."},
37                         {"Name": "ETE",         "Unit": "ms/%",         "Description": "Engine Temperature Enrichment - Fuel added to assist warm up or cool when hot."},
38                         {"Name": "TFCTotal","Unit": "ms/%",             "Description": "Transient Fuel Correction - Fuel added to ensure Lambda during rapid changes."},
39                         {"Name": "FinalPW",     "Unit": "ms",           "Description": "Final Pulse Width - Fuel injection pulse width before individual cylinder trims."},
40                         {"Name": "RefPW",       "Unit": "ms",           "Description": "Reference Pulse Width - Currently Base + Dead Time."},
41                         {"Name": "IgnAdv",      "Unit": "*BTDC",        "Description": "Ignition Advance - Degrees Before Top Dead Centre"},
42                         {"Name": "Dwell",       "Unit": "ms",           "Description": "Dwell - How long the coil has battery voltage applied to it before the spark event."},
43                         {"Name": "Time",        "Unit": "s",            "Description": "How long since the device started up it has been."}
44                 ],
45                 "Data": [
46                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
47                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
48                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
49                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
50                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
51                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
52                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
53                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
54                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
55                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
56                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
57                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
58                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
59                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
60                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
61                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
62                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
63                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
64                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
65                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
66                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
67                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
68                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
69                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
70                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
71                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
72                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
73                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
74                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
75                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
76                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
77                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
78                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
79                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
80                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
81                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
82                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
83                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
84                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
85                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
86                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
87                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
88                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
89                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
90                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
91                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
92                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
93                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
94                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
95                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
96                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
97                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
98                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
99                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
100                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
101                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
102                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
103                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7},
104                         {3.14159,8,7,23,5,5,6,8,11,8,76,54,22,3,44,33,45,6,7,8,66,8,76,5,4,3,77,3,4,56,7}
105                 ]
106         }