* cleanup external debug serial
* wip: bring up uart7
* more wip
* this does something
* this works
* increase fifo size
* fix misra
* cleanup
* fix misra again
* add SOM debug enum
* reduce SOM buffer on F4
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* rising edge of resume
* fix test
* comment
* todo fix tests
* fix test
* we want to test the transition from btn prev to btn cur, not unpressed to x to y
* range
* Revert "GM: enable on rising edge of resume (#1155)"
This reverts commit 5aa33e1b2f.
* allow set/resume to any other button (except cancel)
* explicit test
* This is a test of both PRs combined
* Revert "This is a test of both PRs combined"
This reverts commit c7fdc3b00c12da64763c371f8cf017faa0273b1d.
* fix test
* 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
* llspi misra fix
* enable SPI on F4 and setup gpio
* duh
* wip: spi comms
* more spi wip
* dynamic sector erasing
* Revert "dynamic sector erasing"
This reverts commit fce1215a2ede45e5e2a0e97ca23a86c1d8bfa94a.
* more sectors to be erased
* debugging
* woah, this works
* cleanup on the panda side
* add sync and checksum checks, and fix recovery on errors
* this seems relatively stable
* add retrying
* this is stabler
* some endianness and endpoint fixes
* builds
* revert that
* add that back
* checksum start
* start splitting up driver
* spi behind flag
* cleanup test
* bump up timeout
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* GM camera: use ECM brake pressed bit
* back to ECMEngineStatus
* length 8
* common gmcamera class
* move to longitudinal base
* Revert "move to longitudinal base"
This reverts commit 67abe4c86b0e5e00432ab0ab80a8db6061f3cc3e.
* fix
* HKG: Car Port for Genesis GV70 2023
* Revert "HKG: Car Port for Genesis GV70 2023"
This reverts commit 01bfda6dff4d8d2de4fd9b485b3f352e3e038000.
* 0x1a0 rx check
* Wrong one oops
* Check 0x1a0 based on param
* no need
* getting a bit messy, clean up soon!
* clean up
* clean up
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* VW MQB: Longitudinal safety
* disregard ACC_13 for now
* abstraction cleanup
* fix long control flag name
* quick hack
* VW MQB: Cleanup message counter handling
* various cleanup
* try without ACC_04
* follow DBC updates
* bump Docker opendbc ref
* additional main switch and cancel handling/testing
* pacify linter
* style
* handle the overlap tests like HKG CANFD
* update replay route
* commonize elements between MQB and PQ
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* proper use of globals/conventions
* make these global
* this is better for now
* better comment on accel boundary scaling
* spelling error
* reset on init
* try bumping openpilot
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Allow brake TX on PT bus
* Initial Panda GM cam harness support
* Complete rewrite / simplification
* Add param for cam harness (default is OBD2)
- Forward btw 0 and 2
- Filter LKAS and optionally ACC from cam
* Add param for stock ACC
- Allows ACC on PT bus when set, not otherwise
- Allows ACC from cam when set, not otherwise
* Add temporary WIP EPS timing workaround in ifdef
* Remove keepalive; regen == braking
* Fix MISRA violations
* EPS timing opt-in by param
* Minor clean up
* remove timing code for readability
fix and formatting
* we only need to send one message if cam harness and stock long
* Simplify params
* Removed dup brake msg
* revised params, split 3-ways
* add test
* clean up a bit, no need to send ACC yet
like this
* split out button enable and pcm enable into seperate tests
* some formatting
some formatting
* GM CAM uses PCM cruise for controls_allowed
* fix gas safety tests
* misra
* fix static analysis
comment
* fix brake pressed
* Add OP VOACC override stock cam
* Add VOACC safetyparam to init.py
* openpilot long safety
* do this in another PR
* add back
* add safety tests
* rename
* struct for safety
* not used
* temporary fault fix
* adjust max gas
* allow PSCMStatus in long mode
* stash
* fix max gas
* fix and clean up tests
* clean up longitudinal tests into a common class
* fix pylint
* subclass
* clean that up
* rm
* blocking
* comment
* comment
* lower case
* brake bus
Co-authored-by: Shane Smiskol <shane@smiskol.com>