Commit Graph

10987 Commits

Author SHA1 Message Date
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
Dean Lee 4db56c1247 util.cc: remove duplidate #include (#29632)
remove duplidate #include
old-commit-hash: c6c6877263f66bc55c966fa32d40724a80979cdc
2023-08-25 14:34:46 -07:00
Adeeb Shihadeh 34edef6a60 update azure-storage-blob (#29411)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: c9e227a9c062aa5e9569472e88d720d1160819de
2023-08-25 22:01:10 +01:00
Harald Schäfer 8960f76597 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
old-commit-hash: f1b8a8646438008b35c0445812b818745ad01fc2
2023-08-25 13:44:03 -07:00
Harald Schäfer 669ed11483 bump laika (#29628)
old-commit-hash: 47a839ab1f57c7ccaf0118b58ae4f6ed2949d15f
2023-08-25 13:14:16 -07:00
Adeeb Shihadeh da423fd36d include all model runners in release
old-commit-hash: 6b5a0b349851ec5cb6600e7b690cf9a4aac677f7
2023-08-25 12:02:22 -07:00
Dean Lee d5631664d3 v4l_encoder: convert macro checked_ioctl to funtion (#29609)
* break to multiple lines

* convert to function

* format errno

* use safe_ioctl

* cleanup
old-commit-hash: 1e62999e75b2ba85b7c443af0d8b3132e8e909d2
2023-08-25 11:05:22 -07:00
Dean Lee dbf03eb2c2 scons: fix always generating car_fingerprint_to_dbc.json (#29625)
old-commit-hash: 86386fd87f3d4bda7303957d543c772f4dda5e1a
2023-08-25 10:39:55 -07:00
Dean Lee 00f900e8c4 common/tests: combine multiple test binaries into one (#29623)
old-commit-hash: 2709cd6538363e439b3de39a9f4df05619dfbaa0
2023-08-25 10:35:39 -07:00
Dean Lee 5385263422 common/gpio: use util::safe_ioctl (#29624)
use util::safe_ioctl
old-commit-hash: 7270c6487237ee56e8a41c593ff7b3d8aa35a92c
2023-08-25 08:20:43 -07:00
Justin Newberry e128aedc63 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
old-commit-hash: c0b9458a45f208c9773f859169a7de56d19b1bec
2023-08-25 01:41:04 -07:00
Shane Smiskol fca565cad1 car/__init__: missing ending newline
old-commit-hash: ed6e72ae1fbc5605cac693d58b3143dd33c0d6fc
2023-08-25 00:43:29 -07:00
Shane Smiskol ae9a124845 fingerprinting: log FW query time (#27880)
* Update car_helpers.py

* put in carParams

* bumpcereal

* rename

* bump cereal

* add cached

* bump cereal

* just add to fingerprinted event
old-commit-hash: ae2a6537b7eb13a03820bc449e3448e97f0bd38b
2023-08-24 21:11:01 -07:00
Adeeb Shihadeh e2be1f4dae bump panda (#29619)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 465a72a87d9cfc058a256268ec0117d90aef35ed
2023-08-24 19:22:48 -07:00
Adeeb Shihadeh 06aea7d935 CI: remove redundant apt installs (#29617)
* CI: remove redundant apt installs

* split build and test

* faster build
old-commit-hash: 36cc41f619a50e21b90171bab1eedf1f15dd61a9
2023-08-24 17:32:15 -07:00
Adeeb Shihadeh 8f9dcca26a CI: workaround syntax error in azure lib (#29618)
old-commit-hash: e8638280518938e7029c576be421e7fc35ddc695
2023-08-24 17:18:11 -07:00
Justin Newberry 4063a92683 CI: use GITHUB_ENV for env variables (#29616)
export doesn't work across steps
old-commit-hash: 90cb417caa049261797449d7e75eea01093e073d
2023-08-24 17:03:25 -07:00
Mitchell Goff 5033da5e27 Added cython bindings for model runners and commonmodel (#29607)
* Added cython bindings for model runners and commonmodel

* Removed cython language_level=3

* loop to set CXXFLAGS for both envs
old-commit-hash: e2e39d100b32a6706e83c81a1ef3dcdd7ea4001f
2023-08-24 17:00:26 -07:00
Harald Schäfer bc017ab936 Locationd: enable laikad (#29570)
* experiment

* llk back

* update refs

* update ref

* no internet

* Update ref
old-commit-hash: 8205590624913b927d7abb1d214ea25886d7c1ea
2023-08-24 16:51:45 -07:00
Justin Newberry c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16e2ade0dd887c0687243aee769043e5
2023-08-24 16:30:54 -07:00
Justin Newberry 630b440536 CI: fix docker push (#29614)
* fix those

* fix docker push too

* dont need that twice
old-commit-hash: ede9f2cda5500d9e094e89a32518c88b56c3335b
2023-08-24 16:30:33 -07:00
Justin Newberry 6847f819d1 CI: use scripts for docker build (#29599)
* use scripts

* remove common

* do login in the workflow

* separate step

* cleanup

* one script is cleaner

* keep it consistent

* review suggestions

* move in ci too

* PR cleanup
old-commit-hash: 3d9f238bf9a1f27c5a9a44df1b0f116182829be0
2023-08-24 16:09:08 -07:00
mitchellgoffpc 01e73c76f8 Moved thneed src to top of modeld sconscript
old-commit-hash: 7dae580441ddad32bab13bea9b2fd87edbe5d887
2023-08-24 15:12:01 -07:00
Shane Smiskol dcf9d9e3a7 ui/map: clip vehicle speed to min of 10 m/s (#29601)
* all the changes I want to make

* Revert "all the changes I want to make"

This reverts commit c18132b73eb9bba4d7871631d7cd4155eb7efcd0.

* add initialized

* clip to 10 m/s

* fix bug

* rm

* here?
old-commit-hash: b8fb26055825f4ee35f647b6d84c2e6e6878a93f
2023-08-24 15:09:30 -07:00
Bruce Wayne d334798141 KF1D: add steady state kalman code
old-commit-hash: e7418cfa397ec2185e4b12baaa481017b7b23322
2023-08-24 15:04:47 -07:00
Adeeb Shihadeh 61cf541322 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
old-commit-hash: 4917e22615adbfcc9b3c3ec89b00d240e0b48883
2023-08-24 14:58:30 -07:00
Shane Smiskol 9a1f82a853 ui/map: initialize speed filter with current speed (#29605)
fix map starting from 0 zoom
old-commit-hash: b9d77afd7e91d46916b471bdc067f83edb2d64de
2023-08-24 14:53:47 -07:00
mitchellgoffpc c4bb5bbf04 Some cleanup in modeld sconscript
old-commit-hash: fc8c97e7a9595e489f3f466cfc6c0097b9b8217c
2023-08-24 14:41:04 -07:00
mitchellgoffpc 0126d840f3 Disable error message in thneed ioctl interceptor to fix pyenv issues
old-commit-hash: a184d40b7aebbebd91000a199d90299457378381
2023-08-24 14:41:04 -07:00
Shane Smiskol 8cbc68a3be C++ FirstOrderFilter: add initialized flag (#29602)
add initialized flag with default to not change behavior
old-commit-hash: 54e98fa888c9e28eb93513bada8371a63a54bb55
2023-08-24 14:33:11 -07:00
Dean Lee 86692bf177 v4l_encoder: fix error handling for poll (#29166)
* fix error handling for poll

* revert

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d54fa5c7f198af93474a73643b9363fc2a2043ba
2023-08-24 12:56:06 -07:00
Dean Lee 1a2f9c464b locationd: passing eigen objects by reference (#28719)
pass eigen objects by reference
old-commit-hash: 3930ec9facb51491309ba37f66a7b3c59a8dd035
2023-08-24 12:55:47 -07:00
Dean Lee a1fe0701e9 ui: remove Q_PROPERTY from AnnotatedCameraWidget (#28745)
old-commit-hash: b234cb022356baceba3fb4a990c7c483216bd860
2023-08-24 11:09:26 -07:00
Shane Smiskol ce1c61d59a car interfaces: long running fuzzy test (#29592)
* draft

* draft 2

* increase deadline and run

* imports

* run -> use
old-commit-hash: 821cfff56d00b61fc3b4fba12bf0830cdb21ed27
2023-08-24 10:45:50 -07:00
Dean Lee de809632bf cpplint: add filter whitespace/comma (#29595)
old-commit-hash: 7bfd3dac811ae95bfd09495e88377dfbaacda393
2023-08-24 10:42:06 -07:00
Dean Lee c4ae679878 ui/map: delete map after unsubscribing from prime (#29136)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

old-commit-hash: 792ad7d81677ebb95888541bac14fb6089c1e5fc
2023-08-24 16:51:53 +01:00