-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOBDParameters.py
64 lines (57 loc) · 1.23 KB
/
OBDParameters.py
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
class OBDParameters:
SupportedPIDs = '0100'
EngineLoad = '0104'
EngineTemperature = '0105'
RPM = '010C'
VehicleSpeed = '010D'
MAFAirFlow = '0110'
ThrottlePosition = '0111'
GetDiagnosticTrouleCodes = '03'
ClearTroubleCodes = '04'
Descriptions = {
SupportedPIDs : {
'bytes' : 4
},
EngineLoad : {
'bytes' : 1,
'index' : 4,
'unit' : '%',
'bounds' : {'min' : 0, 'max' : 100},
'description' : 'Calculated engine load value'
},
EngineTemperature : {
'bytes' : 1,
'index' : 5,
'unit' : 'C',
'bounds' : {'min' : -40, 'max' : 215},
'description' : 'Engine coolant temperature'
},
RPM : {
'bytes' : 2,
'index' : 12,
'unit' : 'rpm',
'bounds' : {'min' : 0, 'max' : 16383.75},
'description' : 'Engine RPM'
},
VehicleSpeed : {
'bytes' : 1,
'index' : 13,
'unit' : 'km/h',
'bounds' : {'min' : 0, 'max' : 255},
'description' : 'Vehicle speed'
},
MAFAirFlow : {
'bytes' : 2,
'index' : 16,
'unit' : 'grams/sec',
'bounds' : {'min' : 0, 'max' : 655.35},
'description' : 'MAF air flow rate'
},
ThrottlePosition : {
'bytes' : 1,
'index' : 17,
'unit' : '%',
'bounds' : {'min' : 0, 'max' : 100},
'description' : 'Throttle position'
}
}