* rename to torque_cmd_msg
* Move most of the driver torque tests into common.DriverTorqueSteeringSafetyTest
* fix static analysis so far
* HDA2 just works
* TODO: Subaru
* Subaru
* Move Mazda steering constants into class
* rm line
* split into classes
* move test_against_torque_driver into common driver torque tests
* rename to match all other tests
* fix linter
* revert changes
* block lkas
* taco time
* local changes
* start
* tx checks
* counter + vehicle moving
* support big can fd
* check crc
* add torque to rx checks
* tests
* little more
* little more
* get some misra coverage
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* check steer_req
* think this is clearer on first glance
* add test
* also test recovery
* Update tests/safety/test_toyota.py
* Update tests/safety/test_toyota.py
* move
* safety for non-longitudinal
* flip around param for easily replaying old logs on new panda
* fix misra: a function parameter should not be modified
* safety
* the toyota tests all share common messages
* fixup tests
* update comment
* same as tesla test
* check if subset
* update comments
update comments
* add safety for hyundai stock long button-only enable
* add full logic, use 4 frames of button samples
* comment above and in openpilot is enough explanation
* make misra happy
* add tests
* add comments and better variable names
* only check button values on rising edge of PCM ACC enable
* common function
* Revert "common function"
This reverts commit 81e642ca98.
* simplify: keep track of last interaction instead
* revert changes to sample_t
* make unsigned
* clip to max and use uint8
* start at 4
* consistent
* apply suggestions
* Update board/safety/safety_hyundai.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* unify function
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add safety for hyundai stock long button-only enable
* add full logic, use 4 frames of button samples
* comment above and in openpilot is enough explanation
* make misra happy
* add tests
* add comments and better variable names
* only check button values on rising edge of PCM ACC enable
* common function
* Revert "common function"
This reverts commit 81e642ca98.
* simplify: keep track of last interaction instead
* revert changes to sample_t
* make unsigned
* clip to max and use uint8
* start at 4
* consistent
* apply suggestions
* Update board/safety/safety_hyundai.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* unify function
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* make safety_param unsigned
* final one
* uint32_t
* change flags as well
* Revert "change flags as well"
This reverts commit ed8897dd86.
* unsigned
* update health packet version
update health packet version
* update struct H->I
* bump health version
* actually used
* update panda interceptor gains
* update test threshold
* update threshold
* don't divide second track by 2 (?)
* fix test
* we don't divide by 2 anymore
* better wording
* remove value
* bump PR
* no 1e-5
* allow apply bit when gas is pressed
* remove unused apply
* allow apply bit in pre-enabled state
* use GET_BIT
* surely misra won't be mad
* compare to a value
* forgot to make this unsigned too
* switch over to PWM based camera signals
* update comment
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* test implemented for Toyota
* fix Toyota interceptor
* use hasattr
* do Honda (still need Nidec ACC_HUD safety)
* add longitudinal_allowed to ACC_HUD (Nidec w/ no pedal
* rx not needed
* add base test for longitudinal
* update name
* stash
* do GM
* use gas_pressed_prev
* do tesla safety
* add full tests
* add get_longitudinal_allowed for simpler tests
* remove unnecessary tests and revert honda/hyundai
* fix honda after revert
* make sure releasing gas allows longitudinal again
* clean up
* clean up
* Just check longitudinal allowed
* don't need to reset detection
* use prev and add brake detection
* only on gas
* make sure we don't change current_controls_allowed braking behavior
* clean up tests
* use current_controls_allowed for honda & GM
* this is pretty much tested in common
* fix up tests and move common tests
* revert
* better place
* add for body
* safety mode for body
* move to 27
* dmm...
* misra..
* add faw to safety list
* missing safety modes in python lib
* dmm
* change address to 250
* add 0x1 addr for can flasehr
* whitespace
* _brake_msg and _gas_msg were confusing
* use class inheritance to define test specific safety variables
* Revert "use class inheritance to define test specific safety variables"
This reverts commit 734efd96f3.
* common function to set up each test
fix honda
* Revert "common function to set up each test"
This reverts commit fe4e71b3c6.
* rename related function
* formatting
* consistent name
* revert this change
* no long actuation if controls not allowed
* comment (bump)
* don't compare floats
* tesla longitudinal test
* clean up
* forgot all
* update constant
* fix