* Add subaru long TX and RX messages
* misra c2012 fix
* fix tests
* Reorder signals
* increase max steering torque
* merge fix
* merge fix, remove cnt from test
* Move subaru logitudinal behind flag, add safety test
* update subaru_longitudinal checks
* cleanup
* Add subaru longitudinal checks
* misra fix
* Add subaru rpm and throttle rate limit checks
* temporary disable cruise throttle and cruise rpm checks
* update subaru long test
* update longitudinal safety and add tests
* fix tests
* fix misra
* subaru long signals limits checks
* Add controls_allowed to long tests
* remove unused variables
* Add AEB passthru and tests
* Add bus
* Update AEB logic
* Add GEN2 AEB support
* syntax fix
* Update AEB tests
* Add comment for subaru_aeb
* Do not check cruise_throttle and cruise_rpm limits when gas pressed
* use long limits struct
* Subaru: longitudinal checks only when controls_allowed, use ES_LKAS_State LKAS_Alert for AEB
* fix misra, set controls_allowed for es_brake test
* fix misra
* Fix es_brake violation check
* Add 0x323 to longitudinal test
* Remove stock fcw from aeb signals
* Use GET_BYTES
* Revert "export FW_PATH"
This reverts commit 2a5058d858.
* Revert "cleanup fw filename conventions (#1434)"
This reverts commit 4dd2735e38.
* Revert "Revert "export FW_PATH""
This reverts commit 86e8d321d0.
* Revert "Revert "cleanup fw filename conventions (#1434)""
This reverts commit 5aae6716fa.
* cleaned up safety
* cleanup subaru long safety
* subaru_aeb -> stock_aeb for other platforms
* fix unittests
* pretty
* need to upload this route
* remove AEB stuff for now
* remove unrequired rpm checks
* add comment
* added comment about acceleration and use throttle limit for rpm too
* inactive_throttle_fix
* Update board/safety/safety_subaru.h
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* added comments about long limits
* increase max brake
* revert that
* cleanup
* rename throttle to gas
* add safety replay
* remove todo
* rename throttle to gas
* move subaru stuff out of common test
* PR cleanup
* added min gas
* reduce initial complexity by not intercepting cruisecontrol or brake_status
* create common gas brake safety test
* remove unrelated subaru reference
* also test below min_value
* fix fwd hook test
* better name and hardcoded
* use same as acceleration limits
* revert gm
* remove callable
* also limit rpm
* remove safety replay for now
* revert unrelated changes
* pr cleanup
* remove unused gasbrake safety test
* fix ruff linter
* PR cleanup
* pr cleanup?
* added common brake test and moved generic test to base safety class
* remove duplicate test
* wip
* wip
* rename longitudinalaccelsafety
* revert limits correct test
* fix controls allowed test
* move gm over to long gas brake test
* assert that limits are reasonable
* fix typing
* fix linter again
* fix linter again
* fix linter again
* like to make it clear
* typo
* fix from merge
* clearer names
* dont need thesemore
* subaru: use common test
* fix merge issue
* inactive gas from long limits
* fix tests
* linter
* fix gen2
* fix linter
* also test torque when doing long control
* renamre transmision rpm
* consistent whitespace
* rename declarations too
* rename transmission rpm
* same line
* actually is transmission rpm
---------
Co-authored-by: Martin Lillepuu <martin@mlp.ee>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* try 1
* some fixes
* fix some misra
* first poc working
* more things
* more misra fixes
* fix misra
* add rate limiting
* fix misra
* add some unit tests through libpanda
* add more tests and fix some stuff
* fix misra again
* add startup log hitl test
* list
* don't fail on wrong timestamps
* improvements
* fix tests
* expected logs test?
* not sure why this passed
* oh, it doesn't reset
* only show last few
* guess at expected logs
* needs this
* ugh
* reduce compiler warnings
* adjust expected logs
* this is correct
* is it really 1?
* min max
* reduce spam in SPI test
* some cleanup
* add ACCDATA msg
* ford long safety
* long flag
* split stock and op long tests
* use accel limits for brake
* add comment
* fix acceleration limits
fix acceleration limits
* fix gas limits
* temp bug
* fix min gas, allow -0.5 (engine braking?)
* fix test
* fix tests
* yay it caught this
* pylint
* base name
* typing
* Revert "typing"
This reverts commit 7fb5e304cb.
* temp fix
* rm line
* this is handled by PandaSafetyTest
* revert
* move
---------
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
* start comms hitl tests
* pull that out
* revert that
* more test
* fix warnings
* fix linter
* another simple case
---------
Co-authored-by: Comma Device <device@comma.ai>
* read in mV and make threshold board-dependent
* refactor and add SBU voltages to health
* refactor relay driving
* more refactoring and readout lock
* avoid race condition
* fix misra
* continuous detection
* 1Hz is fine
* another race condition
* use harness detection to trigger bootkick
* update orientation detection test
* more in-depth harness tests
* fix ignition
* fix
* raise threshold
* hitl fan test
* enable cooldown on dos as well
* small cleanup
* get expected RPM from panda class
* fix
* overshoot test
* fix max RPM getting
* fix percentage
* revert cooldown fix
* add cooldown for dos fan as well
* remove feedforward from the fan controller to eliminate overshoot
* update clip
* cleanup
* add that back
---------
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Revert "Revert "IsoTpMessage: check CAN frame length (#1312)""
This reverts commit 09fee3e7ea.
* need to pad for the check to work
* pass rx_offset up from can client
* detect from internal can_client and just use it for the checks
* move
* revert this for another PR
* fix
* HITL tests: nose -> pytest
* run all
* add back partial tests
* big speed up
* fix skipping
* enable all
* that's expected
* clean up after ourselves
* jungle is fixture
* fix
---------
Co-authored-by: Bruce Wayne <batman@comma.ai>
* part 1 of clean up
* make it work and pass
* remove lta stuff
* remove commented lta tests
* more
* move test back to where it was
* rm line
* rename that
* fix that
* start to add LTA
* angle test
* fix tests and add base stock longitudinal class
* formatting
* clean that up
* convention
* add ALLOW_DEBUG
* python: add helper to check if up to date
* current
* handle is always basehandle
* update that
* Update __init__.py
---------
Co-authored-by: Bruce Wayne <batman@workstation-production.internal>
* PandaDFU: SPI support
* get mcu type
* program bootstub
* little cleanup
* more cleanup
* connect by dfu serial
* time to remove that
* none
* fix linter
* little more
* catch
---------
Co-authored-by: Comma Device <device@comma.ai>
* no specific revision for mypy
* bump to ~OP version
* same warnings as openpilot
* ignore
* fix
* rm that
* switch to ignore so mypy lets us know when it's fixed
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* talk to spi bootloader
* flashing bootstub
* reset
* get mcu type
* little more
* pull out low level panda comms
* lint
* program app
---------
Co-authored-by: Comma Device <device@comma.ai>
* no more magic
* bump version
* no need for this
* comment cleanup
* add comms_can_reset tests
* we can't ensure this for compatibility reasons
* add CANPacket_t checksum