Conditions | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | from obdlib.obd.pids import * |
||
39 | def __init__(self, units): |
||
40 | set_unit(units) |
||
41 | # In order to choose right pid you |
||
42 | # need to do next request (ex: get engine coolant temperature - |
||
43 | # self.modes[1][5]) |
||
44 | DictModes.pids = Pids() |
||
45 | pre_dict = { |
||
46 | # Current data - 01 |
||
47 | CURRENT_DATA: DictModes.pids, |
||
48 | # Trouble codes |
||
49 | REQUEST_TROUBLE_CODES: DictModes.pids, |
||
50 | # Common info |
||
51 | VEHICLE_INFORMATION_DATA: DictModes.pids |
||
52 | } |
||
53 | self.modes = DictModes(pre_dict) |