Commit Graph

8267 Commits

Author SHA1 Message Date
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
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
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
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
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 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
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
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
Dean Lee 228d30d5a9 cpplint: add filter whitespace/tab (#29588)
old-commit-hash: 9c7bf50703e4da45163e175766b4bdfabcb9916c
2023-08-24 08:06:58 -07:00
Cameron Clough 2b38b62afe add missing openpilot prefix to imports
old-commit-hash: 74b9a6af9e10e97f1686732ab7b6ba0ace597c48
2023-08-24 15:46:56 +01:00
Dean Lee 0984736972 cpplint: add filter build/include_subdir (#29585)
old-commit-hash: 21da5a216fc8f5269d2deedc538c2f543a1c270a
2023-08-24 15:42:17 +01:00
Adeeb Shihadeh 5bc6566e7c 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>
old-commit-hash: d013f2174adf8ffbf2ba86e2656cf438930850a6
2023-08-24 06:00:55 -07:00
Shane Smiskol 9564eba598 car interface test: pick from possible ECUs (#29593)
pick from possible ecus
old-commit-hash: d58cb9994f678ad8625b5af8fee53ca2edffd334
2023-08-24 05:27:58 -07:00
Cameron Clough c7820cf1cc ui: hasPrime/primeChanged helper (#29590)
old-commit-hash: 05e91c074d0fbabfd3475d4f34b975819159519b
2023-08-24 12:47:22 +01:00
Dean Lee c6db4c515c ui: use enum PrimeType for prime_type (#29491)
old-commit-hash: 99279b8eef43586aa09d001668355fa41e01b98f
2023-08-24 12:26:45 +01:00
Shane Smiskol 820ca41f1a car interfaces test: don't sleep (#29589)
don't sleep in test_car_interfaces
old-commit-hash: e38ce6087fe56068de40dbbc57944ddf68b8642c
2023-08-24 04:24:22 -07:00
Shane Smiskol 8326f9f90c manager: test process exclusion (#29586)
* add test

* add comment

* Update selfdrive/manager/test/test_manager.py

* more accurate
old-commit-hash: 84b897cf44104d964834979d6fc34822baa999bf
2023-08-24 00:34:36 -07:00
Dean Lee f7efad93e4 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 4ea78330605cc3e46005e3d0f8915ef8a60c952a
2023-08-23 23:32:01 -07:00
Dean Lee 56b582a059 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
old-commit-hash: ac939029835542a02b866e8a0d174f09773e4e6e
2023-08-23 22:46:02 -07:00
Shane Smiskol acec4fc22f Subaru: Forester Hybrid 2020 dashcam (#24770)
* Add support for Forester Hybrid 2020

Co-authored-by: martinl <martin@mlp.ee>

* it's a param now

* make it work

* fix

* merge and cleanup

* remove duplicate

* should be forester

* bump submodules

* should be abs

* add missing params

* still need a test route

* still need a test route

* consitent

* here too

* todo

* more

* Update selfdrive/car/tests/routes.py

* clean up

---------

Co-authored-by: martinl <martin@mlp.ee>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 3719be8b76f81068da3aadd5bd0f76e8a4d00396
2023-08-23 21:30:12 -07:00
Irene 1a787910a8 Toyota: add TODO comment for TSS-P BSM (#28396)
* Toyota: enable BSM on C-Hr

* Update selfdrive/car/toyota/carstate.py

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>

* remove duplicate block

* Remove useless addition

* make this a comment for now

* remove extra bit

* clean up

* clean up

---------

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cb342461f03e6ff0e6eccbe5de55796b44e659f1
2023-08-23 20:52:01 -07:00
Harald Schäfer c6d12893f6 Laikad: ignore more garbage measurements (#29569)
* Laikad: ignore more garbage measurememnts

* bump laika
old-commit-hash: f4f8047e979c3366ab4ecd7527cc6daf01f126db
2023-08-23 19:48:55 -07:00
Adeeb Shihadeh 56facfcc5a Subaru: Crosstrek Hybrid dashcam mode (#25378)
* Subaru: Crosstrek Hybrid support

* hybrid cars in dashcam only

* revert that

* just dashcam

* tah should be abs

* remove unused import

* use the old dbc for now

* hybrid car exceptions in carstate

* need dashstatus until we get a proper cruiseactivated bit

* missing CP

* merge conflicts

* lets be consistent about extend

* cleanup

* fix and comments

* preglobal fix

* and the rest

* and this

* added hybrid to release

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 973d90be779efc0e4a83eeab213c0cc9b4d711ce
2023-08-23 18:50:55 -07:00
Gellis12 e311487192 Add initial fingerprint 2.0 for Nissan Leaf 2018-23 (#29505)
Initial fingerprint 2.0 for Nissan Leaf 2018-23
old-commit-hash: a0f3b830622a2ebee2a718554c542cb208b10acf
2023-08-23 17:46:34 -07:00
Erich Moraga 01a8a30fe8 Toyota: add engine & fwdRadar ECU versions for 2023 Toyota Camry Hybrid (#29508)
`@Varvaras` 2023 Toyota Camry Hybrid  Dongle ID/route 3a47f2dd831feb30|2023-08-20--19-41-21
old-commit-hash: ba1ad422d74622a6e565a1b5bed97cf379173e21
2023-08-23 17:37:38 -07:00
pencilpusher cc4f6c5fbe ui/map: keep the car icon aligned to its bearing (#29482)
* rotate icon with current bearing

When user is rotating the map, the car icon should stay fixed on the cars bearing, not the map.

* spacing

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 472151b6a004d387532415039196c2165f7d32df
2023-08-23 17:33:58 -07:00
Dean Lee 5ac4f52c6f ui/PrimeUserWidget: cleanup layout (#29492)
cleanup layout

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 5fcb7e9038ec9054dcdb8d9b832bea2f597d6aa9
2023-08-23 16:34:18 -07:00
Dean Lee 7b4400f2c6 scons: remove missing MPC headers (#29485)
* remove invalid files

* Update selfdrive/controls/lib/lateral_mpc_lib/SConscript

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* Apply suggestions from code review

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 55cca6ed2669829a77ce660625b2fc8d73bf02bf
2023-08-23 15:43:27 -07:00