Commit Graph

373 Commits

Author SHA1 Message Date
Shane Smiskol
19d9e7ac6b revert marking some files as unexecutable (#32613)
* this is not a test

* these are not tests!
old-commit-hash: c7b3ece37ef4445bcc18403b6a9e0217db4abd96
2024-06-03 17:19:27 -07:00
Adeeb Shihadeh
86b6103657 test_*.py files are no longer executable (#32610)
* test_*.py files are no longer executable

* cleanup empty lines

* update precommit

* fixme

* enable

* build
old-commit-hash: c59887c8109dd8d33ea2e7169995184fbe38cc3a
2024-06-03 15:48:56 -07:00
Shane Smiskol
b7949ec7ad debug FW fingerprinting: live support (#32585)
* live debug!

* clean up
old-commit-hash: 63f55f4915ebb3763cc6bc9adaba52a77467ff23
2024-05-31 22:28:03 -07:00
Adeeb Shihadeh
cc4f53e6c6 manager: move to system/ (#32538)
* manager: move to system/

* one more
old-commit-hash: accdade4cfe73cdca41f5afa73cf4ad085802930
2024-05-25 12:41:17 -07:00
Adeeb Shihadeh
3358745103 ruff: enable UP
old-commit-hash: b2e4c64cf8fe3256d1e411e8715c29e2eb6f4f00
2024-05-20 17:43:54 -07:00
Adeeb Shihadeh
f18c7e9b9d boardd: add debug flag for injecting SPI errors (#32346)
* pull out ll first

* errors

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2d838f95dabb0229dba01cd585d852e7ca5d47ff
2024-05-07 21:36:04 -07:00
Shane Smiskol
7b293f43c9 print_flags.py: clean up
always ensure current impl of something is the best!

old-commit-hash: 888b38c3db44a53b059565b4f863503dd5bcf6c1
2024-05-07 15:06:23 -07:00
Shane Smiskol
43cac3cf24 PlatformConfig: clean up and print all flags (#32369)
* script to print flags

* don't need

* SAL

* back

* fix
old-commit-hash: f597d63bf6f2b8c8cf9a48934a059ef25ec69cd7
2024-05-07 15:00:02 -07:00
Shane Smiskol
866aa9fbd6 fix uiview (#32290)
* fix uiview

* add DMoji!
old-commit-hash: 97dc444023eafbd1dfa45855edc27fbeb6909be5
2024-04-24 17:05:18 -07:00
Shane Smiskol
83bb14b7f9 debug FW query offline: annotate sendcan/can (#32239)
bet
old-commit-hash: cb8e336cd771f933c41d6ce4ee5bf055dde94846
2024-04-17 15:38:05 -07:00
Shane Smiskol
accfaa29af Volkswagen: fingerprint on VIN chassis code (#32148)
* add function signature and behavior comment

* add test

* move chassis codes to platform config!

* add a shared chassis code test

* function

* test matching

* this commit isn't complete yet

* Revert "this commit isn't complete yet"

This reverts commit ae77d5cd54e1f43d390fb70c4da38a95ac34f8da.

* need to check WMI

* TODO: test WMI

* test wmi

* radar FW sanity check

* fix test

* fixes from merge

fixes from merge

* whoops

* fix static analysis!

* do match_fw_to_car

match_fw_to_car takes vin

* makes sense to keep it one function, and we can return exact or fuzzy!

* clean up

* kinda pointless

* fix more tests

* back to function being only fuzzy

* revert test_fw_fingerprint

* revert test_fw_fingerprint

* simplify

* clean up/fixes

* rename test

* less duplicatey WMI descriptions

* fix

* convert to enum

* I am confident about these WMIs

* these are also good

* we support 5N AUS/NZ and NAR (North American) AX Tiguans

fixes

* Tiguan also Mexico

* only one user for caddy

* got from the test route

* check that the gateway type matches the platform (each platform has 1 or 2 types)

* ~gateway~ -> exact FW match

* remove re

* ensure WMIs are set

* actually no reason to delete

* move comment up to the platform config

* proper wmis typing

* spacing

* flip
old-commit-hash: 6acf763db49944de7a7685b46d50a6c8228a5777
2024-04-12 22:00:03 -07:00
MarinkoMagla
b5ccf4ba02 Encode the actual current date in vw_mqb_config.py (#32093)
old-commit-hash: 9d1b3cc7737ed0621383d09d0a4772bfc867cc02
2024-04-10 15:22:36 -07:00
Dean Lee
88d63b022b debug/check_can_parser_performance: remove overhead of capnp conversion (#32048)
old-commit-hash: 178cc8747c5b365490abaa0fc594e009309c661f
2024-03-29 10:17:39 -07:00
Shane Smiskol
1372dac6ab More fingerprint migration fixes (#32018)
* fix migration

* another
old-commit-hash: 81fae3d8077e7efd29c837a303421595b0e3d906
2024-03-26 16:43:09 -07:00
thenhnn
77d6d1a8f1 PlatformConfig: automatically get platform_str from the enum name (#31868)
* get platform_str from the enum name

* fix tests

* add migration table

* remove impossible todo

* Add link to PR in MIGRATION table

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN

* rename RAM_HD to RAM_HD_5TH_GEN

* rename references to RAM_HD and RAM_1500

* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC

* remove MOCK from fingerprints.py

* change hard-coded car model in test_can_fingerprint.py/test_timing

* migration

* update ref

* space

* prius

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae3888311f92075ba9e0f68626725121
2024-03-19 11:16:02 -07:00
Justin Newberry
4de27acf3d more car info -> car docs (#31885)
old-commit-hash: 0b92f4e9ee59b9de7ef0895d6d35e06027d3891c
2024-03-17 16:53:57 -07:00
Shane Smiskol
38c85b01f0 Fingerprints migration dictionary (#31838)
move migration to op!
old-commit-hash: de7f14dbd7f0f127f5903f10ed610da829eb67e6
2024-03-12 11:50:26 -07:00
Shane Smiskol
4fb29ed3ac run_process_on_route: print log location
old-commit-hash: 1644572be282283c20d90a09a606666366da5e4a
2024-03-06 01:04:31 -08:00
noname314
d2528bcc8b HKG: Add FW versions and Enable Radar Tracks for KOR Sonata DN8 Hybrid 2020 (#31371)
* HKG: Add FW versions for KOR Sonata DN8 Hybrid 2020

* HKG: Enable radar tracks for KOR Sonata DN8 Hybrid 2020

* rm extra

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 95a80fd2cd326c9dba3cbbfc5708ef284aec78c6
2024-03-05 18:08:32 -08:00
Cameron Clough
9bd90112d0 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae4967943ee33a3699a1d89a7a770d95e9
2024-02-24 16:41:23 -08:00
Adeeb Shihadeh
983b280545 debug: improve count_events.py output
old-commit-hash: 2cf831a3048c11613396a2e6ca2222cefda30935
2024-02-20 14:20:53 -08:00
Adeeb Shihadeh
624a515885 debug: print log messages in relative time
old-commit-hash: 528e5558924ab17c6ea14aed340601ae5c6167e4
2024-02-19 22:33:08 -08:00
Shane Smiskol
aeb904d5da test_fw_query_on_routes: get first qlog (#31496)
* fast

* this isn't internal

* see
old-commit-hash: c5f1f4c67663161d335048238e6dd5506bde3555
2024-02-16 17:55:15 -08:00
Adeeb Shihadeh
467f440f29 fix linter
old-commit-hash: 663f7017f2476f3f50b23bfcbaa89947e4e99fbd
2024-02-15 13:35:49 -08:00
Adeeb Shihadeh
8caf2530b3 debug/count_events.py improvements
old-commit-hash: 64851baea8e61d9e83b7935f3b4727a6409d62ce
2024-02-15 13:13:11 -08:00
Justin Newberry
8b5f1235f4 live_logreader to its own file (#31436)
own file
old-commit-hash: d6762c3035fac31cc9582c685c07441d61da0f83
2024-02-13 13:29:52 -08:00
Justin Newberry
fbf5ada69f LogReader: live_logreader helpers (#31416)
live helper
old-commit-hash: 0a92c5bf966530335e804a8f240b10ae982bfcb2
2024-02-12 12:58:25 -08:00
Shane Smiskol
a5a41e38d0 format fingerprints: fix empty FW versions (#31230)
fix
old-commit-hash: c2ee07290721ef0317ef49021f95e71016222bc1
2024-01-30 03:07:00 -08:00
Shane Smiskol
59bf311b0f selfdrive/debug: view iso-tp communication from logs (#31217)
* add

* some clean up

* more clean up

* add

* ltl

* add todo

* rm

* use default_mode

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 50cb6f819d0042d412c08428194a9adeeb42b357
2024-01-29 15:05:09 -08:00
Justin Newberry
b2983772fa test_fw_query_on_routes: use new LogReader (#31134)
a
old-commit-hash: 998eb8cde2c81964c883595ee84eeab4172c99ae
2024-01-23 17:41:43 -08:00
Harald Schäfer
66dbadb029 Delete lat planner (#31089)
* Initial commit

* Fixup

* typo

* ignore lateral plan

* Update cereal

* Remove lateralPlan

* Fix release build

* Fix release build

* give car params

* Add carParams to include_all_types

* Write car param in powerdraw test

* add demo mode

* Update model regf

* proc replay ref commit

* Try

* Move enum definition

* Update cereal

* typo

* Write car param for modeld test

* Update ref

* Update model ref again

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: e6c97c384671b448f307a7ed91416886f2186d80
2024-01-21 12:09:48 -08:00
Shane Smiskol
12903d673f Fix f-string in test_fw_query_on_routes.py
old-commit-hash: 8c544d91392b6039c13b70657a0502ab1f993c76
2024-01-17 14:39:31 -08:00
Justin Newberry
c8cc30112d rename segmentrangereader to logreader (#30981)
* Replace multilogiterator

* replace logreader

* update readme

* fix from_Bytes

* new section

* reset before iter

* selector

* fix internal

* whitespace
old-commit-hash: 3d73512c0702598d27e04039976fe0a91d5952f0
2024-01-12 12:53:50 -08:00
Justin Newberry
dd7921de3f replace more tools with SegmentRangeReader (#30968)
* replace lrfros

* and those ones too
old-commit-hash: 7e9843b5e6d0756bc7c17ef7338c384b7b330df0
2024-01-11 11:46:31 -08:00
Adeeb Shihadeh
9d0f3fd80d rm old debug script
old-commit-hash: ed153141fc733b9ac3d6c1cedfbcd01039c6ff20
2024-01-11 10:56:46 -08:00
Justin Newberry
add14223c1 fix static analysis
old-commit-hash: 0320fb385ad02a096257561c61c8c2b585741c97
2024-01-11 10:54:53 -08:00
Justin Newberry
5087dcc5bb More migration to segmentrangereader (#30959)
* filter log message

* ffr

* gtfs

* gtfs
old-commit-hash: 32dfb3f8f28df60657e8d94c53d219e4606f2375
2024-01-11 10:14:10 -08:00
Adeeb Shihadeh
05abdcdf38 update count_events.py to SegmentRangeReader
old-commit-hash: e9e8f4df38cb54d0f97f2c5aede0a76921807c47
2024-01-10 23:19:16 -08:00
Justin Newberry
19a15e05a9 migrate can_print_changes to segmentrangereader (#30953)
more tools
old-commit-hash: 926793b17ff92c57036b16f343bba263498b7423
2024-01-10 13:02:39 -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
090d3d2e41 move profiling tools to tools/profiling (#30917)
move profiling
old-commit-hash: 03d6233743dbf8913ca48b59dd54f111be2ab595
2024-01-05 16:22:45 -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
f126409b85 PR comments: fix image links
old-commit-hash: 205a78f02dd8a7e3de2334da419f57231153c69a
2024-01-02 14:18:52 -08:00
Adeeb Shihadeh
e25712ddd2 stricter file size limits (#30839)
* move all pics to lfs

* wav and rest of so

* more to lfs

* ignore a few

* push that up
old-commit-hash: 1f9970ba3db588301f97716fa5f1e891e2324f38
2023-12-26 15:22:59 -08:00
Shane Smiskol
83ee5fa80d format fingerprints: simplify sorting (#30826)
* unique + sort + don't modify FW_VERSIONS

* clean up

* not here

* self expl
old-commit-hash: b38c580c2e687401fc819520ea038653873e9996
2023-12-20 15:51:56 -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
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
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
Kacper Rączy
e253626079 run_process_on_route: qlog and fingerprint options (#30688)
Add --qlog and --fingerprint options for run_process_on_route
old-commit-hash: 804973155344f39e839e5d11669db42287f866d6
2023-12-11 15:38:59 -08:00
Shane Smiskol
f5d1c4f371 ruff: check newline (#30668)
* check newline

* nothing catches this
old-commit-hash: 97da129e11e58b07d5d136093827cd1c62311fea
2023-12-09 13:24:18 -08:00