Commit Graph

12534 Commits

Author SHA1 Message Date
Mitchell Goff
2d69f3d63e Update model input names to match onnx inputs (#29855)
Updated model input names to match onnx inputs
2023-09-08 16:06:16 -07:00
Shane Smiskol
c61479b1ae Hyundai: add platform code fuzzy FW test (#29847)
add test to assert no crashing
2023-09-08 15:15:22 -07:00
Kacper Rączy
b09ec6bb5b docker: fix multiarch tag push (#29850)
Fix multiarch merge script
2023-09-08 15:03:40 -07:00
Justin Newberry
0adc2f20c2 Prefix: cleanup more folders (#29848)
cleanup downloads folders
2023-09-08 14:54:15 -07:00
Kacper Rączy
1344a93a35 docker: multiarch images (amd64/aarch64) (#29691)
* arch specific tags

* merge multiarch script

* arm64 build and merge jobs

* update tag script

* casual ci test

* change image to 2204

* docker -v test

* arch specific naming

* Remove test_buildjet

* build -arch images only when CURRENT_ARCH_BUILD is set

* support new tags in tag_multiarch

* Toggle CURRENT_ARCH_BUILD on in ci

* Docker common

* Fix condition

* Fix path to docker_common

* Add more stuff to common

* Add build_arm job

* composite job for building

* Run checkout before build composite

* add shell arg

* move timeout to selfdrive_tests

* TARGET ARCHITECTURE var

* Support TARGET_ARCHITECTURE in workflow

* Rewrite to Single build job with matrix

* Remove shebang from docker_common

* Attempt for fix build matrix

* Remove setup arch

* build matrix for docker push

* Use 2vcpu for arm build

* 2vcpu for docker_push too

* temporarly unlock docker_push

* Remove requirement for target arch when pushing

* Unset target architecture in docker_push cl

* fix sha tags

* Rename action to compile-openpilot

* move push_image line to tag_multiarch step

* arch suffix for scons cache

* cache_key_prefix for setup-with-retry

* Re-disable docker_push on non-master

* Add newlines
2023-09-08 14:46:39 -07:00
Adeeb Shihadeh
fb1b1f15aa mock car cleanup (#29835)
* mock car cleanup

* fix
2023-09-08 14:03:14 -07:00
Adeeb Shihadeh
947abbcba0 fixup power draw test output (#29844)
* fixup power draw test

* no pytest
2023-09-08 13:01:04 -07:00
Justin Newberry
110cfef1c2 Ruff: disallow non-openpilot imports (#29841) 2023-09-08 10:43:02 -07:00
Adeeb Shihadeh
c96fe132e8 CI: increase model replay timeout 2023-09-08 10:41:54 -07:00
Jason Wen
d9ce8ab716 Hyundai: Add FW Versions for Kona Electric 2023 (#29805)
* Hyundai: Add FW Versions for Kona Electric 2023

* Update selfdrive/car/hyundai/values.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-08 00:39:48 -07:00
Shane Smiskol
3a7a42cf5b Hyundai: add comment about date codes in ABS FW 2023-09-08 00:34:27 -07:00
Shane Smiskol
aee6629690 bump panda (#29837) 2023-09-08 00:13:40 -07:00
Dean Lee
e9c1cf3b5a cabana/Sconscript: add back dependency on #opendbc (#29832)
add dep on #opendbc
2023-09-07 23:59:02 -07:00
Dean Lee
7816edda57 common/params: not copyable (#29834) 2023-09-07 21:44:58 -07:00
Adeeb Shihadeh
0d042624ae Revert "add pytest-cpp package (#29828)"
This reverts commit 773d0944d8.
2023-09-07 20:40:25 -07:00
Mitchell Goff
503fa121ee Rewrite dmonitoringmodeld in python (#29740)
* Added dmonitoringmodeld.py

* Removed dmonitoringmodeld.cc

* Use ModelRunner helpers from runners/__init__.py

* Fixed DriverStateResult field ordering

* Some bug fixes

* Set calib input

* Look ma, no loop!

* Bump dmonitoringmodeld cpu usage in test_onroad

* Fixed memory leak caused by np.ctypes.data_as

* Formatting fixes

* chmod +x

* remove USE_ONNX_MODEL

* Realtime priority 1, formatting fixes
2023-09-07 19:46:43 -07:00
Adeeb Shihadeh
773d0944d8 add pytest-cpp package (#29828)
* add pytest-cpp package

* disable for now
2023-09-07 19:42:30 -07:00
Adeeb Shihadeh
4111ac36b2 ubloxd: remove unused file (#29829) 2023-09-07 19:29:34 -07:00
Shane Smiskol
b822a57ed6 Hyundai: remove bad Kona EV 2022 query responses 2023-09-07 19:24:19 -07:00
Justin Newberry
b0a71d4553 Pytest: enforce a default timeout (#29793)
* pytest: enforce default timeout

* disable that for now

* 30 second timeout on tests
2023-09-07 17:53:51 -07:00
Adeeb Shihadeh
f197decbc9 fix RateKeeper test 2023-09-07 16:47:33 -07:00
Justin Newberry
dde225221e CI: run unittests in parallel with xdist (#29756)
* parallel tests

* review suggesions

* add to pyproject

* add a bit more buffer on that

* fix rare athena issue

* remove from pypoetry
2023-09-07 16:29:36 -07:00
Justin Newberry
fb06b98667 Subaru: remove 2020+ temporary steering faults (#29116)
* subaru steer faults

* it takes a bool now

* Update selfdrive/car/subaru/carcontroller.py

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

* that was removed

* should be abs

* bump panda

* bump panda

* subaru faults

* add fixme

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

* review suggestions

* still want zero steer when lat not active

* bump submodules

* move it under the non-preglobal section

* better comment for steer limited

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-07 15:28:46 -07:00
Mitchell Goff
0c0af682a1 Rewrite navmodeld in python (#29579)
* Added navmodeld.py

* Deleted navmodeld.cc

* Write SConscript config flags to config.py

* Remove deleted files from release/files_common

* Some more bug fixes

* Added config.py to gitignore

* Get rid of config.py

* Use set_realtime_priority

* A tiny bit more cleanup

* set realtime priority 1

* Use ModelRunner helper class from runners/__init__.py

* Formatting fixes

* mama mia that's a SPICY memory leak
2023-09-07 14:39:37 -07:00
Justin Newberry
73eda51a11 System: use paths for download folders too (#29818)
* use paths for download folders too

* trailing slash

* reset that
2023-09-07 12:49:03 -07:00
Justin Newberry
bfe990b112 System: cleanup paths to use a common class (#29816)
* use OP prefix for logmessage

* cleanup paths too

* cleanup the paths too

* add hw.py to release

* fix those issues

* fix unittests

* fix unittests

* fix unittests

* do swaglog_ipc properly across all the files

* fix that

* fix swaglog in c++

* review suggestions
2023-09-07 11:32:47 -07:00
Dean Lee
74daab120d cabana: speed up exit (#29813) 2023-09-07 11:30:53 -07:00
Kacper Rączy
0267e0500c radard: expose radarTrackId for radar leads (#29809)
* Add radarState track identifier for debugging purposes

* update process replay ref
2023-09-07 11:24:54 -07:00
Dean Lee
0f942a228d cabana: regenerate car_fingerprint_to_dbc when DBC files change (#29815) 2023-09-07 11:22:03 -07:00
Justin Newberry
8fd4e1a7a7 bump panda (#29814) 2023-09-07 10:22:07 -07:00
Vivek Aithal
dbada885ac locationd: Add camera-IMU cross-checks (#29727)
* camera-gyro cross checks, but one way

* increase factor to account for gyro noise (potholes, bad roads etc

* increase factor to reduce FP with device taps, bad roads, etc

* factor to 30

* add inputsok to sensoir data invalid alert

* bugfix

* move the sensors check

* add localizer catchall alert

* update refcommit

* remove permanent alert

* revert sensorDataInvalid alert change, split into new PR
2023-09-06 21:01:01 -07:00
Justin Newberry
338288df6e Subaru: don't copy eyesight counters, calculate manually (#29533)
* subaru manual counters

* update ref

* that isn't used

* review suggestions
2023-09-06 16:08:59 -07:00
Shane Smiskol
96fd66e4e2 navd: locationd is only trusted source (#29803)
* finish revert for https://github.com/commaai/openpilot/pull/27579

* comment out

* clean up
2023-09-06 15:47:21 -07:00
Adeeb Shihadeh
ec479322d3 Revert "params: safe and efficient async writing parameters (#25912)"
This reverts commit 0d797f4e8b.
2023-09-06 13:44:20 -07:00
Dean Lee
a1306114bc ui/CameraView: fix divide by zero issue (#29770) 2023-09-06 13:25:40 -07:00
Kacper Rączy
2487db14b0 disable metadrive on linux/aarch64 (#29802) 2023-09-06 21:29:36 +02:00
Justin Newberry
917f71d446 CI: retry setup on failure (#29785)
* try a setup action

* should be uses

* fix that formatting

* try conclusion

* continue on error

* try without hyphens

* only when failure

* make it optional

* continue on error

* those don't fail anymore

* what about 3 failures

* remove stuff for debugging

* cleanup

* review suggestions

* change that too

* fix pj
2023-09-06 11:11:15 -07:00
Justin Newberry
d3c5ac5545 Precommit: do a sanity check on github workflows (#29790)
* sanity check on github actions

* That one doesn’t apply to us
2023-09-06 10:40:52 -07:00
Dean Lee
7f23e69cb1 cabana: fix stuck on exit (#29796)
fix ctrl+c can't exit when stream dialog displayed on startup
2023-09-06 10:34:15 -07:00
Dean Lee
bbf133a2e5 replay: fix concurrency issues (#29797)
fix concurrency issues
2023-09-06 10:34:01 -07:00
Dean Lee
60593660e6 cabana: add empty check before insert events (#29798) 2023-09-06 10:24:58 -07:00
Igor Biletksyy
001df43194 bump panda 2023-09-06 10:00:36 -07:00
Justin Newberry
ec945dc53d Subaru: add GEN1 longitudinal test route (#29753)
* add long route

* fix duplicates

* need to bump that slightly up

* commented for now

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

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 09:26:16 -07:00
Dean Lee
0d797f4e8b params: safe and efficient async writing parameters (#25912)
* Safe and efficient asynchronous writing parameters

* call putNonBlocking in locationd

* remove space

* ->AsyncWriter

* remove semicolon

* use member function

* asyc write multiple times

* add test case for AsyncWriter

* merge master

* add missing include

* public

* cleanup

* create once

* cleanup

* update that

* explicit waiting

* improve test case

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-09-06 08:50:28 -07:00
Dean Lee
0afcf12368 cabana: fix crash when no can events in the log (#29795)
fix crash when no events
2023-09-06 02:36:07 -07:00
Eric Day
89d6bc6c7b Toyota: detect TSS-P CAN filter device as smartDsu to enable long (#28387)
* detect tss-p canfilter device as smartDsu to enable long

* Add canfilter test case

* add comment, behind alpha long

* add doc

* safe

* update check

* cmt

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 01:36:16 -07:00
Shane Smiskol
2c87cd24ce PlotJuggler: add control gains to longitudinal layout (#29794)
* add longitudinal control gains to long layout

* needless changes

* needless changes

* needless changes
2023-09-06 01:33:52 -07:00
Jason Wen
d7d751160d Nissan Altima: specify panda flag for alternate EPS bus (#29783)
* Nissan Altima: Specify panda flag for alt bus safety config

* bump

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-09-06 00:48:17 -07:00
Jason Wen
a552fafd88 Hyundai longitudinal: enable for IONIQ_PHEV (#29777)
* Hyundai longitudinal: enable for `IONIQ_PHEV`

* add test route
2023-09-06 00:05:44 -07:00
DevTekVE
77f050bb4c Hyundai: Ioniq 2020 PHEV EUR fingerprint (#29775) 2023-09-06 00:04:31 -07:00