* sunnypilot: MADS - Base + HKG
* fix upstream conflicts
* Don't miss this
* Missed it
* Don't initiate lane change when braking
* HKG: better cluster state
* HKG: only blink when disengaging lateral
* HKG: Optima's icons
* HKG: update vars and blink for CAN-FD
* HKG: don't get stuck
* obsolete
* remove this for now
* border color should sync
* change border color
* simplify things
* HKG: update events
* Honda: MADS
* HKG: cleanup
* Toyota: MADS
* Revert "remove this for now"
This reverts commit 76ddd435084e051ced9a343372900ced96180989.
* Revert "HKG: cleanup"
This reverts commit e1ab96c6f7634508b5f3820868d22f4694361622.
* Toyota: use the working one
* same colors
* block resume press if no previous set speed
* HKG: handle events better
* Honda: handle events better
* Toyota: handle events better
* Volkswagen MQB & PQ: MADS
* Subaru: MADS
* FCA: MADS
* add another argument for per port specifics
* GM: MADS
* Toyota: missed this
* Mazda: MADS
* Nissan: MADS
* have to use this
* pass events to the next
* move it around
* move some stuff around
* cleanup
* simplify and check if cruise is initialized with non PCM
* don't think we need this anymore
* Volkswagen: These 2 buttons don't get used
* check resume available differently
* check better
* simplify
* Mazda: missed one update check
* HKG: Move carstate logic to interface
* check from ret instead
* cruise state enabled spam bug
* check pcm
* set it earlier
* own cruise initialize check
* fixup! own cruise initialize check
* more inclusive
* HKG: redundant
* Honda: Move carstate logic to interface
* only check cruise speed when not PCM
* Toyota: Move carstate logic to interface
* fixup! HKG: Move carstate logic to interface
* fixup! Honda: Move carstate logic to interface
* fixup! Honda: Move carstate logic to interface
* Volkswagen: Move carstate logic to interface
* check if cruise has ever been enabled in state machine
* already exists
* just one more
* do not allow steering in certain situations
* Subaru: Move carstate logic to interface
* FCA: Move carstate logic to interface
* GM: Move carstate logic to interface
* Mazda: Move carstate logic to interface
* Nissan: Move carstate logic to interface
* HKG: move init
* declare at once
* cleanup variables
* prevent stuck engaged
* initialize for all cars
* slimmer
* no entry for brake press engage
* Revert "no entry for brake press engage"
This reverts commit 9e6e1ca5000c213017091765a0e50d2d794cebe9.
* Toyota: Change the logic
* Nissan: Cleanup carstate
* HKG: only disengage when cruise intially not available
* Revert "HKG: only disengage when cruise intially not available"
This reverts commit 123cce1818ea7285cbd433524c4f0e80e7c99cb4.
* allow press anytime
* cancel cruise when control wants to cancel
* remove some stuff
* wrong one
* can't do that
* would this fix it?
* wip
* make separate score func
* n4ot g
* clean up
* remove
* simplify
* b2b
* more than 0
* this is fine
* led
* balance costs
* clean up
* no if tici
* box view
* new baselines
* Revert "new baselines"
This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.
* Revert "box view"
This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.
* maximize dcg
Co-authored-by: Comma Dev1ce <device@comma.ai>
* wip
* make separate score func
* n4ot g
* clean up
* remove
* simplify
* b2b
* balance costs
* clean up
* no if tici
* box view
* new baselines
* Revert "new baselines"
This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.
* Revert "box view"
This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.
Co-authored-by: Comma Device <device@comma.ai>
* add mypy config matching precommit
* use local mypy, add files to config
* excludes too
* fix config
* pylint is sad now... did it get updated?
* fix typing hints
* ignore
* this should be a regexp
* mypy doesn't like Deque despite inheriting MutableSequence
* more excludes
* Revert "pylint is sad now... did it get updated?"
This reverts commit 250c632f18ecb3d33ffb931e15425f9314a0964b.
* ev has different scales
* fix initial gradient
* fix highlight weirdness
* try smooth set of gains
* delay
* add gain idx
* oops
* set different min dc
Co-authored-by: Comma Device <device@comma.ai>
* change LSM6DS3TR(-c) gyroscope and accelerometer to interrupt
* add pthread for linking
* add interrupt collector thread to fetch in parallel to non interrupt based sensors
* change get_event interface to return true on successful read
* fetch sensor interrupts via gpiochip
* avoid sending empty messages (interrupt only, non interupt magn can leave a gap in the orphan block)
* add verifier script to sensor interrupts (sensor_data_to_hist.py)
* add/update sensord testsweet (test_sensord.py)
* add poll timed out check
* unexport interrupt gpio pins
* gpiochip on both edges, but skip falling edge if rising edge is detected, this is handled in the sensor as the status flag is checked if new data is availble
* add test to sensord to verify 100Hz interrupt frequency
* add sensor shutdown/low power mode functionality on sensord exit
* relax test, will be readded in the splitup PR
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>