Commit Graph

11132 Commits

Author SHA1 Message Date
Adeeb Shihadeh 01ee6fd1bb add pytest-cpp package (#29828)
* add pytest-cpp package

* disable for now
old-commit-hash: 773d0944d8b51fe2a64c13f0a9b6b0ff9457cf4f
2023-09-07 19:42:30 -07:00
Adeeb Shihadeh 85ef987bfe ubloxd: remove unused file (#29829)
old-commit-hash: 4111ac36b2d676e4a8014b8728f3487b5252892d
2023-09-07 19:29:34 -07:00
Shane Smiskol 2892856291 Hyundai: remove bad Kona EV 2022 query responses
old-commit-hash: b822a57ed66bf0dca1403319c193bfbb58a7a428
2023-09-07 19:24:19 -07:00
Justin Newberry 5b1e60f5da Pytest: enforce a default timeout (#29793)
* pytest: enforce default timeout

* disable that for now

* 30 second timeout on tests
old-commit-hash: b0a71d45536d6fe0c0e8365913c6ffbc64a58b1b
2023-09-07 17:53:51 -07:00
Adeeb Shihadeh 268337f32b fix RateKeeper test
old-commit-hash: f197decbc901d2bc2320db507aecae3b040fd7ee
2023-09-07 16:47:33 -07:00
Justin Newberry 37e4b2cba9 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
old-commit-hash: dde225221e8fa0063bb52786232be33b8374dfcd
2023-09-07 16:29:36 -07:00
Justin Newberry 1b35278d95 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>
old-commit-hash: fb06b98667483bbf9d62b16d7f5aa5e50721f597
2023-09-07 15:28:46 -07:00
Mitchell Goff f9daa1d1cc 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
old-commit-hash: 0c0af682a13753a3db971b12c2852cfddf1e5b49
2023-09-07 14:39:37 -07:00
Justin Newberry dc6078a6c3 System: use paths for download folders too (#29818)
* use paths for download folders too

* trailing slash

* reset that
old-commit-hash: 73eda51a11955627f4d149fdf12c1c781983d52e
2023-09-07 12:49:03 -07:00
Justin Newberry c7029ea15a 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
old-commit-hash: bfe990b112a83f245bb5244553c84202aec7d86c
2023-09-07 11:32:47 -07:00
Dean Lee 2716ef3a23 cabana: speed up exit (#29813)
old-commit-hash: 74daab120d8528bc39c4cc74df5bf4ee46ccc9d9
2023-09-07 11:30:53 -07:00
Kacper Rączy f0c3036ad1 radard: expose radarTrackId for radar leads (#29809)
* Add radarState track identifier for debugging purposes

* update process replay ref
old-commit-hash: 0267e0500c49ccbd00c58a8911e2446c7b8c614f
2023-09-07 11:24:54 -07:00
Dean Lee 12e1815720 cabana: regenerate car_fingerprint_to_dbc when DBC files change (#29815)
old-commit-hash: 0f942a228d6d354bf32069a5167d0d8c9002c47b
2023-09-07 11:22:03 -07:00
Justin Newberry 1dbc11646b bump panda (#29814)
old-commit-hash: 8fd4e1a7a7f1aac6ec9f715e4db9d895d75067c1
2023-09-07 10:22:07 -07:00
Vivek Aithal 43ce3d16df 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
old-commit-hash: dbada885acf6418edbf6d781dc79fb85dfa74117
2023-09-06 21:01:01 -07:00
Justin Newberry a1b0f02051 Subaru: don't copy eyesight counters, calculate manually (#29533)
* subaru manual counters

* update ref

* that isn't used

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

* comment out

* clean up
old-commit-hash: 96fd66e4e294c05601a93fd298740a6dfebf564e
2023-09-06 15:47:21 -07:00
Adeeb Shihadeh 0010c9a986 Revert "params: safe and efficient async writing parameters (#25912)"
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.

old-commit-hash: ec479322d3d8d789290bee68919d14b040481d53
2023-09-06 13:44:20 -07:00
Dean Lee aafed83acc ui/CameraView: fix divide by zero issue (#29770)
old-commit-hash: a1306114bc8de7d55137258088d8d042afb86018
2023-09-06 13:25:40 -07:00
Kacper Rączy 2092a38bde disable metadrive on linux/aarch64 (#29802)
old-commit-hash: 2487db14b06df91d43d277c4e4a35cce2baa1bc6
2023-09-06 21:29:36 +02:00
Justin Newberry e468072f1f 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
old-commit-hash: 917f71d4460bf5503190ade72a3fa760b64dca66
2023-09-06 11:11:15 -07:00
Justin Newberry ef1155469b Precommit: do a sanity check on github workflows (#29790)
* sanity check on github actions

* That one doesn’t apply to us
old-commit-hash: d3c5ac554548367610ef289ef6bdb15b56767476
2023-09-06 10:40:52 -07:00
Dean Lee 8673038aa1 cabana: fix stuck on exit (#29796)
fix ctrl+c can't exit when stream dialog displayed on startup
old-commit-hash: 7f23e69cb126941ad736cf100e28fb67f5827f48
2023-09-06 10:34:15 -07:00
Dean Lee 87c8ec0e5c replay: fix concurrency issues (#29797)
fix concurrency issues
old-commit-hash: bbf133a2e505bee6dc502a3b636a59ae6b254798
2023-09-06 10:34:01 -07:00
Dean Lee 64c3dc5ad6 cabana: add empty check before insert events (#29798)
old-commit-hash: 60593660e61e3ede35ecb401ca0714eaac5edf52
2023-09-06 10:24:58 -07:00
Igor Biletksyy e0d733ccfd bump panda
old-commit-hash: 001df43194734e6de2f798b619a6f992cea5dea5
2023-09-06 10:00:36 -07:00
Justin Newberry 85af024d45 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>
old-commit-hash: ec945dc53d172ce51d720e0e46ed9f814dd7d90a
2023-09-06 09:26:16 -07:00
Dean Lee 08e70aecb2 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>
old-commit-hash: 0d797f4e8b2552192669d0329c14849f0a970066
2023-09-06 08:50:28 -07:00
Dean Lee 6394bf09d3 cabana: fix crash when no can events in the log (#29795)
fix crash when no events
old-commit-hash: 0afcf1236818f20e159cc2565e57814a08acd883
2023-09-06 02:36:07 -07:00
Eric Day 8702d1b967 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>
old-commit-hash: 89d6bc6c7b6b4e55cf573dc1ebcf88533d7baee4
2023-09-06 01:36:16 -07:00
Shane Smiskol 76322812b0 PlotJuggler: add control gains to longitudinal layout (#29794)
* add longitudinal control gains to long layout

* needless changes

* needless changes

* needless changes
old-commit-hash: 2c87cd24cecf28da8cb5291c731a8c9e949b0c72
2023-09-06 01:33:52 -07:00
Jason Wen 30e06a8dd3 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>
old-commit-hash: d7d751160de3899c52a51654701505e3aa24eb66
2023-09-06 00:48:17 -07:00
Jason Wen 52c3d176c1 Hyundai longitudinal: enable for IONIQ_PHEV (#29777)
* Hyundai longitudinal: enable for `IONIQ_PHEV`

* add test route
old-commit-hash: a552fafd8864bfb31a6e0f042f2816f276f6e66e
2023-09-06 00:05:44 -07:00
DevTekVE 82223e39ea Hyundai: Ioniq 2020 PHEV EUR fingerprint (#29775)
old-commit-hash: 77f050bb4c0694d6e6f8c81c1c6ab734016b92de
2023-09-06 00:04:31 -07:00
Shane Smiskol 9fefac8bcc test_models: detect when OBD multiplexing/fingerprinting (#29759)
* wait to leave elm mode before checking relay malfunction

* clean up

* clean up

* pycharm is best

* clean up

* more

* use pandaStatesDEPRECATED

* fix

* use constant

* only radar

* cmt

* set inline

* comment and re-arrange

* enable for relay malfunc check

* down here

* Update selfdrive/car/tests/test_models.py

* rm

* don't affect other tests

* up here

* one line

* update cmt

* no tolerance

* Revert "no tolerance"

This reverts commit 41b1c7e8beda87a878c3bb1f37ec96b256965966.

* comment is real solution

---------

Co-authored-by: Kacper Rączy <gfw.kra@gmail.com>
old-commit-hash: 5d1550de871b0ac036b1dd44545fd7ff17fb91cd
2023-09-05 21:22:36 -07:00
Adeeb Shihadeh 53e0f5eb49 pytest: use a clean environment for all tests (#29788)
* pytest: use a clean environment for all tests

* rm that

* fix pj

* put build back

* fix params

* fix that

* handle no key

* that was removed

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 7b6afbc1623b8c159a92f6a5a951fb4d688045ee
2023-09-05 18:52:40 -07:00
Justin Newberry 3b91610c0b Precommit: ensure executable bit is set (#29784)
* precommit ensure executable

* exclude tinygrad

* bump submodules

* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
Shane Smiskol f66d09848a bump panda (#29786)
bump
old-commit-hash: 22487db9c8ad3480152785ab74fd3e1e7c41d6de
2023-09-05 16:01:28 -07:00
Adeeb Shihadeh 6a3da36632 sensord: test updates for provisioning (#29768)
* sensord: test updates for provisioning

* fix

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0908be80bda09d7cc476693ab17208cf0fca4ded
2023-09-05 15:32:57 -07:00
Jason Wen 21b75589d1 Hyundai longitudinal: enable for IONIQ (#29778)
* Hyundai longitudinal: enable for `IONIQ`

* add test route
old-commit-hash: a0b49d54222c52ff0112c402bc0e0d9262e77a66
2023-09-05 14:15:18 -07:00
Justin Newberry 1ed42179c3 Pytest: don't rerun cereal unittests (#29781)
pytest don't rerun cereal
old-commit-hash: 16c99e3e7febdac58cc67726768f6413a6cbf74f
2023-09-05 14:06:03 -07:00
Justin Newberry 8062f1636e Tests: speedup locationd (#29776)
* speedup locationd

* bump cereal
old-commit-hash: dcea56bcf343344818060f0c2e6a8ff8e5119b08
2023-09-05 12:45:18 -07:00
Adeeb Shihadeh 2fd417df74 Update Python packages and pre-commit hooks (#29774)
Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
old-commit-hash: e0eb4d726c1f645c3694425662ecb135aa000d79
2023-09-05 20:02:21 +01:00
ZwX1616 641d52aa2d ui: brighten cameraview (#29744)
* test

* test2

* Revert "test2"

This reverts commit 22e38f82ae81f625f00179413f4c5f869a6de23e.

* Revert "test"

This reverts commit 717490c1bcddcd5339aed85d4716a58495a5c52c.

* looks fine

* mid

* description

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a08cdfdda7e1a2bc50024bffc45295a322da42f9
2023-09-05 10:59:58 -07:00
sgtcurry 8d17df870f 2023 Ford Maverick Ecoboost engine firmware (#29762)
* Update values.py

23 maverick ecoboost engine fw

* Update values.py

* Update values.py

* sorted

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: ed7a0bf0f9cb6f0ea6efcf0ab3cf32a2e3dc9f2d
2023-09-04 12:05:57 -07:00
Justin Newberry 839e72de70 CI: use pytest for unittesting (#29709)
* switch to pytest

* static analysis

* fix the helpers

* static analysis

* remove that

* more parallel test

* cleanup

* static analysis

* durations min and tolerance

* reduce those iterations

* sleep time could be decreased too

* in case it's negative

* try using caching

* remove parallelization for first PR

* PR Cleanup

* reduce diff

* fix that

* bump panda
old-commit-hash: ca435d344714f08276f9f9da5039f730987f31fa
2023-09-04 11:54:35 -07:00
Harald Schäfer d32d4962af Soundd: Give each alert a volume (#29767)
* Give each alert a volume

* Update sound.h
old-commit-hash: 75ead2c38980437c617fbb8c02bf0e53cfbe9682
2023-09-04 11:15:06 -07:00
Justin Newberry 8b7c706ff3 Subaru: impreza 22 fingerprint (#29765)
add fingerprint
old-commit-hash: f4f92f1a2fba9358f7a529b9f5c28d90c9691d08
2023-09-03 13:12:31 -07:00
Greg Hogan ada436be39 gnss raw measurements through nmea port (#29745)
* gnss measurements through nmea port

* document values

* flags always zero

* fix linter errors

* fix linter errors
old-commit-hash: de97d32fe0a019186eee03d4bf39d85a2d62dfd8
2023-09-02 16:58:34 -07:00
Arun Kapil 5dfd03eded HKG: Add fingerprint for US Kia Sorento Hybrid 2023 (#29757)
Added fwdCamera ECU fingerprint for US model of 2023 Kia Sorento HEV 4th Gen
old-commit-hash: e51f50b0348ebea6f9496c0817e491c5dd63b9c7
2023-09-01 21:06:45 -07:00