cruize speed

This commit is contained in:
Jafar Al-Gharaibeh
2021-10-02 15:35:51 -05:00
parent a965de3c96
commit 0fd5588c89
21 changed files with 330 additions and 60 deletions
+3 -2
View File
@@ -434,8 +434,8 @@ class Panda(object):
@ensure_health_packet_version
def health(self):
dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 44)
a = struct.unpack("<IIIIIIIIBBBBBBBHBBB", dat)
dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 45)
a = struct.unpack("<IIIIIIIIBBBBBBBHBBBB", dat)
return {
"uptime": a[0],
"voltage": a[1],
@@ -456,6 +456,7 @@ class Panda(object):
"fault_status": a[16],
"power_save_enabled": a[17],
"heartbeat_lost": a[18],
"torque_interceptor_detected": a[19],
}
# ******************* control *******************