* cleanup is_enumerated, rename comms and init spi
* big comms refactor, building now
* misra fixes
* more fixes
* misra try 3
* cleanup
* this belongs in a separate PR
* remove unneccesary file
* revert llspi changes
* this needs packing
* fix pedal usb
Co-authored-by: Comma Device <device@comma.ai>
* Hyundai: Car Port for 2022 Kona Electric Camera SCC
* add missing flag
* set camera_scc in other safety modes
* Add safety test
* this will be a stock longitudinal port for now
* common cruise check
make this check common
* Fix comment typo
* Camera SCC HKG send CLU11 on bus 2
* Update CLU11 comment
* fix button test when txing
* just add bus 2 to existing addr checks
* actually no, this will never be on bus 2
* CLU11 is always on bus 0
line
* consistent param ordering
* fix test
fix test
* this is fine
* Mistook SCC for CLU, fix
* try to make this a little more clear
* add comment
* fix that
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* RamInit
* just gas and brake changes
* unsigned
* fix tests
* bump openpilot version (TEMP)
* misra
* system
Co-authored-by: Jonathan <jraycec@gmail.com>
* civic 2022
* remove
* maybe not the right way
* Honda Radarless: add tests
* update
* different bus
* other bus
* Revert "other bus"
This reverts commit 691e045f8724e57f135ad8d1683e83acbc16b91f.
* add new HUD message
* add
* different bus
* correct freq
* small updates
* comma
* remove
* remove for now
* missing
* not needed
* make into a safety param and clean up
* this can be reverted
* clean up tests (something's broken)
* fix some errors
* this message doesn't exist on any bus
* this car doesn't have BRAKE_MODULE
* make safety more explicit and fix button safety
* fix some tests
* fix tests
formatting
clean up
* radarless uses SCM_FEEDBACK too
* fix tx msgs, clean up, make test common between bosch tests
* misra
* Fix python linting errors
add comment
* not sure where that came from
* add comments
add comments
* we can guarantee honda_bosch_long is true only if not radarless
* these are the same! 🎉
* use updated route with correct tx msgs
* helper pt bus function
* this is explained above
* use function
* no more blocked messages!
* bump openpilot
* comment
* line too long
* needs system
* send on bus 0
* Camera needs bus 2 for buttons
This reverts commit f90db5d359c1c952de87ea4a2127ae599306e729.
* fix button tests
* bump openpilot
* move this down
* make this explicit
* comments
Co-authored-by: vanillagorillaa <ntmccoy@yahoo.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
* 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 81e642ca987b76d8353003f7f622a1bec5003713.
* 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 81e642ca987b76d8353003f7f622a1bec5003713.
* 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 ed8897dd86b0dbfc80e6b8633f36d80c9bc91052.
* 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