Update rendash
This commit is contained in:
parent
6296ecf1f6
commit
5be83a16b0
@ -63,6 +63,10 @@ class RenDash:
|
|||||||
return ecu
|
return ecu
|
||||||
|
|
||||||
def get_ecu_states(self, doc):
|
def get_ecu_states(self, doc):
|
||||||
|
ecu = self.get_ecu_by_doc(doc)
|
||||||
|
return ecu.States
|
||||||
|
|
||||||
|
def get_ecu_parameters(self, doc):
|
||||||
ecu = self.get_ecu_by_doc(doc)
|
ecu = self.get_ecu_by_doc(doc)
|
||||||
return ecu.Parameters
|
return ecu.Parameters
|
||||||
|
|
||||||
@ -77,7 +81,9 @@ class RenDash:
|
|||||||
return datastr
|
return datastr
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
rd = RenDash("/dev/tty0")
|
rd = RenDash("/dev/ttyS5")
|
||||||
|
print(rd.get_ecu_parameters("FRE_FPA_FF_0300_08_A"))
|
||||||
|
# exit(0)
|
||||||
while True:
|
while True:
|
||||||
clearScreen()
|
clearScreen()
|
||||||
for ecu_doc, values in REQUIRED_ECU_STATES.items():
|
for ecu_doc, values in REQUIRED_ECU_STATES.items():
|
||||||
@ -87,5 +93,3 @@ if __name__ == "__main__":
|
|||||||
elif val.startswith("P"):
|
elif val.startswith("P"):
|
||||||
print(rd.get_ecu_param(ecu_doc, val))
|
print(rd.get_ecu_param(ecu_doc, val))
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user