Commit Graph

9296 Commits

Author SHA1 Message Date
Adeeb Shihadeh
f970efbc2e Toyota: remove smartDSU support (#32777)
old-commit-hash: cb63f101ca
2024-06-17 19:18:20 -07:00
Harald Schäfer
47d5601d8a long control: new API (#32706)
* Simplify long control

* Seperate

* Rename

* Try new api for toyota

* rm v_pid everywhere

* No speed in reset

* 0 is better default

* unassigned variable

* Update other cars

* Update gm

* SIMPLIFY

* simplify more

* fix API boundry

* Fix stopping bug

* Small fixes

* Update ref
old-commit-hash: bc303df6a0
2024-06-14 00:08:58 -07:00
Adeeb Shihadeh
7cd75b8290 pandad: update test thresholds
old-commit-hash: f08137f618
2024-06-13 10:29:57 -07:00
Shane Smiskol
4a9358f3f0 Update docs
old-commit-hash: 4708332abe
2024-06-13 01:39:17 -07:00
Mustafa Akcanca
fd85d472f4 Hyundai: add fwdCamera FW for Ioniq 5 2024 (EUR) (#32648)
* Update fingerprints.py

Adding FW fingerprints for Ioniq 5 2024 EU, non-HDA, fwd camera

* bump my!

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 06828f1e80
2024-06-13 01:08:03 -07:00
Mustafa Akcanca
a2c002d1d6 Hyundai docs: change Ioniq 5 Southeast Asia only to Non-US only (#32701)
* Update values.py

* ev6 too is probably the same

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 0319379431
2024-06-13 01:06:45 -07:00
markalan020
af76a68aee Hyundai: add fwdCamera FW for Ioniq 5 2024 (US) (#32623)
* Update fingerprints.py

Add Support for 2024 Hyundai Ioniq 5

* docs

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f449ed144e
2024-06-13 00:55:52 -07:00
Shane Smiskol
f19bfe36a8 Improve ECU address finder script (#32734)
* put pandad in good state

* obd option

* fix

* it's rx
old-commit-hash: 4539c97349
2024-06-12 19:36:26 -07:00
Shane Smiskol
a7f2b486a9 Hyundai: add note about fwdRadar FW (#32733)
comment
old-commit-hash: 742a3a94e3
2024-06-12 19:26:34 -07:00
Shane Smiskol
0837d2512b controlsd: exit on any exception (#32730)
* exit on any exception

* finally so we don't catch
old-commit-hash: 7dbf60b4bc
2024-06-12 17:16:30 -07:00
Dean Lee
ebd34eff9d pandad: removed the redundant .c_str() call (#32724)
Removed the redundant .c_str() call
old-commit-hash: 8065b454c9
2024-06-12 01:48:09 -07:00
Shane Smiskol
338a4b6d8f qlog_size.py: more accurate msg size breakdown (#32723)
* grouping changes outcome

* clean up

* clean up

* clean up

* clean up

* clean up
old-commit-hash: e798caa3e5
2024-06-11 22:55:42 -07:00
Adeeb Shihadeh
9cfdd6200d Remove setproctitle (#32716)
* Custom setproctitle (#32667)

* add custom setproctitle

* add test

* Update poetry.lock

* fix lint

* support only Linux

* test only Linux

* final lint

* Update test_setproctitle.py

* Update setproctitle.py

* convert to threadnames

* delete proctitles

* Check str len and use PR_GET_NAME

* fix poetry.lock

* lint fix

* Update common/threadname.py

---------

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

* revert that for now

* use last 15

* fix

* use name

* update those

* and modeld

* rm

---------

Co-authored-by: schlimeszn <138847413+schlimeszn@users.noreply.github.com>
Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 83ac80c6c8
2024-06-11 21:57:32 -07:00
Shane Smiskol
e3c7bdf0a4 Fixup qlog size (#32719)
* stash

* Revert "stash"

This reverts commit 5a22b44919d4cb8681cc08d99656954423abda93.

* improvements

* rm

* method 2

* Revert "method 2"

This reverts commit 7112d95b3eead8bfdd8efb1dcefd4edbe9107680.

* unreal for now

* stash

* Revert "stash"

This reverts commit a7c5b31d8043b8da96c21a8d40281cece3cada61.

* clean up

* update description
old-commit-hash: 81dc33e569
2024-06-11 21:36:13 -07:00
Shane Smiskol
272216b2a8 remove uiPlan (#32721)
* remove uiPlan from ui

* remove publishing

* Update log.capnp

* Update services.py

* no uiPlan here

* Update ref_commit
old-commit-hash: 684209e077
2024-06-11 21:31:10 -07:00
Mauricio Alvarez Leon
008008b03a Update to Python 3.12 (#32548)
* 3.12

* pprofile is broken

* use modified metadrivepy3-12

* 0.3.0 metadrive

* add metadrive/commaai git dependency

* metadrive git set

* pin sounddevice 0.4.6

* datetime.utcnow() deprecation

* poetry lock

* make datetime not aware

* poetry lock

* pin pytools

* google_crc32c wheel

* unpin sounddevice

* clean metadrive

* use python crc

* mypy

* 3.12.4

* allow python3.11

* test

* no pip

* poetry

* better

* better

* merge

* remove

* try

* test

* try  this

* snok

* python

* simpler

* setuptools

* lower

* try

* try

* work?

* ubuntu deps

* ubuntu

* try

* remove

* move

* remove this

* names

* Update .github/workflows/tools_tests.yaml

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

* python<4

* <3.13

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 148eaf8fa6
2024-06-11 20:45:15 +00:00
Harald Schäfer
d9fb61da16 Long control: Double delay is super complicated (#32694)
* Double delay is super complicated

* No more upper bound

* DEAD

* Update ref
old-commit-hash: 965415135a
2024-06-10 22:29:17 -07:00
Adeeb Shihadeh
328079f8ad Revert "test_onroad: update modeld proc name"
This reverts commit 65f37bb46982c73d8c84ca576d7dd48edacea5d1.

old-commit-hash: 00388ca795
2024-06-10 19:55:48 -07:00
Adeeb Shihadeh
e920e57530 Revert "Custom setproctitle (#32667)"
This reverts commit 1f45e163559baa2a6127d5a5e8deb7067e32f813.

old-commit-hash: 5b51f03967
2024-06-10 19:55:41 -07:00
Adeeb Shihadeh
83350bbd22 test_onroad: update modeld proc name
old-commit-hash: 4684651dc5
2024-06-10 19:45:03 -07:00
schlimeszn
afea57ae2a Custom setproctitle (#32667)
* add custom setproctitle

* add test

* Update poetry.lock

* fix lint

* support only Linux

* test only Linux

* final lint

* Update test_setproctitle.py

* Update setproctitle.py

* convert to threadnames

* delete proctitles

* Check str len and use PR_GET_NAME

* fix poetry.lock

* lint fix

* Update common/threadname.py

---------

Co-authored-by: reddyn12 <nikhilr.ssm@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3365ed5eff
2024-06-10 18:59:01 -07:00
Adeeb Shihadeh
50dd024081 pandad/SPI: ensure slave is in a consistent state (#32645)
* maxout

* get ready for the next one

* really get ready

* much better

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f8cb04e4a8
2024-06-10 18:04:24 -07:00
Shane Smiskol
6022ca899a VW: bump model year of all CRAFTER_MK2 models
old-commit-hash: e3f18b9f95
2024-06-10 16:23:20 -07:00
Shane Smiskol
7d79a17b1a [bot] Fingerprints: add missing FW versions from new users (#32689)
Export fingerprints
old-commit-hash: c514ee7212
2024-06-10 14:36:42 -07:00
Shane Smiskol
086a4fa3a2 Revert "[bot] Fingerprints: add missing FW versions from new users" (#32688)
Revert "[bot] Fingerprints: add missing FW versions from new users (#32683)"

This reverts commit f47ea264ba9b0177acc86b4cd77fd003dcb85328.
old-commit-hash: 26e52a4aed
2024-06-10 13:42:27 -07:00
Shane Smiskol
3fe2a3d338 [bot] Fingerprints: add missing FW versions from new users (#32683)
old-commit-hash: cf100f740e
2024-06-10 13:39:02 -07:00
Harald Schäfer
7e4edcc8d5 MSGQ refactor: cleanup outstanding issues (#32685)
* Rm sim dockerfile from bad merge

* Add watch back

* Fix watch3 compilation
old-commit-hash: 1b2bd205b8
2024-06-10 13:18:47 -07:00
Shane Smiskol
196aaf01d6 fix hypothesis warning (#32678)
fix
old-commit-hash: 43ebf367ef
2024-06-10 00:28:43 -07:00
Metalbird1997
802aef0212 Update fingerprints.py for 2024 MAN TGE (#32657)
* Update fingerprints.py for 2024 MAN TGE

* add TGE chassis codes

* unsure about the others

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 19e0fa3094
2024-06-10 00:22:34 -07:00
Harald Schäfer
05ed3d8c15 Restructure msgq (#32652)
* Update ref

* Compiles

* compiles

* Refactor rest of libs

* import all

* small fiex

* cleanup import

* Need msgq simlink too

* Add to openpilot docker too

* try repo

* Updates

* Fix lint

* fix docs

* Try blank slate

* Revert "Try blank slate"

This reverts commit f078ce04acacfe115c19e23e86038b01e2b84a6d.

* Maybe scons needs this to clear cache

* fix tests

* Disable test for now

* Update SConstruct

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

* Fix whitespace

* Write skip normal

* small fixes

* add test path

* Revert repo

* linting

* whitespace

* Bump msgq

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e70dc90a45
2024-06-09 17:44:34 -07:00
Adeeb Shihadeh
2e6ca5dd05 debug: add summary to check_timings
old-commit-hash: 20a44bb4e9
2024-06-08 21:01:39 -07:00
Adeeb Shihadeh
8da4e94289 pandad: fix receive buffer size on failed transfer (#32670)
old-commit-hash: 1093a4ac82
2024-06-08 20:43:25 -07:00
Adeeb Shihadeh
8472df65ea tools/sim: remove special docker image (#32659)
old-commit-hash: 541b5cbf13
2024-06-08 09:18:28 -07:00
Nelson Chen
dfd4374739 Change the term "Non-US" to "South America" for the "Corolla Hybrid (Non-US only) 2020-23" entry (#32658)
The term "Non-US" in cars.md for the "Corolla Hybrid (Non-US only) 2020-23" is not precise enough and should be changed to South America

Users may think "Non-US" includes Europe or Canada, which is not the case for this entry.

It has two issues:

* The 2023 Corolla Hybrid in Europe and Canada include a new Toyota Safety Sense 3.0 that has yet to be supported due to it being a new version and the presence of Toyota Security Key.
* The 2020-2022 Corolla Hybrid in Europe is the same as the 2020-2022 Corolla Hybrid in North America, which is supported by Openpilot and has full-speed ACC due to the presence of an electronic parking brake which is not present in the 2020-2022 Corolla Hybrid in South America and the reason why it is listed as not having full-speed ACC.

The entry should be reverted to at least "Corolla Hybrid (South America) 2020-23" which was proposed but not merged in the pull request:

28454c04cc

Pull request for that change that does not include that commit: https://github.com/commaai/openpilot/pull/26943

Examples of confusion throughout the community:

comma.ai Discord:

https://discord.com/channels/469524606043160576/524327905937850394/1235264758580772996

https://discord.com/channels/469524606043160576/524327905937850394/1228090600272691370

https://discord.com/channels/469524606043160576/954493346250887168/1209952008329633813

https://discord.com/channels/469524606043160576/524327905937850394/1182093384647721140

https://discord.com/channels/469524606043160576/954493346250887168/1147751657543848017

openpilot community Discord:

https://discord.com/channels/771493367246094347/771495215570747403/1247737844727021629

> I think that the supported cars list (https://github.com/commaai/openpilot/blob/master/docs/CARS.md) is incorrect.
>
> I have a UK 2020 Toyota Corolla Hybrid
>
> In the cars list it's listed as "no accel below" 17 mph and no resume from > stop.
>
> This is not my experience. For me it works just fine down to a complete stop and it can resume from a stop too.
>
>

CC: @AlexandreSato
old-commit-hash: 3b6862030a
2024-06-08 09:18:00 -07:00
Adeeb Shihadeh
ae8f9da48d pandad: fix loopback test (#32656)
* pandad: fix loopback test

* clear all params

* try this

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 57f21abb4f
2024-06-07 23:58:14 -07:00
Shane Smiskol
945c6b94fa remove old fingerprints test (#32654)
* is this even used?

* remove
old-commit-hash: 90523b3b00
2024-06-07 23:38:51 -07:00
Adeeb Shihadeh
97bfed714c card: remove old canRcvtimeout field (#32650)
* card: remove old canRcvtimeout field

* deprecate
old-commit-hash: b42b156fcd
2024-06-07 17:03:17 -07:00
Adeeb Shihadeh
ba34590567 controlsd: remove last mention of CAN (#32646)
old-commit-hash: a7ed190df4
2024-06-06 16:46:27 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7
2024-06-06 14:31:56 -07:00
Vivek Aithal
dec353a9de [Lag] Increase Optima Lag (#32583)
increase lag in optima to 0.2
old-commit-hash: e8857a6713
2024-06-06 01:14:28 -07:00
Dean Lee
eb6e134869 events.py: rename event counters (#32596)
* improve prev event counters

* just rename

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 983063c3e6
2024-06-06 00:13:57 -07:00
Dean Lee
6f9e28d8f2 fuzzy_generation.py: improve performance (#32591)
* improve performance

* remove DEPRECATED

* formatting

* catch kjException

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 3a43f5d784
2024-06-05 23:48:20 -07:00
Shane Smiskol
9778515344 Genesis G70 2020: use common specs (#32641)
use non-2020 specs
old-commit-hash: ae375091db
2024-06-05 23:44:19 -07:00
Dean Lee
eb13fda0b4 improve get_torque_params (#32586)
* Loading torque data only once and reusing it across function calls.

* apply review

* still check only one entry

* fix that

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 045b9f20b7
2024-06-05 21:21:16 -07:00
Solomon Jones
682c862351 Fingerprint for 2017 Subaru Forester (#32584)
Fingerprint for 2017 Forester
old-commit-hash: a418c9e40a
2024-06-05 21:18:29 -07:00
Dean Lee
9706498c7a car/interfaces.py: optimize parse_gear_shifter() with predefined dictionary (#32592)
Optimize gear shifter parsing for improved performance
old-commit-hash: 91fd918fcb
2024-06-05 18:04:03 -07:00
Shane Smiskol
70230f5cef Restore lateral limits report (#32640)
* stash

* staaaaash

* clean up

* more clean up

* fix

fix

* fix

* stash

clean up

* more

* this is just simpler to understand

* explicitly check
old-commit-hash: 7cfd91bb69
2024-06-05 18:03:23 -07:00
Adeeb Shihadeh
bc76ae701b fix linter
old-commit-hash: 260e18f0ae
2024-06-05 17:32:47 -07:00
Adeeb Shihadeh
d2948c3fcd pandad: add more context to spi logs (#32639)
* pandad: add more context to spi logs

* cleanup

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e828a7bdcf
2024-06-05 17:27:57 -07:00
Adeeb Shihadeh
30c41788dc thermald is hardwared (#32637)
* thermald is deviced

* hardwared

* rename
old-commit-hash: 51fdf23304
2024-06-05 15:58:00 -07:00