Commit Graph

9924 Commits

Author SHA1 Message Date
Kacper Rączy a48b67f720 process_replay: universal replay mechanism using cereal fake sockets (#28115)
* replay_process_with_fake_sockets implementation

* add missing polled_pubs to configs

* drained_pubs field

* updated cereal

* Remove python/native variations of process replay. Replace with universal one using cereal fake sockets

* Replace old py FakeSocket with DummySocket

* Invalidate and deregister fake sockets after replay is done

* Remove unused import

* Set up new prefix for each replay

* Fixes for radard

* Refactor ReplayContext and ProcessConfig

* Minor fixes

* Reimplement controlsd fingerprinting callback

* time.sleep for sockets to safely reconnect

* Fix fingerprinting for controlsd

* Fixes for regen to work

* Fix replay loop to respect submaster frames

* Fix profiler to use new ProcessConfig fields

* Remove tqdm

* Refactor tests to use new ProcessConfig

* Add FrequencyBasedRcvCallback

* Make tolerance None by default

* Update cereal

* Add get_process_config utility func

* Update cereal. Simplify sync procedure

* Chain context managers

* New sub-socket reconnection procedure

* Fix linter issues

* Revert chaining of context managers

* Init controlsState only when replaying controlsd. Update cereal

* Update cereal

* Update process_replay to use new cereal API

* Update cereal

* Update cereal

* Update cereal

* Simplify radard recv callback

* Update release/files_common
old-commit-hash: e6ac6320ace377657446a1a16ccccd75091f5453
2023-05-23 17:24:16 -07:00
YassineYousfi 52e1cf2e64 fix input order in onnxmodel (#28274)
old-commit-hash: d0a8b3780c6ca3db07cbb0a1d644f781efad40f0
2023-05-23 16:11:51 -07:00
Jason Young 80a26c3f12 VW MQB: Start documenting FtS cars (#28268)
* specify auto_resume

* format

* car compat

* VW MQB: Start documenting FtS cars

* retry CI

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 84886e28df5e39cae331ed60afa437b60a572b8c
2023-05-23 14:07:21 -07:00
Kacper Rączy dd70d2bdf3 process_replay: drain sockets instead recv_one (#28161)
* Drain the sockets until the next cycle in python process replay

* Add waiting mechanism to native process replay, which mimics the syncing

* Sort logs when comparing them. Drain all the sockets instead of only recv_socks.

* Reverse the retrieval order of FakeSocket

* Change pub order for torqued

* Update ref commit
old-commit-hash: 12b3ffcc49c819bf01ee9c6cadf500d3411aacda
2023-05-23 12:59:09 -07:00
Adeeb Shihadeh 4e1ff2b4b9 pre-commit: autoupdate hooks (#28271)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: bf8e6d0d290e04a2f11f4a71ba6a802691eb5a86
2023-05-23 11:09:40 -07:00
Kacper Rączy c4a75225e8 params: specify path using PARAMS_ROOT (#28257)
* Add PARAMS_ROOT env var

* Change getenv type signature

* Use getenv default_val
old-commit-hash: b43a875ba26685d7aa4eab3972c580810d5108d0
2023-05-23 19:02:22 +02:00
Maxime Desroches f9dacacc85 car docs: allow auto_resume override (#28264)
* specify auto_resume

* format

* car compat

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3785e161f0ac1b05a0b2fae00bf3245eec9db560
2023-05-23 01:40:23 -07:00
Shane Smiskol 9352b02943 car docs: fix diff bot (#28266)
* test bot

* fix docs bot

* revert

* use dataclass

* sad this doesn't work
old-commit-hash: eee8a7a4b45150981b9d313fb5546bd2cf7ebcc1
2023-05-23 00:36:42 -07:00
Maxime Desroches 428e1ec347 car docs: keep similar naming (#28262)
better name
old-commit-hash: 715d7f9e3d4d6b3a667fbde1914ca149d147e74b
2023-05-22 19:30:04 -07:00
Adeeb Shihadeh 716ffecb14 boardd: set min spi timeout
old-commit-hash: ea1e0a16ddaf0a2f6a253724bd695a04d30af1cc
2023-05-22 19:00:45 -07:00
Maxime Desroches 2bc8f7efce car docs: pass all car parts + types to template (#28260)
add car parts + types to template
old-commit-hash: d433dc693d866fe20786baabe23db63b21eb8bf0
2023-05-22 18:43:57 -07:00
Adeeb Shihadeh 05d3b28bb6 tici: log disk info (#28259)
old-commit-hash: 4751d2b57c986599c45280e45867e778cb8bc9d4
2023-05-22 16:53:07 -07:00
Adeeb Shihadeh 702e5fc5d5 add new driving model to release notes
old-commit-hash: 577c17bcb8df8f825d06616621da7bce510bfe6b
2023-05-22 15:19:23 -07:00
Mitchell Goff 22c5053bbc Nicki Minaj Model (#28218)
* New model: 2ff7490f-8a2f-4c0d-87a8-b0fa3a4a6a71

* Updated model_replay_ref_commit
old-commit-hash: 328b5d9d47ef24140b316c375665e1cfd00cef31
2023-05-22 15:11:04 -07:00
Adeeb Shihadeh 1ae2769a72 adjust uploader cpu usage
old-commit-hash: a3d59132283f97faadf0be2ca55264b895e4c232
2023-05-22 10:48:15 -07:00
Maxime Desroches 734b6481b7 car docs: list all needed hardware (#28212)
* generic car parts

* better carparts

* add part type

* more tests

* multiple enums

* unit tests

* just check isinstance

* better name

* remove _connector suffix

* remove those hyundai lines

* remove default arg

* Revert "remove default arg"

This reverts commit 139650a3b6b94358c3b9b12bb5fbe0a326d7abad.

* cleaner code structure

* use fingerprint

* review

* abstrac data class + common

* no more dataclass

* conflict

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9f5f8b603cf69b06c4804632268491cf38cfac7e
2023-05-22 10:17:33 -07:00
Adeeb Shihadeh 8de1d811da test onroad: add gpsLocationExternal to gps proc list
old-commit-hash: 1b12f17ee3826b7553b9d907f9d33d58799c4688
2023-05-22 01:10:24 -07:00
Adeeb Shihadeh dbe615db9e jenkins: switch order of tests
old-commit-hash: 2664dba52e03b45d7a55f17211eb17abb35598c9
2023-05-22 00:48:51 -07:00
Comma Device 8459bf03ed boardd: lower timeout for getting serial
old-commit-hash: 18559f41359913cc546837ff3f25ff25428ca20c
2023-05-22 00:45:52 -07:00
eFini f702f7e478 pandad: app_path -> app_fn (#28253)
* Fix pandad.py

Should be `app_fn` instead of `app_path`?

* fw path

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: b2e32a7ef86e6572afc2f7ee4f5bcf4810fb2979
2023-05-22 00:06:39 -07:00
Mejty38 08d8348e2f Skoda: add fw for Superb 2020 (#28229)
* Update values.py

* sort and remove duplicate

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: b977e1a4e95eb276f4827b6bb933ee142a7d8de9
2023-05-21 22:18:37 -07:00
Adeeb Shihadeh 321d4774d3 bump panda
old-commit-hash: 41771ad7f0bc841326b0a8a77836c6461f5277f2
2023-05-21 21:20:16 -07:00
Jason Young 66afb30511 VW MQB: Extend Touran supported model-year range (#28247)
VW MQB: Extend Touran model-year range
old-commit-hash: e0a2607eee50abc3571459c9e8ca415844da2dd1
2023-05-21 19:28:12 -07:00
Dean Lee 3a838e5342 cabana: use double for minimum value & maximum value (#28252)
old-commit-hash: 36dd49e542968bf13943dcd375424dae6c271b63
2023-05-21 12:35:45 -07:00
Jason Young f6622dc893 VW MQB: Add FW for 2020 Volkswagen Arteon (#28251)
* VW MQB: Add FW for 2020 Volkswagen Arteon

* mechanical sort
old-commit-hash: dee611a9bc211eabcc4773574ebc29607bb13a4c
2023-05-21 12:35:30 -07:00
Dean Lee 5198e64c8f cabana: reject group separator in QDoubleValidator (#28250)
old-commit-hash: 9ac73b719fe0c7bb6f3dd23514b2c837a3bd17ae
2023-05-21 12:33:38 -07:00
Adeeb Shihadeh 29efcea415 spi: handle timeout more like usb (#28249)
old-commit-hash: 038d2264aab863a5c262456782e8c84443c70c56
2023-05-20 23:35:14 -07:00
Jason Young 514f4a45fd VW: A little less signal pass-through (#28246)
old-commit-hash: 24579949c1b6781b667872a687a5ecbba2fe872a
2023-05-20 22:31:12 -07:00
Shane Smiskol 08bf1d21e3 Mazda: explicitly copy signals to forward (#28244)
mazda
old-commit-hash: 37eb9f900c18b68ced90e5c417c7aa7a421509bf
2023-05-20 18:25:19 -07:00
Jason Young 448c80ed07 VW: Explicit signal pass-through (#28179)
* VW: Explicit signal copy

* normalize whitespace
old-commit-hash: f951390ddaeaece3ffe2c79432adb85e7d974229
2023-05-20 18:20:57 -07:00
Adeeb Shihadeh 532828bd15 remove unused import
old-commit-hash: 9160faf8e554efae57d79517af1cbdf73abcc8fd
2023-05-20 18:11:16 -07:00
Shane Smiskol c7ebc05373 GM: explicitly copy signals to forward (#28243)
* gm

* same order as DBC
old-commit-hash: 3d94423108cbe313d47301c7d6e3f24227157c07
2023-05-20 18:09:57 -07:00
Adeeb Shihadeh a3dcc5cd97 time to onroad test (#28242)
* time to onroad test

* run few times

* test on stripped builds

* manager

* cleanup

* split those out

* run first

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 39c5d492bfb4ca1630fed1a4ab6990c171c5e797
2023-05-20 17:59:41 -07:00
Adeeb Shihadeh 6dc5e28ef9 boardd: handle nack on tx buffer full (#28241)
* boardd: handle nack on tx buffer full

* print pandaStates

* rx buffer too small

* connect timeout

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e4a37620ee9cb6416e51a3e8346e5008aeeab027
2023-05-19 23:24:52 -07:00
Kyle Greenlaw 08b67e417f Subaru: Add fw for 2020 Subaru Outback (#28240)
Route: a4e8e925930fce2c|2023-05-19--20-47-32
old-commit-hash: 7a684da47f7c587063ec3c333d748cc37b5417a6
2023-05-19 22:49:46 -07:00
johangithub e5e4765760 HKG: add 2017 Genesis G90 Fingerprint (#28230)
old-commit-hash: 184e224a6ad7e8edd08315b3420b88cd66aca737
2023-05-19 18:30:43 -07:00
Adeeb Shihadeh 9ed5feca61 boardd: longer loopback test (#28239)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2014b10ec33f9117cfae18bc3a6660ae7a2c50f1
2023-05-19 17:36:30 -07:00
YassineYousfi 3c001d5c89 update dm model README (#28238)
add calib dm input in readme
old-commit-hash: bda0d6ac77b4f1179eea76e8146da6eee5cae983
2023-05-19 15:20:43 -07:00
Cameron Clough 2164f9f37d logging: change event_name arg (#28232)
This doesn't change anything in practice, but makes it harder to write a bug where a kwarg with the name `event` would overwrite the event name.
old-commit-hash: 309126a5277a8735f76a2344cfb2aaa3ae13a05a
2023-05-19 13:29:33 -07:00
Dean Lee 85d4ba325d cabana: use the same double precision as the dbc file (#28234)
old-commit-hash: ac2c87246af2d73f6c0481934d8cc4969aba4b4d
2023-05-19 12:36:11 -07:00
Dean Lee 6eef545e9f cabana: fix segfault on screen changed (#28233)
fix segfault on scrrenChanged
old-commit-hash: e6c9e764c0f9198bc4fadd1e01679a5d1e2d55b6
2023-05-19 03:01:38 -07:00
Adeeb Shihadeh 03bede0ecc bump to 0.9.3
old-commit-hash: a30a0c4b698fa73017ba59b48ecd59fb2a9ef2af
2023-05-18 16:23:14 -07:00
Mitchell Goff 0fc01cc6f6 Offset topdown map by 128 meters (#28216)
We drive forward :)
old-commit-hash: d528481d8dc5669fa6dbeca88b8d63f112205635
2023-05-18 15:30:58 -07:00
Cameron Clough f5563f9049 Ford: longitudinal behind alpha toggle (#28196)
* bump panda

* set safety config/configure experimental longitudinal

* send inactive signals

* bump

* just calculate in function

* already in the variable

* clean that up

* add comment, on ford stock long, prchg seems to be set from the possible future accel

* comment

* this signal didn't have an impact on engaging

* add comment and fix

* worst case while AEB

* and kill ACCDATAs

* this could be dangerous

* need to test this too

* Revert "need to test this too"

This reverts commit 09bba75950fa55d90a82f0109e3138ffe5a1d08c.

* Revert "this could be dangerous"

This reverts commit 323143e84727f1a780bbb600be5f7ceb763516b1.

* Revert "and kill ACCDATAs"

This reverts commit 15f6804bf64d01145daf57a592c2f3fd44ceba27.

* Revert "worst case while AEB"

This reverts commit 85e1aaa8e1af90373c688d1973dbfbb07b1fb8b2.

* bump panda

* Update selfdrive/car/ford/fordcan.py

* move around

* was already here

* rm

* use variable

* update docs

* Update ref_commit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d4dec3ba5e7c68c57c137e15c0a51c903737b8b7
2023-05-18 15:25:24 -07:00
Shane Smiskol 18cabb533a Ford: longitudinal clean up (#28231)
clean ups
old-commit-hash: c7d3b28b93faa6c955fb24bc64031512ee985ee9
2023-05-18 14:30:07 -07:00
Adeeb Shihadeh c5d45e7fd4 bump panda
old-commit-hash: 00915bb9781b8573afb393b28dd1d9f9507c3b5a
2023-05-18 14:24:07 -07:00
Shane Smiskol 9e7191323e Ford: log stock AEB (#28228)
log AEB
old-commit-hash: 902cc891a88eb5b4474e29ab2f174f602c1223ed
2023-05-18 03:56:35 -07:00
Shane Smiskol 694372f25f bump panda (#28227)
bumppanda
old-commit-hash: e5faef113fc2db45afcab220ba2c9c3691f830ac
2023-05-18 00:42:40 -07:00
Harald Schäfer f6900301a5 QCOM laikad: add glonass support (#28217)
* QCOM laikad: add glonass support

* reject garbage timestamps

* update ref
old-commit-hash: 703fe85cf5d00fe18e0c8fcef25215b65db59500
2023-05-18 00:19:40 -07:00
Adeeb Shihadeh 9d2c73eacb boardd: match panda python lib ack bytes (#28225)
old-commit-hash: 885e1edf966f241113ea5f7af2d2030ab24dd808
2023-05-17 23:28:46 -07:00