HITL bootkick tests (#1685)

* HITL bootkick tests

* both bootkick cases

* more

* som use gpio

* cleanup

* pretty reliable now
This commit is contained in:
Adeeb Shihadeh
2023-10-06 13:38:35 -07:00
committed by GitHub
parent ea826ccea6
commit aaa1172fa2
4 changed files with 150 additions and 0 deletions

View File

@@ -991,3 +991,7 @@ class Panda:
def force_relay_drive(self, intercept_relay_drive, ignition_relay_drive):
self._handle.controlWrite(Panda.REQUEST_OUT, 0xc5, (int(intercept_relay_drive) | int(ignition_relay_drive) << 1), 0, b'')
def read_som_gpio(self) -> bool:
r = self._handle.controlRead(Panda.REQUEST_IN, 0xc6, 0, 0, 1)
return r[0] == 1