Commit Graph

3080 Commits

Author SHA1 Message Date
Shane Smiskol 0c68412407 Toyota: combine more hybrid platforms (#31057)
* Combine

* migrate test models segs

* fix highlander engine

* no change
old-commit-hash: 29536324c1dceceb064c6b3ef6a3e0ef3dd0d578
2024-01-18 18:51:24 -08:00
Shane Smiskol 8200f32b5f FW query timing test: mock inconsistent, timing-based functions (#31048)
* Revert "Revert "FW query timing test: mock get_data function for timeout" (#30696)"

This reverts commit 799cdee1e97bd45946ffb31a03e1fcc1c5da5ac6.

* no thread

* clean up a bit

* no thread!

* combine functions

* re-enable total time check

* back to 5

* minimal diff

* minimal diff
old-commit-hash: f96aa247cc0834296a3f85ea58617ef700de596c
2024-01-17 19:05:31 -08:00
Shane Smiskol dee615ee12 Fingerprints: automatically add missing FW versions from users [bot] (#31027)
Export fingerprints
old-commit-hash: 60a41028924858bfd94db3c49d217f298013ea15
2024-01-16 19:32:21 -08:00
Justin Newberry eeaf219cce test_models: sanitize segment before running test (#31026)
to ensure sanetized routes will work
old-commit-hash: 5c24527683cd4a9d338fe64dd9e98179e903316e
2024-01-16 15:08:44 -08:00
Justin Newberry 4b7edec2b0 LogReader: move opci to tools/lib (#31021)
move opci
old-commit-hash: 7d400112df6692ef026245b03951345cc36dd83e
2024-01-16 10:58:51 -08:00
Shane Smiskol e3bb372013 Revert "docs: include dashcam" (#31017)
old-commit-hash: 8e9be48b7b02e679868b50aab34cd38cb48b3905
2024-01-15 23:49:07 -08:00
Justin Newberry 35bc540ee5 Subaru: ensure consistent firmware version size (#31001)
* fix copying mistakes

* fix SA

* remove print

* ensure size is same

* fix SA

* not in database
old-commit-hash: 94cd4c90464615d763af43904fd3902730b13515
2024-01-15 12:52:15 -08:00
Shane Smiskol 4bcff9c97b docs: include dashcam (#31004)
include dashcam
old-commit-hash: f256225f294f5312ed425c7022300787c60f1d66
2024-01-15 04:58:43 -08:00
Justin Newberry 7433b1016f Subaru: remove incorrect fingerprints from other brands queries (#30984)
s
old-commit-hash: 4c6f7da4049869d3dd1fe66a13f1aba7362c9b8c
2024-01-14 19:55:15 -08:00
Shane Smiskol 4c94f5ac5d Fingerprints: automatically add missing FW versions from users [bot] (#30988)
Export fingerprints
old-commit-hash: dafde02da36cc13b6b9d3f9bd56aecdf2ddf93f7
2024-01-12 20:58:13 -08:00
Jason Young 4473f7ea65 VW MQB: Add FW for 2018 Volkswagen Tiguan (#30951)
old-commit-hash: ba792d576a49a0899b88a753fa1c52956bedf9e6
2024-01-11 23:16:04 -08:00
Justin Newberry 655de4bffc Subaru: fix disable eyesight enum (#30974)
value
old-commit-hash: e7657d896f3cb7ec5044d4ac4c48a714c8e4c512
2024-01-11 17:15:37 -08:00
Shane Smiskol 502322ed11 Fingerprints: add missing FW versions from users (#30972)
Export fingerprints
old-commit-hash: 68bcb6b8da0db090c37d6d9a633d7ffdd58e24fe
2024-01-11 15:57:04 -08:00
Shane Smiskol ebc7d0caeb Honda: remove hud ECU from CR-V Hybrid (#30965)
remove almost absent ECU
old-commit-hash: 3c74a61c979cb318768699dc8d4fe39c64779622
2024-01-11 00:39:26 -08:00
Jason Young 38d6ed173d VW MQB: EA driver inactivity workaround (#24711)
* VW MQB: Emergency Assist mitigation

* elide superfluous newline

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 61ebb5b668be32f0fc5547bf3b70ee55f7cbbecd
2024-01-09 19:24:46 -08:00
Shane Smiskol 4fde39f9ea Toyota: add 2024 RAV4 (#30909)
* add 2024 RAV4 ICE FP

* docs

* also try vin bus 0 toyota

* it works!
old-commit-hash: ca57d329e2e835c9dfd8545bc5780c0e2afd95fe
2024-01-09 00:48:48 -08:00
Adeeb Shihadeh 422c8407f4 GM: remove GMLAN dash msg (#30547)
* remove GMLAN

* update refs
old-commit-hash: af137bac5869a6ec2227d9183993a1ebcedd4ad4
2024-01-08 19:49:22 -08:00
Shane Smiskol 2b6bc47a6a Fingerprints: add missing FW versions from users (#30945)
Export FW versions
old-commit-hash: 1d370a0880902099bbb7c2b6ff126ab61ae149bf
2024-01-08 19:46:27 -08:00
Jason Young 263ec242dc VW MQB: Improved longitudinal starting and stopping (#30874)
* VW MQB: Improved stopping and starting

* get longcontrol to take off sooner

* oops

* use the carParam instead of the constant

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 88e445ef154e6da795b653cbefd6391eef731d8e
2024-01-08 19:40:41 -08:00
Shane Smiskol fc23ab6c8d Fix string indentation (#30943)
* fix bad spacing

* more

* these aren't important
old-commit-hash: d689a4e6537b6b48e0ad9948ac919065317258c1
2024-01-08 15:36:43 -08:00
Justin Newberry 040223e69f move car porting tools to tools/car_porting (#30916)
just this for now
old-commit-hash: e86d74b347f60a3e575d45b4c99d94d23c8c7d84
2024-01-05 11:53:03 -08:00
Shane Smiskol 3618a2a007 Car docs: utilize post init (#30912)
move these to earlier post_init
old-commit-hash: 002ab5637b7d8dc22ad2197f4d98544d0518b941
2024-01-04 22:16:39 -08:00
Justin Newberry 1fe1523fc2 add read_seglist helper (#30908)
add helper
old-commit-hash: 1148c65d232fdfe7aa46b80c078721d78876da4a
2024-01-04 17:52:07 -08:00
Shane Smiskol ccb0b14642 Fingerprints: add missing FW versions from users (#30906)
Export fingerprints from Fingerprint stage
old-commit-hash: 63f0d775bc938ba38dbc7f42957fc2a80094686c
2024-01-04 15:54:50 -08:00
Shane Smiskol 9330fc6a60 Revert "Fingerprints: add missing FW versions from users"
This reverts commit 529afe7adbdf685eba4b7b77031ef13ac3e721d6.

Meant for another branch.

old-commit-hash: 43b0b0f022b8e409b399110f95c3ba34480b5235
2024-01-04 00:51:38 -08:00
Shane Smiskol 021b79cf56 Fingerprints: add missing FW versions from users
old-commit-hash: e85e401d073c3f64b882d52757d9653f22adfba2
2024-01-04 00:50:30 -08:00
Adeeb Shihadeh 9e48201d22 Revert "Fingerprint for '21 Explorer ST (#30877)"
This reverts commit 64eb7a39c4c8a8afe89e87de8f02442200ff30d1.

old-commit-hash: fe4090584923b559ef95131319a0ef77cfa1938a
2024-01-03 20:07:58 -08:00
duetschlandftw 450aa1d1f9 Fingerprint for '21 Explorer ST (#30877)
* carparams gave me a new firmware entry for "shiftByWire" from 'ford', so i added it here, as well as a new fw value under ecs.engine

* Update selfdrive/car/ford/fingerprints.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: ff0fed07ed92c7e4b2f3d348a769058652351c87
2024-01-03 19:43:59 -08:00
DevTekVE b343b9820e [HKG-CAN] Consider FCW alerts from SCC (#30885)
* FCW is triggered differently when SCC is active

* Update selfdrive/car/hyundai/carstate.py

* Update selfdrive/car/hyundai/carstate.py

* cmt

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 28cf3155e21da663040040076f9fb9e746fd6834
2024-01-03 19:34:13 -08:00
Shane Smiskol dac5a594aa test_models: fallback to public route when route isn't uploaded to CI bucket (#30893)
* not sure why this is a test

* Revert "not sure why this is a test"

This reverts commit c13e16311eb882df65d216bbd59acb5702e985e6.

* no ruff for this pattern :(

* this is always caught

* should fail

* simpler

* Revert "should fail"

This reverts commit 21bd15275c46cd42fd19b058245334bae83cce77.

* fix

* cleanup this

* better comment

* better

* this can be more localized

* better names

* better names

* should fail

* Revert "should fail"

This reverts commit c58495e8b3417ce351df8048752ec60177827cb3.

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 7f398e1cf9b0fd83bb1238b9b347a21d8868ee0f
2024-01-03 11:54:22 -08:00
Shane Smiskol ff08885476 Fingerprints: add missing FW versions from users (#30837)
Export Toyota fingerprints from last 2 weeks, 0.9.5-release
old-commit-hash: 633fef5a96d5c8db55a1e6276df6d7f060c4ccd7
2024-01-02 21:48:31 -08:00
Shane Smiskol 52150bbb02 Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)" (#30896)
* fails if no skip function

* Revert "fails if no skip function"

This reverts commit ff3d697d38dce56057c83f06033a689f2301a29d.

* Revert "test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)"

This reverts commit f60e70d4729efe7db36888a0a750a0e4706cc943.
old-commit-hash: 8c4930d2d300a439aaf7dd9ca4324271cc0c7b52
2024-01-02 17:22:06 -08:00
Shane Smiskol 47b3a22daf Toyota: add 2024 RAV4 Hybrid (Canada-built) (#30887)
* add 2024 RAV4

* bump reeleases

* fix star link in PR comments

* ?

* consistent
old-commit-hash: de4bc31ba6f9972b6d411a36dc5d32474a3d0287
2024-01-02 17:14:51 -08:00
Shane Smiskol 92263907dc HKG: fix 2021 Niro Hybrid harness (#30895)
* originally was Hyundai F in the database, but one user on Discord (US) and one in support (SK) both needed hyundai D

* bump
old-commit-hash: 543cd4460acd24a7bfc5bd8f6b4f2d8b2242da12
2024-01-02 17:10:23 -08:00
Justin Newberry 0312d3d0f3 Subaru: longitudinal cleanup and dash status fixes (#30868)
old-commit-hash: a58baf48fe9e951f5954fadbc2c4b2b118633493
2023-12-29 23:47:55 -05:00
Justin Newberry dd9118311b bump submodules (#30866)
old-commit-hash: 9520153b6a3e2e762dee29cdb0ca2ed9f867e2cb
2023-12-29 19:39:17 -05:00
Shane Smiskol 0c194949ea Fingerprints: add missing FW versions from users (#30833)
Export fingerprints from Fingerprint stage
old-commit-hash: 5e6290c4a24e31428b1c1d3d4580128b77e3efeb
2023-12-21 03:55:15 -08:00
Justin Newberry 3b65f2075e format_fingerprints: automatically sort fw fingerprints (#30819)
* Auto sort fingerprints

* add comment
old-commit-hash: 3d8c78d6b3a74196b09576f97ac02b4baa67dfe0
2023-12-20 11:54:31 -08:00
Justin Newberry bf8e8f8338 test_models: fallback to public route when route isn't uploaded to CI bucket (#30794)
* wip

* add public comment

* fix that

* wip

* retrigger
old-commit-hash: 05dc0b51e6597fb83aed14f5a390fa4254751c98
2023-12-20 11:29:19 -08:00
Justin Newberry 611e3fe8e7 add script to automatically format fingerprints file (#30792)
* Add script

* fix script

* fix script

* fix for subaddr

* run the script

* old style can fingerprints

* cleanup

* sort imports, make executable, fix path

* newline w/o newline

* match og can formatting

* match og formatting

* generate template once

* standard name

* less nested

* can fingerprints comments

* fix spacing

* no need for PLATFORM_TO_ENUM_NAME!

* prep for PRs

* comments for all, add honda comments

* Auto-generated fingerprint PR from fuzzy fingerprinting cars

* Revert "Auto-generated fingerprint PR from fuzzy fingerprinting cars"

This reverts commit 97bc9e3bdb9d819dcbe684ceba92ea702d40eaf0.

* even closer to original

* readd this comment

* and run script

* add to precommit

* add comments

* add comments

* add to release

* use for auto fingerprint

* disable precommit for now

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3713e4d5eaed783738ea8ecdbd3b7e6abaa974c0
2023-12-20 11:18:29 -08:00
Shane Smiskol a918ee9b72 fingerprints: fix formatting (#30814)
formatting
old-commit-hash: adb04b5dc52a8063bf16a91a159fdbb82c83d514
2023-12-19 23:47:34 -08:00
Shane Smiskol e9e408118b interfaces: fix get_interface_attr typing (#30813)
* fix

* Update selfdrive/car/interfaces.py
old-commit-hash: 1a165c658035233b4fca774d886c7ecb97a43364
2023-12-19 23:35:31 -08:00
Shane Smiskol b7811099e4 fix bad CAN fingerprint type (#30809)
fix bad wrong type
old-commit-hash: 426072bd8717753afec89c4291f329bdedbc31b8
2023-12-19 20:30:42 -08:00
Justin Newberry 1314156365 cleanup fingerprinting typing (#30801)
* wip

* undo + add can fingerprints

* add can fingerpints

* those should go there
old-commit-hash: adca970ca9dc574f740e8523536bf8d4b0d7bfa8
2023-12-19 09:41:09 -08:00
Shane Smiskol f65ccca8e0 test_models: fuzz test panda and CarState (#30443)
* pre-hypothesis

* some hypothesis junk

* this kinda works but is really slow due to counter check

* choose addrs from fingerprint

* stash

* honda nidec brake pressed mismatches fixed

* bump panda

* stash

* tesla: use DI_torque2 (panda msg)

* run

* run

* ah this honda mismatch too

* no more multi can msgs

* clean up, remove old file

* add todo

* prob can remove urandom

* stash, huge examples

* fix pq standstill mismatch

* yuge

* yup there's a leak somewhere

* try to find leak

* skip dashcam (pq and tesla)

* PR comments

* bump

* draft stash

* fix alt brake hondas

* bump

* bump

* bump

* some clean up

* minor clean up

* more clean up

* stash

* fix honda bug

* more

* 100 examples

* revert tesla

* no memory leak any more?

* bring back tests with skips

* parameterize max_examples

* skip interceptor

* is jenkins on my branch?

* ooh that's fast

* 50 is not bad for GH CI

* 300 might be better with rest of test_models

* no more detection

* bump

* need CS_prev to catch bugs where openpilot changes and panda doesn't (eg. not setting interceptor safety mode)

* need to simplify all this

* need a warm up first, since some signals are 1 by default (toyota's gas_released!=1)

* changes

* set honda safety param

* set toyota safety param

* bump panda

* clean up honda

* rm interceptor

* thought interleaving addrs might help, but we can fine tune later

* Revert "thought interleaving addrs might help, but we can fine tune later"

This reverts commit 153301384b48c9f33f9e2af3c224241eaeec41c1.

* get size from dict

* what

* add nocapture marker

* clean up

* try to raise logging level

* need to run last as pytest_runtest_call, since it starts capturing

* get capman conditionally

* mark

* type fingerprint

* should use gen_empty_fingerprint

* no longer needed

* draft

* no longer need gc

* clean that up

* test everything!

* more clean up

* more

* no point

* fix that

* fix errors

* bump

* nice even 300 examples for 300 segs

* final bump :fingers_crossed:

* better import order

* remove debugging prints

* warm up kinda works

* Revert "warm up kinda works"

This reverts commit 7fc77b07d592edb13eadca77deb49540954a7d69.

* random seed

* revert

* strat

strat

* add expl comment

* cmt

* check controls allowed

* Revert "check controls allowed"

This reverts commit e82a0e5396810dd4670e6847aa555194a709e10f.

* not unittests

* run tests!

* run tests 2!

* run tests 3!

* seed unused

* revert

* add shrink phase, and remove health check suppression

* hello

* oncemore

* Update selfdrive/car/tests/test_models.py
old-commit-hash: 5052b55c440f3a778f9db9c854fa385077dd7ab9
2023-12-19 03:18:54 -06:00
Justin Newberry ff12759e80 Move all fingerprints to fingerprints.py (#30790)
* move fingerpints

* fix circular imports

* fix circular imports

* fix auto fingerprint

* fix those tests

* and controlsd

* add labeler rule

* no defaultdict
old-commit-hash: 28eed156e0a62ab993de6d534bb102a6ede222f7
2023-12-18 14:04:27 -08:00
Adeeb Shihadeh 63b374bd89 Cython KF1D to Python (#30773)
* Cython KF1D to Python

* cleanup

* set x

* less nesting

* fix release

* Revert "fix release"

This reverts commit 97e5d0f80405660efb861c7b9df7fbfd5dda5dd9.
old-commit-hash: 1421551297396cf16e3d041506f156c1626ded50
2023-12-16 23:45:28 -08:00
Adeeb Shihadeh ab31860658 remove PyYAML package (#30770)
* remove PyYAML package

* remove those

* add comments back

* fix lock

* fix those
old-commit-hash: bc54ed794b2cd9dcb9522cdeb241ad78ac30d998
2023-12-16 20:48:57 -08:00
Shane Smiskol 3c7fcbb839 test_models: use gen_empty_fingerprint (#30752)
use gen_empty_fingerprint
old-commit-hash: d9a8846d58af2a3a9a598fcf9fb1acf89e4b54f6
2023-12-15 17:16:19 -08:00
Shane Smiskol 19572df478 Revert "test_models: check consitency between panda and openpilot for velocity (#30750)" (#30753)
This reverts commit 19c040150dcec8bfa4b70aa870ae5564739c278a.
old-commit-hash: 123ef46af3694afc30b4ec28ce8f995d9fa92cd1
2023-12-15 17:16:01 -08:00