Commit Graph

10172 Commits

Author SHA1 Message Date
ZwX1616 dc2470176b loggerd does not need to babysit this
old-commit-hash: e29fd900583b88f23883afd0a28e7ad06f0ff597
2020-10-06 18:46:22 -07:00
Willem Melching 13769c0287 Update radard cpu usage
old-commit-hash: 079c878adf24f1374a687138d70f6802ed030a93
2020-10-06 12:16:12 +02:00
Adeeb Shihadeh 8eeaea6cce fix not going onroad on clean dashcam install (#2280)
old-commit-hash: 81763a18b5d0e379b749e090ecce36a91fca7c43
2020-10-06 11:10:45 +02:00
Adeeb Shihadeh daad4ce4d6 write car params before profiling
old-commit-hash: 176c06499de585cc2c96484d442ee79fd0df844e
2020-10-05 21:34:57 -07:00
Adeeb Shihadeh 2f754f6df4 don't want to profile that
old-commit-hash: 67091060253a94d921460ad2bb4d8c5f2685dc07
2020-10-05 20:48:23 -07:00
Adeeb Shihadeh 413d7a4243 paramsd profiling
old-commit-hash: 0d11acf34ea7cf23d00d206fcd284bdf8b9f5d54
2020-10-05 20:41:24 -07:00
Willem Melching 416bc987f5 Fix calibration invalid alert on startup (#2270)
* change controlsd calibration initial value

* update refs

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3f88df62c76ee91deda15063bb2803f391c3912e
2020-10-05 19:16:52 -07:00
Adeeb Shihadeh 69946508db bump cereal
old-commit-hash: 70bc935210c8b948ab20f1d72fd2c6a6884d4cfd
2020-10-05 18:43:21 -07:00
ZwX1616 6d3dc46b8f transient considerations (#2276)
old-commit-hash: 55351859a73f412fdd52b2166298f9ed354ce6c1
2020-10-05 15:41:17 -07:00
ZwX1616 a9d6c98aa4 Reduced wheel touch time (#2259)
* decrease wheel touch time

* update refs

* fix unittest

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 21d4ac1eebba06769f03edf7220ce84bd6ae154d
2020-10-05 14:39:24 -07:00
Willem Melching 03b2a6a137 LSM6DS3 (#2268)
* add initial lsm6ds3 setup

* accel works

* ignore lsm6ds3 in locationd

* add gyro

* add temp

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e51da619c15dea3ac6cc77f4f9a387923e2a3ea6
2020-10-05 16:16:25 +02:00
grekiki 67b02775da CI: Add valgrind (#2245)
* prepare a test for valgrind by fixing linter issues

* something went wrong

* Try update cereal

* Not working, fixing replay_learning.py

* Testing

* Testing

* Working now

* More logs, a bit of cleaning, still no idea how this works

* Ok got 10% cleaning done

* trying some stackOverflow code

* Lots of cleaning

* wip

* Delete valgrind_testing.py

* Delete replay_learning.py

* Add to CI, cannot fail though

* Add to CI, cannot fail though

* Now the unit test should fail

* Dump valgrind output in case of a failure

* fix subrepos

* fix subs

* hopefully fixes every issue that we have

* wait for message confirmation

* Revert "wait for message confirmation"

This reverts commit ad7ba280ec6536015ac1a442c9732bfe42fd5664.

* fix local issues

* Revert "fix local issues"

This reverts commit 4498df21df471fa6e9360d50407eaefdf24ae69f.

* attempt 3 to fix things

* untested function extraction

* refactor

* add valgrind task

* add delay and BASEDIR

* Make test not fail, it is not designed for that

* fix subrepositories

* fix tests

* Real fix now :)

* scons

* ... stupid CI

* fix valgrind CI

* Update test.yaml

* Update test.yaml

* Update test.yaml

* add valgrind logs as file

* remove delays

* kill process more reliably

* rename action

* small cleanup

* fix casting to int in case of large leaks

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a09fd7c860555c308e516bbcfbf4fff850a694e1
2020-10-05 16:09:32 +02:00
Adeeb Shihadeh af2ec63bea radard cleanup (#2266)
* some cleanup

* more realistic profiling

* Update selfdrive/controls/radard.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a77548bff606a20537ed7ff526d605bed1b7a721
2020-10-05 11:37:39 +02:00
Adeeb Shihadeh 349b5814bb radard profiling (#2265)
old-commit-hash: df6a66c785acaba43ba2699a35e3937c818aae8a
2020-10-04 15:55:25 -07:00
Willem Melching 37e173acdc Fix MacOS CI (#2145)
* compile flag for cython

* fix more setups

* bump cereal

* reenable mac build

* don't let that fail the build

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e0bb6a7cee869b9aa6a724b20ab8d79141eaad4
2020-10-04 15:03:20 -07:00
Adeeb Shihadeh f27bdfbee7 UI: refactor light sensor (#2129)
* refactor light thread

* qcom low power mode

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 06cb2f963ddd3a1e25d592ac4d2d25358e69c94a
2020-10-03 20:58:46 -07:00
Adeeb Shihadeh 37529e23a9 bump version to 0.7.10
old-commit-hash: 47a42ff432db8a2494e922ca5e767e58020f0446
2020-10-03 14:51:47 -07:00
ZwX1616 db55c1cca3 Refactor loggerd rotations (#2247)
* loggerd:refactor rotate encoder

* change notify_all to notify_one

* finish

* cancelWait

* start front_encoder_thread on need

* rebase master to resolve conflict

* tici qcam works, but

* ifs are ugly

* synced rotate off frame ids

* only start counting frames after modeld alive

* typo

* fix some bugs

* never over rotate

* works

* missing space

* zero frame count tolerance

* lol

* add back omx race protection

* not need that

* not to confuse different locks

* playing with locks is playing with fire

* tici now has qcam

* size is overrated

* make cppcheck happy

* fall back if no camera

* warn

* missing condition

* first is freestyle

* no stream id before connecting

* wait for increment

* first will be imperfect

* wait is futile

* block frames when writing state

* just log write time

* exit loops when exit

* tici qcamera

* fixed

* add atomics

* incl

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2b974150c4478f6df69b7fbbc7037548e9e0bbbf
2020-10-03 07:56:16 -07:00
Adeeb Shihadeh ff14d71845 Run all driving processes on cores 2-3 (#2257)
old-commit-hash: 059cf6b43e579b8634090a0ecac4fb1c6c7a205e
2020-10-02 17:18:18 -07:00
Adeeb Shihadeh d05c8e2a08 Tici updated (#2126)
* run updated on tici

* do this for now

* two didn't like empty string

* fix permissions
old-commit-hash: 38ded9b1e79cc01bf4b8086b543bf0bab689d0fc
2020-10-02 16:36:20 -07:00
Adeeb Shihadeh 0184a43999 run loggerd tests in CI (#2241)
* run loggerd tests in jenkins

* fast

* check segs on the fly

* missing import

* wait for dir

* no thread

* relax FILE_SIZE_TOLERANCE

* cleanup

* unused

* set ci flag

* wait longer for first seg

* fix race condition with setting RecordFront

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 427d4a5a9eaf3a593db43ee78315dd38664dbb47
2020-10-01 18:42:43 -07:00
Adeeb Shihadeh 6c39de6c92 Increase HKG torque limit (#2249)
* increase hkg torque limit

* update refs

* bump panda
old-commit-hash: 67aec50b88cf1a65ae44940a4594d893a384bbc6
2020-10-01 13:16:51 -07:00
Willem Melching d34b18069c simplify testing closet client
old-commit-hash: 1c6fb567699714fa2aa39a147114fb277544c59f
2020-10-01 16:01:34 +02:00
Comma Device 493c95e363 update testing closet client
old-commit-hash: 3f0491b7e58d4d3a7fe6e2bd483d6fd267a9bdd4
2020-10-01 06:52:59 -07:00
Adeeb Shihadeh 9bb39d1145 updated: remove old overlay init file
old-commit-hash: 2a2cfd6bb51cc67276b9c21fe70cf1114e1e6f03
2020-09-29 21:26:27 -07:00
Adeeb Shihadeh 747ca1d354 fix paths for waste3 debug script
old-commit-hash: 9060d3c87b717189350035603a791b47a16f8fc8
2020-09-29 15:51:58 -07:00
Dean Lee 9af3c25166 fix resource leak when rotating encoder (#2141)
old-commit-hash: 209e7aa4719fd88bd465936321ea3e6cf5f10658
2020-09-29 13:53:32 -07:00
Adeeb Shihadeh c23faac9df updated: log git corruption (#2242)
* log git corruption

* better cloudlog
old-commit-hash: 3f40a9ee7590f95743dd5914ca81496f1419f402
2020-09-29 12:08:55 -07:00
Adeeb Shihadeh 52ed05f68e add ECU disable script from #1459
old-commit-hash: 98fedff6b1f286c28a5beb12fd40b392b1d4ce65
2020-09-29 11:54:29 -07:00
Greg Hogan 659b82c469 pre-reqs for honda bosch longitudinal control (#1458)
* pre-reqs for honda bosch longitudinal control

* openpilot_longitudinal_control -> radar_disabled

* fix chrysler test

* review feedback

* little cleaner

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0902575e3422da15454224a627650a1096d4c682
2020-09-29 00:04:15 -07:00
cydia2020 ca29e033e9 add 1 second delay to acc pedal alert (#2221)
So that the screen wouldn't appear to "flicker" when openpilot is engaged while the acc pedal is being released
old-commit-hash: 6d5b2af3f2290d9cf99c4eee3eb9c412a069fbb4
2020-09-28 16:17:21 -07:00
Adeeb Shihadeh be29b8f236 tici light sensor (#2238)
old-commit-hash: 2490be762ddb4c05d3ed8fc9c865138115d24666
2020-09-28 14:49:07 -07:00
qadmus 94b0fd629e Fix grade force in test_long plant (#2225)
Co-authored-by: user <email@web.com>
old-commit-hash: cba53957bd33379ff6ad9fc53dd5edc73cfdff4a
2020-09-28 11:54:48 +02:00
Dean Lee 63c8162fd3 close lock_fd if flock failed (#2231)
old-commit-hash: 9983389ffebe3383736111b0b4ad762aa9ef580b
2020-09-28 11:47:38 +02:00
Logan Lasiter f127e4048e Add symphony-cpu lib once (#2232)
old-commit-hash: 7d28afcde3996e5c8ae5d712d431a67e5887750f
2020-09-28 11:46:51 +02:00
Erich Moraga 32f505ba13 Add engine f/w for CAR.LEXUS_RX (#2235)
@vonlee#4243 2017 Lexus RX350 DongleID e6112c12439776bb
old-commit-hash: 278bb5063af9c02eb76cd51bf8b8625889da8e0d
2020-09-27 18:42:57 -07:00
vanillagorillaa bb9f55844f Typo: thershold -> threshold (#2230)
old-commit-hash: c35af4b6198e81cac09db8a424f5780ca33c085c
2020-09-25 22:50:55 -07:00
Willem Melching 18b33204cc fix modeld launch script larch64 detection
old-commit-hash: 8cc5bfcef8bf91e55780ae2b9e7182e4099f8082
2020-09-25 14:14:54 +02:00
VirtuallyChris 8cbf7ec36c Add 2017 Lexus RX engine fw
old-commit-hash: f25d807111e8665f9237b0c90f753b3bc51e5b41
2020-09-24 18:36:15 -07:00
Comma Device 34293f1404 qcom2 needs cc conversion (#2125)
old-commit-hash: b94b4353878094b06946fcbe2b191d7416db55d8
2020-09-24 22:52:35 +00:00
Dean Lee f57c4d3052 camerad: close file descriptors (#2065)
* close file descriptors

* fix struct indent

* add some new lines
old-commit-hash: 9f34d1ff662c7b84ce5e4561247d8751ef57adca
2020-09-24 13:39:27 -07:00
Dean Lee f5ec24f42f Params: use a multiple-reader / single-writer flock to improve concurrency (#2207)
* improve concurrency: multiple readers, single writer locks

* remove lock in read_db_value
old-commit-hash: 4fba3408c41fad12a75533cf189686601f9e49a6
2020-09-24 11:51:36 +02:00
qadmus b48d1823e9 remove unused globals, use self.reset() (#2220)
Co-authored-by: user <email@web.com>
old-commit-hash: 254814cc793dc4668ea9fd25f092b0712fb5b8a0
2020-09-24 11:39:47 +02:00
Willem Melching f275d06ff2 tici: fix ui rotation (#2222)
* fix rotation using wayland

* put back intrinsic matrix fix
old-commit-hash: 53e71f44ceec181e40c4cbd3f14a403798bca7bb
2020-09-23 23:16:55 +02:00
VirtuallyChris ecbdefa7f5 Add 2020 Honda Odyssey fw
old-commit-hash: d9f43388fb9e6d61283a09e713a003de11ec77eb
2020-09-23 13:43:32 -07:00
ZwX1616 7d522ba870 fix dmonitoringmodeld random high CPU usage (#2216)
* exp attempt1

* attempt2 less hacky
old-commit-hash: da147b2534b78f935704b5838cf967593be2affb
2020-09-22 14:46:47 -07:00
Adeeb Shihadeh bbf6042c5a fix unused dt entry on android (#2160)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9418b710a74a8a536def3c27e7ee22307b7ffd87
2020-09-22 14:46:37 -07:00
Adeeb Shihadeh 6f96ed3c59 remove unused alert
old-commit-hash: cdcf2350252059e937b032ea2448584ff3c512a9
2020-09-22 13:47:30 -07:00
Adeeb Shihadeh 12b7a29d06 Improved updater robustness (#2046)
* git ping

* cleanup overlay init

* separate update available check from fetch

* cleanup setting params

* only fetch neos update on android

* move that

* type hints

* lightweight update check with git ls-remote

* git fetch dry run

* cleanup
old-commit-hash: 722a440eb6102777fb97f6ae8936d852709a66a5
2020-09-22 12:09:41 -07:00
grekiki 079f409e58 Uploader speedup (#2214)
* use caching for getxattr

* fix some git issues

* Scheduled network checks

* attempt optimization

* Delete speed_test.py

* Style fixes

* Fix styling

* fix spaces

* fix spaces

* fix naming

* Update uploader.py

* Update mark_all_uploaded.py

* Add file to release

* Update selfdrive/loggerd/tools/mark_all_uploaded.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cf46de13d2934c52e9c87691c671fe9c78156ec9
2020-09-22 11:37:24 +02:00