Extra checks for Honda Bosch Longitudinal (#662)

* only allow tester present

* ensure radar is not sending messages

* cleanup

* add honda flags

* Constrain tester present message exactly

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* little endian

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
Willem Melching
2021-06-22 15:29:47 +02:00
committed by GitHub
parent 78c24982a9
commit d7b3ae0282
3 changed files with 37 additions and 5 deletions

View File

@@ -143,6 +143,9 @@ class Panda(object):
CLOCK_SOURCE_MODE_FREE_RUNNING = 1
CLOCK_SOURCE_MODE_EXTERNAL_SYNC = 2
FLAG_HONDA_ALT_BRAKE = 1
FLAG_HONDA_BOSCH_LONG = 2
def __init__(self, serial=None, claim=True):
self._serial = serial
self._handle = None