Commit Graph

10845 Commits

Author SHA1 Message Date
Adeeb Shihadeh
b68cfbb332 cleanup old sm pm args (#30241)
* cleanup sm pm

* fix controlsd

* fix
2023-10-13 23:27:04 -07:00
Vivek Aithal
9e24a11f17 torqued: Refactor to share code with magd (#30238)
* refactor to extract common functions and classes out

* Add helpers.py to release files

* refactor
2023-10-13 17:24:04 -07:00
Dean Lee
818d29818f cabana: reduce minimum size (#30223)
reduce minimumsize
2023-10-12 11:09:32 -07:00
Dean Lee
47813ae8b5 cabana: fix crash when switching dbc file (#30227)
fix crash when switching dbc file
2023-10-12 11:09:17 -07:00
Shane Smiskol
e030a701fa Kia: add missing K5 2024 FW (#30220)
* Add missing K5 FW

All it took was the extra few months for the camera FW date

* update docs
2023-10-10 15:17:09 -07:00
Adeeb Shihadeh
ac21dcbdcb Update Python packages and pre-commit hooks (#30215)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-10-10 10:37:54 -07:00
Christian B. G. Ta
66d5914175 Hyundai: add missing FW versions for Kona EV 2022 (#30200)
* Update values.py - Hyundai Kona 2022 fingerprints

Car was new in summer 2023 in EU/Norway

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-09 16:58:45 -07:00
Jason Young
8e247e063e VW MQB: Add FW for 2023 Volkswagen California (#30207) 2023-10-08 15:21:34 -07:00
Shane Smiskol
c14b765623 Toyota: parse FW versions for more reliable fuzzy fingerprinting (#28641)
* add test from hyundai

* found tss2

* abs and engine are very rarely shared (avalonh tss2 and camryh tss2 is one example)

* some bad regex

* some pattern work

* some work

* .

* some conceptual clean up

* fix short fw pattern

* hyundai test

* clean up values.py a bit

* print platform codes

* hyundai fuzzy

* pass test

* move around constants

* clean up

* clean up hyundai

* fix print

* more clean up, fix med pattern

* add documentation

* use major version

* some clean up from merge

* some clean up from merge 2

* spot check

* clean up imports

* missing FW_QUERY_CONFIG

* short version: always prefixed with 3, get real platform code

* limit to max chunks seen (3)

* rm engine

* fix that

* get_platform_codes returns dict

* tests

* comments

* fix test

* enable a test

* fix script

* print ecu parts

* enable old test

* clean up some tests

* clean up

* more clean up

* static

* this is all it took?

* add note

* ...

* use less ECUs

* bump

* todo

* clean up fuzzy fp function

* make deterministic in a feat of engineering

* add temp exclude_fw argument for testing

* fix logic

* add blacklist

* add platform and its matches

* fix for nb

* remove fw exclusion

* Revert "remove fw exclusion"

This reverts commit 0e3b47c5a30ebdb647caf5d792b10f517cbdf48f.

* clean up

* Revert "Revert "remove fw exclusion""

This reverts commit 42c55f006a4a0596ff404c67db1a88eb64b45d9e.

* these two have similar chassis according to wikipedia (but mass is relatively different)

* Revert "Revert "Revert "remove fw exclusion"""

This reverts commit 0f874233422d2007cc87bfb1c714cabed6e80049.

* Revert "Revert "Revert "Revert "remove fw exclusion""""

This reverts commit 2411967f5a2b0712773d614ee589321cca4d52a5.

* oof

* shadows global variable

* rm comment
2023-10-07 18:09:52 -07:00
Adeeb Shihadeh
1a74ed91ee hyundai: add comment with link to PR for corner radars 2023-10-07 16:23:47 -07:00
DevTekVE
9ce273765c FIX mac m1 compilation - Add sstream library to onroad.cc (#30205)
Add sstream library to onroad.cc

Needed to solve a bug when compiling on mac m1.

Co-authored-by: Miguel Fernandez <miguel.fernandez@cimpress.com>
2023-10-07 15:55:12 -07:00
fpjuojyv810059
62e812f4e1 Lexus: add missing FW for Lexus ES 2024 (#30198)
* Lexus: add missing FW for Lexus ES 2024

* already here

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-07 07:12:12 -07:00
Hiroshi Nomiyama
a8c37ba29b Lexus: add 2023 RX hybrid firmware (#30193)
* Update values.py

* Update values.py

* add FW (camera already here!)

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-07 07:06:52 -07:00
Jason Young
8a10d1f5ae VW MQB: Add FW for 2021 Audi Q3 (#30182) 2023-10-07 07:01:24 -07:00
Shane Smiskol
3cd0e392eb Toyota: combine similar TSS2 hybrid platforms (#30194)
* combine corolla

* corolla tss2: remove duplicates

* remove gas pedal hybrid signal

* combine RX TSS2

* we only split for static DSU msgs, or sng differences

* Combine NX TSS2

* remove nb

* Combine ES TSS2

* Combine RAV4 TSS2 (torque params for each EPS variant are similar enough, and eps and fwdcamera all are identical)

* Merge TSS-P Lexus NX

* TSS-P Lexus NX: remove duplicates

* TSS-P C-HR: merge

* TSS-P C-HR: remove duplicates

* fix routes

* re-did everything: no diff 🎉

* update test models seg list

* Update ref_commit
2023-10-07 01:26:49 -07:00
Justin Newberry
7fd52cd0d1 Codecov: ignore tests files (#30202)
codecov ignore test
2023-10-06 20:13:52 -07:00
Dean Lee
d02558c400 cabana: check if index is valid (#30204) 2023-10-06 20:13:08 -07:00
Adeeb Shihadeh
1abea5a259 don't upload crash logs from forks (#30203)
* don't upload crash logs from forks

* fix
2023-10-06 15:30:43 -07:00
Justin Newberry
8b2b72499f CI: run jenkins as batman (#30184)
* I'm batman

* chown batman

* sudo

* add batman to sudo group

* try without cleanup

* Revert "try without cleanup"

This reverts commit f59554f2f373417f2c59fd250463eca2fda4d49e.

* comment
2023-10-06 11:12:41 -07:00
Shane Smiskol
9350b7e179 Car tests: fix serialize error on fail (#30185)
* Update test_toyota.py

* fix others

* fix
2023-10-06 00:07:37 -07:00
Greg Hogan
6f98a987af vidindex improvements (#30196)
* vidindex improvements

* fix spelling
2023-10-05 22:48:50 -07:00
Justin Newberry
2884fd6e3d Simulator: set params enabled (#30195)
set params enabled
2023-10-05 22:19:38 -07:00
Greg Hogan
86b90a8ba2 filereader cleanup (#30191)
* filereader cleanup

* make name return url

* remove unused imports
2023-10-05 19:45:46 -07:00
Greg Hogan
f8e488f881 convert vidindex to python (#30176)
* convert vidindex to python

* fix whitespace

* corrupt file option

* fix up typings

* fix return type

* update framereader

* change length delimiter to uint32 value

* change length to uint32 value

* move url_file changes to separate PR

* cleanup caching

* revert whitespace change

* fix frame type param type
2023-10-05 18:40:24 -07:00
Justin Newberry
7f945f10c6 Subaru: Outback 2023 fingerprint (#30190)
fingerprint
2023-10-05 17:15:26 -07:00
Justin Newberry
d731c85b2e Docker: add batman to sudo group (#30188)
add batman to sudo group
2023-10-05 15:53:07 -07:00
Adeeb Shihadeh
f80db10720 UI: remove drive stats (#30183)
* UI: remove drive stats

* little more

* vanish
2023-10-05 14:53:49 -07:00
Kacper Rączy
3aa74c28fc CI: add regen job (#30157)
* Ability to whitelist/blacklist cars in regen_all

* Add CI job for regen, running on 2 segments

* Run regen_all, not regen

* Use coverage run

* Add test_regen

* Use test_regen in ci test

* Add test case names

* ONNXCPU = 1

* Add mazda segment

* Use RUN_CL

* build cl image before running

* unset PYTHONWARNINGS

* Create regen cache

* Replace daemons with processes

* Skip ford

* Skip mazda

* Add comment about commented segments

* Update selfdrive/test/process_replay/test_regen.py

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

* Remove unset pythonwarnings

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-10-05 13:59:00 -07:00
Dean Lee
29f10fd2aa cabana: fix parsing multiple line comment (#30178)
fix parse error
2023-10-05 01:48:56 -07:00
Shane Smiskol
ed0f506359 Toyota: add missing engine FW for TSS-P Camry Hybrid (#30177)
* missing FW for 2ed432126627c66a

* dups

* dups
2023-10-05 01:24:05 -07:00
Shane Smiskol
a1ca5dc484 scripts: format diff when comparing logs (#30174)
* move format diff to compare_logs to pretty print

* smaller
2023-10-04 22:59:03 -07:00
Justin Newberry
f4b2b70791 Metadrive: fix slow acceleration and enable past 50 mph (#30171)
metadrive tuning
2023-10-04 17:25:44 -07:00
Justin Newberry
56b16e77a4 Metadrive: no preloading models (#30170)
no preloading
2023-10-04 15:49:05 -07:00
Kacper Rączy
18f41d1910 regen: skip fetching camera files when not needed (#30169)
* Fetch only camera files which are needed in current setup

* Refactor daemons to processes
2023-10-04 15:00:50 -07:00
Justin Newberry
d00832cb2b Devcontainer: initial windows support (#30168)
* windows support

* windows support
2023-10-04 14:58:21 -07:00
Kacper Rączy
898acb13f2 process_replay: migrate panda/peripheral/manager states (#30141)
* Migrate pandaStates

* Fix import

* Make pandaStates migration optional, so process_replay still works on logs without carParams

* peripheralState migration if its not available

* Do nothing if log file has peripheralStates

* Add migrate_managerState

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-04 13:41:50 -07:00
Justin Newberry
fa51bbc236 URLFile: don't cache non-existent file's lengths (#30071)
* urlfile empty

* simplify with mock

* better test name

* PR cleanup

* cleanup the length file
2023-10-04 12:57:56 -07:00
Justin Newberry
786f13b0e3 cleanup environment variables between tests (#30167) 2023-10-04 11:51:44 -07:00
Justin Newberry
2048808827 add random order plugin (#30166)
add random order
2023-10-04 11:51:24 -07:00
Kacper Rączy
cf3549fe8a process_replay: migrate cameraState timestampSof if its missing (#30153)
Migrate timestampSof if its missing
2023-10-03 19:46:24 -07:00
Justin Newberry
7f69f8458a Tests: fix pandad setup (#30160)
fix panda test
2023-10-03 18:54:40 -07:00
Kacper Rączy
5cb9291de8 modeld: don't attempt to connect extra vipc client if its not available (#30154)
Do not connect extra client if it's not available
2023-10-03 15:54:21 -07:00
Adeeb Shihadeh
4f769d0a38 pandad: ensure panda is in a good state before each test case (#30151)
* pandad: ensure panda is in a good state before each test case

* less overhead

* fix pc

* update that

* Update selfdrive/boardd/tests/test_pandad.py

* update
2023-10-03 15:42:04 -07:00
Adeeb Shihadeh
377722fd5e Update Python packages and pre-commit hooks (#30149)
* Update Python packages and pre-commit hooks

* fixes

* Update common/transformations/README.md

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* fix

---------

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-10-03 15:31:26 -07:00
nickn066
c3479f8984 Fingerprint: 2023 Volkswagen Taos (#30126)
* Update values.py

Add 2023 Taos

* Update values.py

Removed additional space

* Update values.py

Removed trailing white space

* Update values.py

removed duplicate ecu.srs for CAR.TAOS_MK1

* Update values.py
2023-10-03 14:28:16 -07:00
Harald Schäfer
3c0a7d6986 Night Strike Model (#30148)
* baab2a46-f0c3-46eb-8756-00c55354945b/700

* Update model replay ref
2023-10-03 14:25:30 -07:00
Justin Newberry
c6ad15e52f CI: label for research and fix CI/testing label (#30152)
* research label

* add jenkinsfile
2023-10-03 13:48:17 -07:00
Justin Newberry
8cc8952d81 Subaru: crosstrek hybrid is a B harness (#30150)
its a b harness
2023-10-03 13:29:07 -07:00
Shane Smiskol
c003048269 Toyota: whitelist hybrid ECU (#30110)
0x7e2: OBD query, 0x7d2: UDS query
2023-10-03 03:30:32 -07:00
Shane Smiskol
661edd7d8b regen: fix wide road camera msg name (#30147)
fixed
2023-10-02 21:21:49 -07:00