Commit Graph

11022 Commits

Author SHA1 Message Date
Kacper Rączy a40c0c9b6e process_replay: clean env vars after run (#29694)
Clean environ vars at the end of replay
old-commit-hash: bb14ba4e5e5bd229bde42a14d1c9a7bbc02297b5
2023-08-28 19:44:40 -07:00
Justin Newberry f22753034c Subaru: cleanup and fix preglobal (#29690)
* cleanup and fix preglobal

* those are also duplicates
old-commit-hash: 3348cd3825d33a6026ef92a526e54ff8cf41ce5e
2023-08-28 19:37:04 -07:00
Shane Smiskol aa3c44dcdd FW query timing test: fix refs (#29692)
* fix refs

* don't round added values

* fix
old-commit-hash: 3cc328163baaf3087c95e5f89f363807b218f052
2023-08-28 17:52:49 -07:00
Harald Schäfer 3a28e97a95 Revert: Locationd: enable laikad (#29687)
* Revert: Locationd: enable laikad

* update ref
old-commit-hash: 55b391509d94c45000df6754f173ad446dc1b34c
2023-08-28 16:27:11 -07:00
Jason Wen 186de8bddb Hyundai: consolidate button messages creation (#29663)
* Hyundai: refactor button messages creation and consolidation

* one bool should be enough

* Use CLU11|0x4F1 to determine

* grammar pls

* action

* fix duplication

* move to bottom

* one area

* type

* Revert "one area"

This reverts commit c2b794f964b3df09a5ae9f35a3853e6cec69f93a.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5aed2e01e80b067c859d7655812065f0a4271ed9
2023-08-28 15:23:02 -07:00
Shane Smiskol 99b4b0a392 Hyundai CAN FD: rename LKAS signal (#29685)
* bump

* now fix

* comment
old-commit-hash: 21ffd807b6f258d6f30c1228100bf2ed93e66309
2023-08-28 15:14:07 -07:00
Adeeb Shihadeh 7111ce6ce8 pycurl is no longer just a dev dependency (#29684)
old-commit-hash: 17bd792eee36ff678b2c2a4376e0e5cf53468b2a
2023-08-28 14:49:59 -07:00
Dean Lee d5dba43885 ui/networkmanager: add #pragma once (#29678)
#pragma once
old-commit-hash: a49dfa2969df29d49e7bd1d9dbfeb2627c5c398c
2023-08-28 11:40:51 -07:00
Korben 4dba47b21d Update French translation (#29664)
* Update French translation - main_fr.ts

Hello

I noticed that some translations were sticking out a bit in the new interface, so I'm proposing an update to correct this. I've arranged for the translations that cause problems to have the same number of letters including spaces as the original sentence so that they fit in the UI.

@maxime-desroches if you can give me your feedback, that would be very kind. Thank you.

* Update selfdrive/ui/translations/main_fr.ts

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 4755a30e75b6336ff9b430e2392e71d32b5befb6
2023-08-28 10:38:42 -07:00
Joshua Mack 823e319159 Car docs: update alpha longitudinal name (#29670)
* Update Footnote 1

Updated Footnote 1 for new name for toggle "openpilot Longitudinal Control (Alpha)" as well as made it clearer on how to change to devel or master-ci branches, taken from comma.ai blog (https://blog.comma.ai/090release/#experimental-longitudinal-control).

* Add 3X

* Added to Docs_definitions

* just update name

* fix

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: eafdcb89e4a7b411a553da86eff3662ca1218acd
2023-08-28 10:30:15 -07:00
Adeeb Shihadeh cc29c6640d pytest: strict config (#29676)
* pytest: strict config

* collection works

* fixes
old-commit-hash: 72e2e2c9ec4e3a42cf35c23dfc0d66ea0565ace6
2023-08-28 10:26:19 -07:00
Dean Lee 3627574114 ui: rename QDialogBase to DialogBase (#29675)
rename QDialogBase to DialogBase
old-commit-hash: c36774dfba513f6ea64cff06b215c355ee059dff
2023-08-28 01:57:49 -07:00
Justin Newberry ffddeace6e CI: fix sim/docs scons cache invalidation (#29639)
* fix sim and docs images

* fix that

* that's a weird issue

* exists should work fine

* as little diff as possible
old-commit-hash: 5716dfc9b54f9f24e412ae020ac572ccec6ae1c9
2023-08-27 19:52:38 -07:00
Dean Lee 875b160fc6 ui/network: move to selfdrive/ui/qt/network/ (#29656)
* move to ui/qt/network

* wifimanager->wifi_manager
old-commit-hash: 125bd2cd9ef930f23c8d435ccf2a76b91228abe8
2023-08-27 15:23:19 -07:00
vanillagorillaa 646b4d55a6 Docs: Toyota B harness connector (#29669)
old-commit-hash: 4005b6addeda8d58b32f7aa7f96264ef7072887e
2023-08-27 15:21:06 -07:00
Jason Wen dcc348a188 Docs: Hyundai R Harness (#29662)
old-commit-hash: 7f4b588495c2432b0d726fb87e8252a1d58253f8
2023-08-27 10:58:18 -07:00
Dean Lee 888b60b214 ui/driverview: use common SubMaster (#29660)
old-commit-hash: 3a46a853cb22efe0053cf7e99fc7c8e7e676a455
2023-08-27 10:57:31 -07:00
Dean Lee c99c0b51e3 cabana/MessageListModel: replace match |= with match = match || (#29667)
old-commit-hash: 4f915f4f1a2ed4c62069e03b176d2a4906479c51
2023-08-27 17:56:49 +01:00
Justin Newberry 47eb055283 CI: fix proc replay download cache permissions (#29636)
chmod that
old-commit-hash: ab05bff07ded3d3cd932c59beaaa75c698195692
2023-08-27 09:45:16 -07:00
Cameron Clough 69d7ecac9c ui/NavManager: parse location timestamp from API (#29665)
old-commit-hash: 3d1a6f61463f022462c93a331add64af1cb48e94
2023-08-27 16:18:42 +01:00
Dean Lee 2e4a23510a ui/MapSettings: sort destinations by recent activity (#29079)
old-commit-hash: 12073c07afbd0de42ed475c9368ad9f51fd0c631
2023-08-27 15:13:43 +01:00
Dean Lee 3d04606233 cabana: use a monotonic buffer to allocate CanEvent (#29652)
* use a monotonic buffer to allocate CanEvent

* set the next buffer size to 6MB

* static

* cleanup

* use const iter

* rename to insert_pos
old-commit-hash: 57ad4f02f8e693639262aa3a982be8ed6c433ee0
2023-08-26 08:42:50 -07:00
Dean Lee ce0e2ec905 AGNOS setup: multi-lang support (#25680)
* multilang

* update translations

* Specifies dependency

* load lang from json file

* update translations

* fix white border

* remove stretch

* update translations

* fix tr

* no default language

* update translations

* rm main_en.qm

* cleanup

* cleanup

* add language files

* remove type=unfinish

* build languages before assets

* depends lrelease
old-commit-hash: 0767a6dee5355d1d7c0b6aaed8f358d9045268a9
2023-08-26 08:17:07 -07:00
Dean Lee 74195e1d78 ui/driverview: hide on interactive timeout (#29464)
* hide on interactiveTimeout

* cleanup

* requestDone->closeView

* dont reset timeout on hideEvent

---------

Co-authored-by: sshane <shane@smiskol.com>
old-commit-hash: b6b255c10355c40fd8c53703720f8e1b12958855
2023-08-26 07:47:18 -07:00
Shane Smiskol 2c86b69c92 IsoTpParallelQuery: extend timeout for every frame type (#29654)
* recv returns updated

* bump panda

* bump

* bump
old-commit-hash: a160f1a6241ef71a0816fd604052f49efe2e0dd5
2023-08-26 07:00:46 -07:00
Shane Smiskol 8f0ab9a105 Revert "ui/network: don't refresh on connect (#29651)" (#29653)
This reverts commit 500d58e5bf59e25ec973c6f635c6cf292c7a65ad.

Revert "ui/network: refresh IP address on connect"

This reverts commit 866c41a9249f98460436bae26def13be8c03a4fc.
old-commit-hash: 74a0a8f7b7f915a3fbb7bd26d77030ee89c02c6b
2023-08-26 05:23:20 -07:00
Shane Smiskol 045c092df8 ui/network: refresh IP address on connect
old-commit-hash: 46c32613fccd22e356c0b3092b61132ce264ae49
2023-08-26 05:15:05 -07:00
Shane Smiskol b14dc6be99 ui/network: don't refresh on connect (#29651)
* don't refresh when showing connected status

* fix

* fix

* can remove that nowe
old-commit-hash: 6ea564b33ec6066bea1cc9829ce7c3078fdd735d
2023-08-26 04:13:19 -07:00
Dean Lee 511dcacf06 ui/networking: show "connecting" immediately after clicking on a network (#29378)
* fix connecting not show

* clear connect state

* pass network by value

* add comment

* move pass by value to anoter pr

* should always use function to set connecting_to_network

* remove connecting when forgetting

* out here

* can't do this :(

* Revert "can't do this :("

This reverts commit e06145202de34142e74667c876dc22442eb30796.

Revert "out here"

This reverts commit 8ca7b47a28854a92d95fcb5c5fc435e140f9af2c.

Revert "remove connecting when forgetting"

This reverts commit 671db0b5e76b6266a48f20bf4a1fd40cad4f90a4.

Revert "should always use function to set connecting_to_network"

This reverts commit a220b518fa2a4103046f9522afada80db76ae90d.

* makes sense to keep this the same

* not in between slots

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 9fe3df5d75bcaca3ea5be9e1d22bc00515c6e018
2023-08-26 03:54:19 -07:00
Dean Lee dff265fff2 ui/networking: fix icon label alignment issue (#29650)
fix align issue
old-commit-hash: 547f69f5f38768dcbc62c9e42a7ef250d233fe01
2023-08-26 03:19:30 -07:00
Shane Smiskol dc4177c344 wifiManager: empty path helper (#29648)
empty helper
old-commit-hash: 6bb97c416ff7a2cbbd5bbde6e49757f7db6f1523
2023-08-26 01:50:18 -07:00
martinl 5f1528708e Subaru: Ascent 2023 dashcam mode (#27583)
* Subaru: Add support for 2023 Ascent

* Update supported cars list

* Remove tester present from fw query

* merge master

* fix merge issues

* minimize diff

* add comment about 23 ascent

* add comment

* correct spot

* fix name

* nocap

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: a1bf66a0d26574eabf322ce139142a6db92c9098
2023-08-25 20:55:21 -07:00
Irene f6e31e8de5 Toyota: forward openpilot FCW to cluster when engaged (#25677)
* move ui message handling out of condition

* relay openpilot fcw to car

* only send normal fcw if DSU is unplugged

* add comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: b3e4eb15dc7a41385a7bbd26a3cbba10a8139f2d
2023-08-25 20:17:05 -07:00
Shane Smiskol 5c8edc34f3 Kia: add test route for Optima Hybrid (#29520)
* add Optima H FW

* undashcam

* add to routes, but keep in dashcam mode for now

* rearrange
old-commit-hash: 3b69187b67357cbcba7a665af626147d8f52a347
2023-08-25 20:12:57 -07:00
multikyd 2fa0a7b210 HKG: Add Optima Hybrid to HEV and legacy safety mode lists (#29644)
* add Optima H FW

* undashcam

* HKG: Add to Hev and Legacy safety mode for Optima Hybrid

* remove extras

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5c6a8ac7cc9f11adab7e17ece6ed47ce07140884
2023-08-25 19:20:49 -07:00
mitchellgoffpc fdaee85b1e Remove no-thneed build flag
old-commit-hash: 807410e0accc7486575885fbe324538ce7e6ece0
2023-08-25 19:09:25 -07:00
mitchellgoffpc e9e98abe89 Remove USE_THNEED check from run.h
old-commit-hash: e0287fa93e79754b00953faa621b9979c2f14832
2023-08-25 19:05:49 -07:00
Dean Lee 65c5464138 ui: add translation files to assets.qrc (#29597)
* move translation files to assets.qrc

* cleanup

* add main_en

* dynamically add

* not sure if required

* revert to master

* move translations above assets

* add translations to qrc file

* comment

* now add translations_assets_src to assets sources

* this is built

* add to .gitignore

* consistent name

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 17bfff8e10582d6a15088004662d7cf11b903793
2023-08-25 19:05:35 -07:00
Kacper Rączy d254137f4c modeld: fix bash scripts (#29643)
Fix shebang. Fix LD_PRELOAD
old-commit-hash: a4a0429fca82a79118238695a04d888498ca0376
2023-08-25 18:56:06 -07:00
Adeeb Shihadeh 68dd600872 CI: use buildjet for process replay (#29277)
* squash for pr

* backoff to 4vcpu

* review suggestions

* simplify

---------

Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: d35beffbcec1524ff4c4096079208b109fede3f0
2023-08-25 18:50:21 -07:00
Shane Smiskol 2b99c72dc2 ui: rebuild translations when widgets are modified (#29640)
fix translations not being updated for widgets
old-commit-hash: 2b4255b19ef3c1511eb3b18942aa98e60166c02f
2023-08-25 17:25:38 -07:00
Adeeb Shihadeh 26c7c08982 pandad: recover from bad bootstub (#29638)
* pandad: recover from bad bootstub

* more

* adjust that

* ugh guess multipanda is still a thing

* reset

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 683b3b596678b6acd491493901e71b018e8e5d51
2023-08-25 17:03:00 -07:00
Kacper Rączy 48d933970b mpc_lib: fix dependencies (#29621)
* Remove common dependency of lateral mpc

* Replace cereal dir dependency with cereal lib in long mpc

* Add missing files to generated sources

* Typo fix

* messaging_python dep
old-commit-hash: 517499294afdc16e0178526c5c65f4b29e1226c9
2023-08-25 16:51:57 -07:00
Shane Smiskol c5a673b998 car interfaces: handle buttons changing state without going unpressed (#26463)
* rename function first and foremost

* the function

* comment

* move usages over

* probably fine

* comments

* btn

* single line

* not comments

* fix keyword

* is it not clear?

* noEntry while holding cancel

* bumpo

* remove

* better?

* better?

* try this

* try this

* loop

* better

* more clear

* Revert "more clear"

This reverts commit 37e0277e4bfe6f1c553dbbcece6f532a280be62e.

* no optional

* fine

* add comment

* clean up honda

* one line

* can also do this

* but unclear

This reverts commit 1984a72cc8680b23c202695b8aeeb1aa28f7160c.

* bumppanda
old-commit-hash: 24f5a6170dc2e3bea9565115a09a1e20e18572de
2023-08-25 16:47:10 -07:00
Justin Newberry 643a13f27e CI: use local scons cache instead of building a separate image (#29634)
* use local

* added ci_sim

* revert scons

* dont need these anymore

* same for sim

* fix dockerfiles
old-commit-hash: c46965fc27ecfe76e02affca2aacbe410a55196a
2023-08-25 16:06:17 -07:00
Justin Newberry b4e9669bc2 CI: add comment about building locally (#29635)
add comment about build
old-commit-hash: 584239ceb586ab3336b33d667c6620e874455e51
2023-08-25 15:49:07 -07:00
Dean Lee 7a1b7d4206 cabana: improve frequency accuracy (#29631)
* improve frequency accuracy

* apply review

* 2 less lines!

* another!

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2484548fddd1de51a75c52736b1709081ea61eb9
2023-08-25 15:15:16 -07:00
Adeeb Shihadeh 0d4beff6a0 process replay: parallel by default (#29633)
* process replay: parallel by default

* more is helpful
old-commit-hash: 4d6bb32df250a65ef92ad82dce812b91a73896c4
2023-08-25 14:41:43 -07:00
mitchellgoffpc 68e2c74cd3 Remove thneed logic from snpemodel
old-commit-hash: ef8e0fef55c51a54cc218b41081a99ec94554f3f
2023-08-25 14:37:08 -07:00
Mitchell Goff a3fbbb26ac Rewrite modeld in python (#29230)
* Added modeld.py (WIP)

* No more VisionIpcBufExtra

* Started work on cython bindings for runmodel

* Got ONNXModel cython bindings mostly working, added ModelFrame bindings

* Got modeld main loop running without model eval

* Move everything into ModelState

* Doesn't crash!

* Moved ModelState into modeld.py

* Added driving_pyx

* Added cython bindings for message generation

* Moved CLContext definition to visionipc.pxd

* *facepalm*

* Move cl_pyx into commonmodel_pyx

* Split out ONNXModel into a subclass of RunModel

* Added snpemodel/thneedmodel bindings

* Removed modeld.cc

* Fixed scons for macOS

* Fixed sconscript

* Added flag for thneedmodel

* paths are now relative to openpilot root dir

* Set cl kernel paths in SConscript

* Set LD_PRELOAD=libthneed.so to fix ioctl interception

* Run from root dir

* A few more fixes

* A few more minor fixes

* Use C update_calibration for now to exactly match refs

* Add nav_instructions input

* Link driving_pyx.pyx with transformations

* Checked python FirstOrderFilter against C++ FirstOrderFilter

* Set process name to fix test_onroad

* Revert changes to onnxmodel.cc

* Fixed bad onnx_runner.py path in onnxmodel.cc

* Import all constants from driving.h

* logging -> cloudlog

* pylint import-error suppressions no longer needed?

* Loop in SConscript

* Added parens

* Bump modeld cpu usage in test_onroad

* Get rid of use_nav

* use config_realtime_process

* error message from ioctl sniffer was messing up pyenv

* cast distance_idx to int

* Removed cloudlog.infos in model.run

* Fixed rebase conflicts

* Clean up driving.pxd/pyx

* Fixed linter error
old-commit-hash: 72a3c987c0d9de6a0cd7a02bba032ccd5e1efe43
2023-08-25 14:36:26 -07:00