added radar intereceptor panda infrastructure. not able to detect yet

This commit is contained in:
Ryley
2022-04-21 20:38:13 -05:00
parent 2bf9f77354
commit 8b6e56b6ea
12 changed files with 51 additions and 10 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, 45)
a = struct.unpack("<IIIIIIIIBBBBBBBHBBBB", dat)
dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd2, 0, 0, 46)
a = struct.unpack("<IIIIIIIIBBBBBBBHBBBBB", dat)
return {
"uptime": a[0],
"voltage": a[1],
@@ -457,6 +457,7 @@ class Panda(object):
"power_save_enabled": a[17],
"heartbeat_lost": a[18],
"torque_interceptor_detected": a[19],
"radar_intercept_mode": a[20],
}
# ******************* control *******************