Commit Graph

241 Commits

Author SHA1 Message Date
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Shane Smiskol
19810f2dcc Silence a PytestCollectionWarning (#25537)
Silence PytestCollectionWarning: cannot collect test class 'TestRoute' because it has a __new__ constructor (from: test_models.py)
2022-08-23 17:26:29 -07:00
Shane Smiskol
45cfcfa3bb Revert "FPv2: fingerprint on all FW combinations" (#25417)
* Revert "FPv2: fingerprint on all FW combinations (#25204)"

This reverts commit ee081f278b.

* Revert "Revert "FPv2: fingerprint on all FW combinations (#25204)""

This reverts commit bb68b7bc1c28ba8c67f3051b8f99fabc42e85771.

* For breaking, match only with current brand's FW

* Add comment for fuzzy matching

* fingerprint (online) only using FW from that brand

* test_fw_query_on_routes fingerprints like online

* extend match_fw_to_car to work for test_fw_query_on_routes

* Apply suggestions from code review
2022-08-12 23:36:50 -07:00
Shane Smiskol
35338196ac CarInfo: detail sentence exception for Toyota stock longitudinal (#25331)
* Exception for 2022 RAV4

* Exception for all stock long Toyota

Exception for all stock long Toyota

* fix exception

fix

fix

fix
2022-08-01 17:44:22 -07:00
Shane Smiskol
d810d45421 Car docs diff: print detail sentence changes (#25332)
* Detail sentence changes

* fix

* after everything else

* fix static analysis

* nice emoji
2022-08-01 17:07:30 -07:00
Shane Smiskol
3117c069d8 Car docs diff: fix new platform detection (#25252)
* Fix new platform detection

* add some helpful comments and clean up

* slightly better
2022-07-22 13:51:08 -07:00
Shane Smiskol
937013e488 FPv2: log all responses (#25239)
* should be all that's required

* try using rx_addr (should be the same)

* log bus

* bump cereal

* remove debugging

* bump cereal to master

* rm line

* add printing to offline debug script
2022-07-21 16:35:47 -07:00
Shane Smiskol
4212aface7 Car docs diff bot: detect name + year changes (#25224)
* These cars have TSS-P standard

* temp

* debug close matching

* check everything

* clean up

* combine and use a dict

* programmatic

* revert

* clean up match_cars

* comment

* clean up

* clean up

* restore car changes

* test

* Revert "test"

This reverts commit e96f6936816051720db44072768f4df4e2cf5e82.

* we don't need this

* fix footnotes on model column
2022-07-20 12:56:22 -07:00
Shane Smiskol
ee081f278b FPv2: fingerprint on all FW combinations (#25204)
* Try to fingerprint on all possible combinations

* build_fw_dict creates set dict, tries each fw version for addr, subaddr

* clean up

* static analysis

* comment

* fix comment

* revert changes to test_fw_query_on_routes

* remove comment
2022-07-18 17:05:16 -07:00
Shane Smiskol
18f2a50501 disable_ecu.py: remove duplicate file (#25154)
* remove duplicate function

* make executable
2022-07-13 12:43:36 -07:00
Shane Smiskol
3a8f17111c Log VIN response address (#25148)
* log vin rx addr

* clean up
2022-07-13 01:10:56 -07:00
Shane Smiskol
aadaaabd54 compatibility docs: print diff from PR (#24941)
* print docs diff

* revert car changes

* cause a diff

* temp so it works

* text diff

* tier inline is a bit too much

* comments

* fix

* use paths

* fix

* temp

* temp

* diff

* fix

* remove something

* more text diff

* Delete comment if outdated

* Smaller diff

* remove

* no diff

* Don't try to run on fork PRs

* cause some errors

* Fix

* Fix

* Doesn't support env in job if, only step if

* in case file was moved, don't throw error

* See if this does what I think it does

* See if this does what I think it does

* should work

* change something

* revert

* uncomment

* no comment

* this shouldn't fail

* rename to base

* Remove true

* Remove other true
2022-07-12 18:58:46 -07:00
Erich Moraga
94c8717cac Add missing HIGHLANDERH_TSS2 ESP & engine f/w (#25066)
* Add missing HIGHLANDERH_TSS2 ESP & engine f/w

`@pkozlowski#5214` 2022 Highlander Hybrid (Poland)  DongleID/route b2e9858e29db492b|2022-07-07--17-57-24

* Fix test_fw_query_on_routes with older routes

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-07-08 20:03:21 -07:00
Adeeb Shihadeh
1382e28aa0 add pandas and tabulate packages (#25076)
* add pandas and tabulate packages

* remove that
2022-07-07 20:02:07 -07:00
Shane Smiskol
30cb9ac962 FW query debug script: print version brand (#25058)
* test_fw_query_on_routes: print brand

* dynamic paddign
2022-07-07 00:28:21 -07:00
Shane Smiskol
ea241bf3dc FW fingerprinting: log all FW versions (#25042)
* get_fw_versions returns all fw versions with request's brand

* keep track of everything received

* debug

* need to regen or write a hack in build_fw_dict

* to be safe, still replace old responses within same brands (hyundai responds to two queries, can fix later)

to be safe, still replace old responses within same brands (hyundai responds to two queries, can fix later)

* update test_fw_query_on_routes

* clean up

* better name

* slightly cleaner

* fix test_startup unit test

del

* fix imports

* fix test_fw_fingerprint

fix test_fw_fingerprint

fix

* fingerprint on all FW_VERSIONS, not just brands with requests

* support old routes in test_fw_query_on_routes

* regen and update refs

* similar function style to before

* better comment

* space

switch name

* try to exact match first

* useless else

* fix debug script

* simpler dictionary

* bump cereal to master
2022-07-06 19:42:58 -07:00
Adeeb Shihadeh
11b5d51da6 remove mypy ignore from a few scripts 2022-06-30 15:36:40 -07:00
Adeeb Shihadeh
1dffd48a2b count_events improvements 2022-06-23 15:07:34 -07:00
Willem Melching
cd87772e03 live_cpu_and_temp: handle duplicate proc names 2022-06-17 11:52:30 +02:00
Adeeb Shihadeh
0fce5d9045 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
66bc246210 count events: add simple camera debugging 2022-06-10 16:10:06 -07:00
Shane Smiskol
e5b189416d test_models: support for running on any route (#24002)
* run test_models on route

* clean up a bit

clean up a bit

clean up a bit

* remove

remove

* make route positional

* fixes from merge

* not working as I expected

* finally working, easiest way seems to make a new subclass dynamically

* bring back routes

* remove comments

* revert skiptest

* fix subclass name

* car first

* this should be here...

* this should work

* comment

* pytest doesn't support dynamically loading with load_tests

* minimize test_models.py diff, and make new file for running on a route

* fix static analysis

* remove print

* clean up a tiny bit

* rename and make required

* auto detect car fingerprint if not given

* move to location that makes more sense

* Add ci argument for running route from routes.py
2022-06-02 17:23:05 -07:00
Shane Smiskol
e32a735a58 test_fw_query_on_routes: warn on no CarParams (#24655)
add warning for no carparams
2022-05-26 13:59:19 -07:00
Willem Melching
fd63de71f0 remove debug print 2022-05-18 12:29:24 +02:00
Willem Melching
194e5fdf1c make normal logreader more robust (#24577) 2022-05-18 12:21:01 +02:00
Adeeb Shihadeh
0b1f6e3620 show which cameras are malfunctioning (#24558) 2022-05-16 22:01:04 -07:00
Adeeb Shihadeh
b1858df00e improved alert verbosity (#24434)
* improved alert verbosity

* better testing script

* better description

* speed diff

* touch ups

* fix that
2022-05-16 21:19:38 -07:00
Adeeb Shihadeh
28a08ff12e can_printer: add frequency 2022-05-12 17:07:32 -07:00
Adeeb Shihadeh
c8629a4b36 ftrace profiling script 2022-05-12 11:58:56 -07:00
Jason Young
c007c7e681 Improved steering accuracy measurement script (#23583)
* move steering accuracy measurement script

* git rebase is utterly worthless

* fix header width
2022-05-12 15:09:37 +02:00
Dylan Herman
d2eef1955c add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 14:59:00 +02:00
Adeeb Shihadeh
b16e612102 remove eon debug scripts 2022-05-05 19:42:18 -07:00
Keyvan Fatehi
7b394510cb Fix spelling in dump.py help output (#24381) 2022-04-29 20:13:44 -07:00
grekiki
049b163ea0 mypy: enable --warn-unused-ignores (#24287)
* this is the easy part to check

* Not sure what this fixes, 8aaf00c6a4

* bump laika

* works here

* cleanup

* add types-certifi

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-27 14:26:15 -07:00
Adeeb Shihadeh
70987fd9d9 more verbose debug alerts (#24126) 2022-04-22 16:12:54 -07:00
grekiki
b8b15d5cf1 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-04-21 18:27:45 +02:00
Adeeb Shihadeh
5c48e7bc86 remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
2022-04-18 17:55:23 -07:00
Willem Melching
f1ca848ff7 filter_log_message: support errorLogMessage from qlogs 2022-04-15 11:06:28 -07:00
Adeeb Shihadeh
1fa1c44342 agl plugins work nicely on latest profiler 2022-04-14 21:34:14 -07:00
Shane Smiskol
52e5aa8409 uiview: show model (#24210)
* assume not car when using uiview

* write carparams
2022-04-14 16:37:09 -07:00
Adeeb Shihadeh
5b098a1db5 test fw query: add nissan 2022-04-13 22:54:45 -07:00
Adeeb Shihadeh
6013d733a3 add mpld3 python pacakge (#24138)
* add mpld3 python pacakge

* move to dev

* fix for new pylint
2022-04-05 15:00:35 -07:00
Greg Hogan
13080ee952 script to read DTC status 2022-04-04 18:15:44 -07:00
Adeeb Shihadeh
8af20af66d pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
2022-03-24 23:23:29 -07:00
Adeeb Shihadeh
4f8ff154f3 add table support 2022-03-10 17:54:13 -08:00
Adeeb Shihadeh
bcf66c1271 this is pretty nice now 2022-03-10 17:06:13 -08:00
Adeeb Shihadeh
2c0d68120f positional args are nicer 2022-03-10 14:35:44 -08:00
Adeeb Shihadeh
1680f1e251 can_print_changes improvements 2022-03-10 14:32:19 -08:00
Adeeb Shihadeh
ab8c4f0396 real can table column header 2022-03-07 17:21:07 -08:00
Greg Hogan
de178ea79c script to clear DTCs 2022-02-22 16:15:39 -08:00