Commit Graph

10409 Commits

Author SHA1 Message Date
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
Shane Smiskol ed6e72ae1f car/__init__: missing ending newline 2023-08-25 00:43:29 -07:00
Shane Smiskol ae2a6537b7 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
2023-08-24 21:11:01 -07:00
Adeeb Shihadeh 465a72a87d bump panda (#29619)
Co-authored-by: Comma Device <device@comma.ai>
2023-08-24 19:22:48 -07:00
Adeeb Shihadeh 36cc41f619 CI: remove redundant apt installs (#29617)
* CI: remove redundant apt installs

* split build and test

* faster build
2023-08-24 17:32:15 -07:00
Adeeb Shihadeh e863828051 CI: workaround syntax error in azure lib (#29618) 2023-08-24 17:18:11 -07:00
Justin Newberry 90cb417caa CI: use GITHUB_ENV for env variables (#29616)
export doesn't work across steps
2023-08-24 17:03:25 -07:00
Mitchell Goff e2e39d100b 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
2023-08-24 17:00:26 -07:00
Harald Schäfer 8205590624 Locationd: enable laikad (#29570)
* experiment

* llk back

* update refs

* update ref

* no internet

* Update ref
2023-08-24 16:51:45 -07:00
Justin Newberry 1ee6ed4b16 Linter: remove pylint (#29611)
remove pylint
2023-08-24 16:30:54 -07:00
Justin Newberry ede9f2cda5 CI: fix docker push (#29614)
* fix those

* fix docker push too

* dont need that twice
2023-08-24 16:30:33 -07:00
Justin Newberry 3d9f238bf9 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
2023-08-24 16:09:08 -07:00
mitchellgoffpc 7dae580441 Moved thneed src to top of modeld sconscript 2023-08-24 15:12:01 -07:00
Shane Smiskol b8fb260558 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?
2023-08-24 15:09:30 -07:00
Bruce Wayne e7418cfa39 KF1D: add steady state kalman code 2023-08-24 15:04:47 -07:00
Adeeb Shihadeh 4917e22615 Minimal build (#29600)
* add build flag for minimum build

* add minimal build

* update

* fix pj

* bump opendbc

* update subaru
2023-08-24 14:58:30 -07:00
Shane Smiskol b9d77afd7e ui/map: initialize speed filter with current speed (#29605)
fix map starting from 0 zoom
2023-08-24 14:53:47 -07:00
mitchellgoffpc fc8c97e7a9 Some cleanup in modeld sconscript 2023-08-24 14:41:04 -07:00
mitchellgoffpc a184d40b7a Disable error message in thneed ioctl interceptor to fix pyenv issues 2023-08-24 14:41:04 -07:00
Shane Smiskol 54e98fa888 C++ FirstOrderFilter: add initialized flag (#29602)
add initialized flag with default to not change behavior
2023-08-24 14:33:11 -07:00
Dean Lee d54fa5c7f1 v4l_encoder: fix error handling for poll (#29166)
* fix error handling for poll

* revert

---------

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

* draft 2

* increase deadline and run

* imports

* run -> use
2023-08-24 10:45:50 -07:00
Dean Lee 7bfd3dac81 cpplint: add filter whitespace/comma (#29595) 2023-08-24 10:42:06 -07:00
Dean Lee 792ad7d816 ui/map: delete map after unsubscribing from prime (#29136)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-24 16:51:53 +01:00
Dean Lee 20e8170399 common/i2c: remove duplicate #include (#29594) 2023-08-24 16:21:03 +01:00
Dean Lee 9c7bf50703 cpplint: add filter whitespace/tab (#29588) 2023-08-24 08:06:58 -07:00
Cameron Clough 74b9a6af9e add missing openpilot prefix to imports 2023-08-24 15:46:56 +01:00
Dean Lee 21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Adeeb Shihadeh d013f2174a manager: refactor process starting logic (#29574)
* refactor into sane api

* always set

* cleanup

* cleanup

* and there too

* fix order

* fail

* and ensure we test

* pass test

pass test

* order

* only diff not related

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-24 06:00:55 -07:00
Shane Smiskol d58cb9994f car interface test: pick from possible ECUs (#29593)
pick from possible ecus
2023-08-24 05:27:58 -07:00
Cameron Clough 05e91c074d ui: hasPrime/primeChanged helper (#29590) 2023-08-24 12:47:22 +01:00
Cameron Clough 102047013f bump cereal 2023-08-24 12:42:08 +01:00
Dean Lee 99279b8eef ui: use enum PrimeType for prime_type (#29491) 2023-08-24 12:26:45 +01:00
Shane Smiskol e38ce6087f car interfaces test: don't sleep (#29589)
don't sleep in test_car_interfaces
2023-08-24 04:24:22 -07:00
Shane Smiskol 84b897cf44 manager: test process exclusion (#29586)
* add test

* add comment

* Update selfdrive/manager/test/test_manager.py

* more accurate
2023-08-24 00:34:36 -07:00
Dean Lee 3c94d953ab replay: fix visionbuf alignment on device (#26913)
* align visionbuf

* update test case

* cleanup

* fix cpplint warning
2023-08-24 00:03:16 -07:00
Justin Newberry da7504e1e7 CI: Normalize file permissions (#29584)
* normalize file permissions

* comment

* add comment

* remove that

* shell

* should be on the top
2023-08-23 23:50:51 -07:00
Dean Lee 4ea7833060 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 23:32:01 -07:00