Commit Graph

10448 Commits

Author SHA1 Message Date
Adeeb Shihadeh
72e2e2c9ec pytest: strict config (#29676)
* pytest: strict config

* collection works

* fixes
2023-08-28 10:26:19 -07:00
Dean Lee
c36774dfba ui: rename QDialogBase to DialogBase (#29675)
rename QDialogBase to DialogBase
2023-08-28 01:57:49 -07:00
Justin Newberry
5716dfc9b5 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
2023-08-27 19:52:38 -07:00
Dean Lee
125bd2cd9e ui/network: move to selfdrive/ui/qt/network/ (#29656)
* move to ui/qt/network

* wifimanager->wifi_manager
2023-08-27 15:23:19 -07:00
vanillagorillaa
4005b6adde Docs: Toyota B harness connector (#29669) 2023-08-27 15:21:06 -07:00
Jason Wen
7f4b588495 Docs: Hyundai R Harness (#29662) 2023-08-27 10:58:18 -07:00
Dean Lee
3a46a853cb ui/driverview: use common SubMaster (#29660) 2023-08-27 10:57:31 -07:00
Dean Lee
4f915f4f1a cabana/MessageListModel: replace match |= with match = match || (#29667) 2023-08-27 17:56:49 +01:00
Justin Newberry
ab05bff07d CI: fix proc replay download cache permissions (#29636)
chmod that
2023-08-27 09:45:16 -07:00
Cameron Clough
3d1a6f6146 ui/NavManager: parse location timestamp from API (#29665) 2023-08-27 16:18:42 +01:00
Dean Lee
12073c07af ui/MapSettings: sort destinations by recent activity (#29079) 2023-08-27 15:13:43 +01:00
Dean Lee
57ad4f02f8 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
2023-08-26 08:42:50 -07:00
Dean Lee
0767a6dee5 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
2023-08-26 08:17:07 -07:00
Dean Lee
b6b255c103 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>
2023-08-26 07:47:18 -07:00
Shane Smiskol
a160f1a624 IsoTpParallelQuery: extend timeout for every frame type (#29654)
* recv returns updated

* bump panda

* bump

* bump
2023-08-26 07:00:46 -07:00
Shane Smiskol
74a0a8f7b7 Revert "ui/network: don't refresh on connect (#29651)" (#29653)
This reverts commit 6ea564b33e.

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

This reverts commit 46c32613fc.
2023-08-26 05:23:20 -07:00
Shane Smiskol
46c32613fc ui/network: refresh IP address on connect 2023-08-26 05:15:05 -07:00
Shane Smiskol
6ea564b33e ui/network: don't refresh on connect (#29651)
* don't refresh when showing connected status

* fix

* fix

* can remove that nowe
2023-08-26 04:13:19 -07:00
Dean Lee
9fe3df5d75 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>
2023-08-26 03:54:19 -07:00
Dean Lee
547f69f5f3 ui/networking: fix icon label alignment issue (#29650)
fix align issue
2023-08-26 03:19:30 -07:00
Shane Smiskol
6bb97c416f wifiManager: empty path helper (#29648)
empty helper
2023-08-26 01:50:18 -07:00
martinl
a1bf66a0d2 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>
2023-08-25 20:55:21 -07:00
Irene
b3e4eb15dc 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>
2023-08-25 20:17:05 -07:00
Shane Smiskol
3b69187b67 Kia: add test route for Optima Hybrid (#29520)
* add Optima H FW

* undashcam

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

* rearrange
2023-08-25 20:12:57 -07:00
multikyd
5c6a8ac7cc 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>
2023-08-25 19:20:49 -07:00
mitchellgoffpc
807410e0ac Remove no-thneed build flag 2023-08-25 19:09:25 -07:00
mitchellgoffpc
e0287fa93e Remove USE_THNEED check from run.h 2023-08-25 19:05:49 -07:00
Dean Lee
17bfff8e10 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>
2023-08-25 19:05:35 -07:00
Kacper Rączy
a4a0429fca modeld: fix bash scripts (#29643)
Fix shebang. Fix LD_PRELOAD
2023-08-25 18:56:06 -07:00
Adeeb Shihadeh
d35beffbce 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>
2023-08-25 18:50:21 -07:00
Shane Smiskol
2b4255b19e ui: rebuild translations when widgets are modified (#29640)
fix translations not being updated for widgets
2023-08-25 17:25:38 -07:00
Adeeb Shihadeh
683b3b5966 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>
2023-08-25 17:03:00 -07:00
Kacper Rączy
517499294a 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
2023-08-25 16:51:57 -07:00
Shane Smiskol
24f5a6170d 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
2023-08-25 16:47:10 -07:00
Justin Newberry
c46965fc27 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
2023-08-25 16:06:17 -07:00
Justin Newberry
584239ceb5 CI: add comment about building locally (#29635)
add comment about build
2023-08-25 15:49:07 -07:00
Dean Lee
2484548fdd cabana: improve frequency accuracy (#29631)
* improve frequency accuracy

* apply review

* 2 less lines!

* another!

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 15:15:16 -07:00
Adeeb Shihadeh
4d6bb32df2 process replay: parallel by default (#29633)
* process replay: parallel by default

* more is helpful
2023-08-25 14:41:43 -07:00
mitchellgoffpc
ef8e0fef55 Remove thneed logic from snpemodel 2023-08-25 14:37:08 -07:00
Mitchell Goff
72a3c987c0 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
2023-08-25 14:36:26 -07:00
Dean Lee
c6c6877263 util.cc: remove duplidate #include (#29632)
remove duplidate #include
2023-08-25 14:34:46 -07:00
Adeeb Shihadeh
c9e227a9c0 update azure-storage-blob (#29411)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-25 22:01:10 +01:00
Harald Schäfer
f1b8a86464 K1FD: generate kalman gain at init (#29610)
* K1FD: generate kalman gain at init

* Update interfaces.py

* Update interfaces.py

* Update interfaces.py

* Update ref_commit
2023-08-25 13:44:03 -07:00
Harald Schäfer
47a839ab1f bump laika (#29628) 2023-08-25 13:14:16 -07:00
Adeeb Shihadeh
6b5a0b3498 include all model runners in release 2023-08-25 12:02:22 -07:00
Dean Lee
1e62999e75 v4l_encoder: convert macro checked_ioctl to funtion (#29609)
* break to multiple lines

* convert to function

* format errno

* use safe_ioctl

* cleanup
2023-08-25 11:05:22 -07:00
Dean Lee
86386fd87f scons: fix always generating car_fingerprint_to_dbc.json (#29625) 2023-08-25 10:39:55 -07:00
Dean Lee
2709cd6538 common/tests: combine multiple test binaries into one (#29623) 2023-08-25 10:35:39 -07:00
Dean Lee
7270c64872 common/gpio: use util::safe_ioctl (#29624)
use util::safe_ioctl
2023-08-25 08:20:43 -07:00
Justin Newberry
c0b9458a45 CI: move cache dir to workspace directory (#29622)
* comma dir

* mkdir

* fix issues

* test

* fix that

* fix

* do the other ones too

* missed that

* fix

* fix pr comments by moving into two different directories

* fix location

* fix that

* only change current

* fix
2023-08-25 01:41:04 -07:00