panda/python
Shane Smiskol bb75afc84e
safety: add safety param for gas interceptor (#1735)
* some refactoring still needing to be done here

* 50hz

* set rx checks

* tx msgs

* test

* fix

* forgot to check this since it's static now

* enable_gas_interceptor

* more

* remove int funcs since are common

* generic!

* not generic

* need to set counter now

* set_enable_gas_interceptor not needed

* already reset in safety init

* fix test

* remove gas_interceptor_detected (partly)

* oof need for hjonda too

* edit structs

* more honda (still broken)

* fix typo

* shift these down

* can also make this extensible

* stash

* defining classes is much simpler, maybe in future we will have some sort of wrapper after some more thought

* remove create_interceptor_test now

* add lta interceptor

* clean up print

* clean up

* once

* type hint

* rm

* no interceptor with stock long + good test

* add interceptor counter to honda

* need alt interceptor + set rx checks for honda

* we were never testing button enable with nidec + interceptor!

honda almost all passing

* these fixes make sense

* clean up

* better

* clean up test cov

* clean up

* not needed

* fix tx msgs

* clean up

* cppcheck

* fix

* unnecessary
2023-12-14 15:22:17 -08:00
..
__init__.py safety: add safety param for gas interceptor (#1735) 2023-12-14 15:22:17 -08:00
base.py erase log flash sectors in DFU recovery (#1661) 2023-09-14 12:49:59 -07:00
canhandle.py Move CanHandle to python/ (#1550) 2023-08-03 23:10:16 -07:00
ccp.py Precommit: ensure executable bit is set (#1650) 2023-09-05 15:32:44 -07:00
constants.py jungle HITL tests setup (#1665) 2023-09-30 23:19:06 -07:00
dfu.py erase log flash sectors in DFU recovery (#1661) 2023-09-14 12:49:59 -07:00
isotp.py ruff: enable bugbear checks (#1565) 2023-08-06 14:59:22 -07:00
serial.py Ruff: propgate config from OP (#1579) 2023-08-14 12:52:02 -07:00
spi.py less dependencies (#1676) 2023-10-02 14:24:16 -07:00
uds.py Precommit: ensure executable bit is set (#1650) 2023-09-05 15:32:44 -07:00
usb.py jungle HITL tests setup (#1665) 2023-09-30 23:19:06 -07:00
utils.py SPI: send bootstub status in version request (#1492) 2023-07-03 15:23:12 -07:00