* found another bug!
* update test
* why does toyota add 1 but not chrysler?!
* test/fix others
* clean up
* more
* global
* clean up
* one function to reset AND update
* without abs and only negative values: this is not caught (since negative error < 1)
* ugly draft
* clean up, tests work
* now only should use this function
* better cmt
* better loc
* constant in python too!
* actually duplicate comment
* Update common.py
* without abs and only negative values: this is not caught (since negative error < 1)
* ugly draft
* this catches it
* draft
* draft
* draft
* works now!
* no blurry tests
* ugh subaru is like this too
* okay some can scaling makes it slightly off (wheel speeds)
* uncommont
* clean up
* test the steering request bit
* not in the angle yet
* not angle yet
* fixes
* draft
* can do this
* adapting the 3 steer req mismatch tests might be too intricate
Revert "can do this"
This reverts commit 775abf877b.
* don't change safety and test the actual behavior
* add comment
* rm
* revert
* For example, now this caught
* "fix"
* Update tests/safety/common.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* draft
* now clean up old comments
* no more special broken ice addr checks
* revert
* fix
* add test for ICE HDA1
* Revert "add test for ICE HDA1"
This reverts commit 76d2b0f066.
* can be separate
* macro for addr check struct
* add checks for alt buttons (fixes race condition)
* add macro for array len
* add comment
* misra
* comments to help separate
* can't put parenthesis around array item
* review suggestions
* no intermediary macros for making the structs (remove misra violation)
* Update board/safety/safety_hyundai_canfd.h
* single lines
* can avoid double checking hda2 since we have addr checks for it now
* wip
* steer bit
* add tolerance
* increase a bit more
* test too
* Had that backwards
* Here too
* review suggestions
* minimal diff
* minimal diff
* add type hints
* spacing
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* update test name
* add tolerance comment
Co-authored-by: Shane Smiskol <shane@smiskol.com>
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* common test for that
* canfd too
* we set this everywhere
* never none
* subclass
* Update tests/safety/common.py
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* Nissan Altima: Specify panda flag for alt bus safety config
* test this safety mode
* test this safety mode
* rm
* nl
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>