Commit Graph

2361 Commits

Author SHA1 Message Date
ZwX1616 a54d95fdbb Test camerad in CI (#2297)
* remove unused junk

* check frame pkts

* from magic

* self

* cleanup

* add todo

* no opencv

* run in J

* fix conv

* make 250x faster

* abs

* should be +1

* depends on starting phase

* block on furniture refactor

* fixed

* restart test

* check ex

* need scaling
old-commit-hash: cb58e79ee83c15662a1191a39aeb75f276c7c591
2020-10-09 16:31:25 -07:00
ZwX1616 9fd7cfc95a tici camera art II (#2223)
* protect highlights

* fix modeld scale factor

* rewrite logic for accurate and smooth AE

* fix condition

* tune speed

* move to qcom2

* not exactly 2x

* avoid hunting due to ettr policy

* tune to new curve

* gain kickdowns

* log params

* 4x legroom

* no limit needed here

* simple lowpass

* tweak

* pin to a remote core

* speedup AE and lower night exp

* this curve makes more sense

* tuning from fleet data

* fix ui

* only qcom2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 00b642146fa24449d36aec322c5972cf718d3958
2020-10-09 16:26:43 -07:00
Adeeb Shihadeh 6bb8f56f8d add timeout to modeld replay
old-commit-hash: cb85a193509c21597986f3f9abaf1a29e061b26d
2020-10-09 16:25:21 -07:00
Adeeb Shihadeh d2cd6bc73b remove unused img
old-commit-hash: de75992c483da937cba28ec20592c945579ad547
2020-10-09 15:48:05 -07:00
Adeeb Shihadeh b864a2e9dd add acura rdx test route
old-commit-hash: 024c33e7246418e921fab1e9616814a79d33b2c3
2020-10-09 13:57:58 -07:00
ZwX1616 fa54bf9be4 Fix dcamera inaccurate fps on OP3T and LP3 (#2305)
* fix op3t pclk

* fix leeco fps
old-commit-hash: 84e83e88a3f0ed694f4a16527621981039c85dd0
2020-10-09 11:26:32 -07:00
Willem Melching 984a9bb411 boardd always send can packet (#2307)
* boardd always send message

* Only log missed cycles when ignition is on

* Just clip, no completely different code paths
old-commit-hash: cfd16faad2c009e01a679c7a06b59ae67a6d5267
2020-10-09 12:45:43 +02:00
Adeeb Shihadeh 51d59aefca UI cleanup + startup time improvement (#2295)
old-commit-hash: 671183184bd177d697285d397bce10c51afd5395
2020-10-08 19:29:56 -07:00
ZwX1616 9589d518a2 Upgrade to SNPE 1.41.0 (#2285)
* snpe 1.41.0

* cleanup

* unignored

* where is my symphony

* add snpe/dsp to release files

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 80515576d5cbbf76c0c1457293e83675b16921c8
2020-10-08 17:18:01 -07:00
Willem Melching e648878ae3 Add sonata engine FW
old-commit-hash: 018267dfecb697a9d4e74bb80466fe6ecd852e5a
2020-10-08 21:17:10 +02:00
Willem Melching 939336a7c4 update sonata fingerprint
old-commit-hash: f65733f7445f717a9672100d39f664c6f8fb2681
2020-10-08 21:13:39 +02:00
Shane Smiskol 09aad99228 Use math instead of numpy for calculating TTC, on average 80% faster (#2293)
* Use math instead of numpy, on average 80% faster

* whoops
old-commit-hash: 6133f603f046bb08c8e3493c3092c796156b8930
2020-10-08 14:23:53 +02:00
Willem Melching 5b91f74549 fix loggerd rotate (#2291)
old-commit-hash: b682ebc022959b86e12a106af7bb614737e78c77
2020-10-07 16:59:32 -07:00
Adeeb Shihadeh 27b7daec32 don't run jenkins on testing closet branches
old-commit-hash: 4422d0c8a829f315848a9c17168f6a471324ef22
2020-10-07 15:51:59 -07:00
Willem Melching a12ffca9f6 Fix gyro field name
old-commit-hash: 2e739aa77c912d7e28e3f5fc434636015f766829
2020-10-07 13:43:35 +02:00
Logan Lasiter dd0c9d0796 Present alert if fan isn't spinning (#2258)
* Present alert if fan isn't spinning

* allow entry

* Small updates

Moving to fan malfunction event

Only trigger event for uno or dos

* Changed checking fanSpeed > 50%

* Update text for fan malfunction alert.

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

* Alert if fan isn't spinning for 5 sec

* Alert edit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1a2efdc139868f3588a4a35505e8833eacee735d
2020-10-07 12:15:09 +02:00
Willem Melching 1a2893345a add check for partial response code (#2282)
old-commit-hash: 529e9a23ea74b4abd55f95fb5588732585624d1f
2020-10-07 12:14:22 +02:00
Adeeb Shihadeh 00c410160a fix style inconsistencies in release notes (#2284)
old-commit-hash: 99aa34239736490d0c908b9b27c0265bae6db652
2020-10-07 12:13:16 +02:00
Adeeb Shihadeh 4d329cddfa remove green temp processes (#2286)
old-commit-hash: 87942eea1c7fa6aef9038bae01b3c35261ecff16
2020-10-07 12:11:54 +02:00
Adeeb Shihadeh aff01412d3 cleanup duplicate function
old-commit-hash: bd4a1f291df99e237d73ff0b3743d9ffcd88eb93
2020-10-06 23:59:16 -07:00
Adeeb Shihadeh ea90a1e391 add offroad to cpu usage script
old-commit-hash: 38a23a55ec8b27851e4f5eb2d37717c7ada63053
2020-10-06 21:12:38 -07:00
Adeeb Shihadeh baae562f8f report git branch to testing closet
old-commit-hash: f1c3662311ae3d4b69ddb2ddb268622d9a9c3339
2020-10-06 21:00:19 -07:00
ZwX1616 dc2470176b loggerd does not need to babysit this
old-commit-hash: e29fd900583b88f23883afd0a28e7ad06f0ff597
2020-10-06 18:46:22 -07:00
Adeeb Shihadeh d13963e21b bump cereal
old-commit-hash: 4b61231999b797349fb5fa876ccd944cc0d69017
2020-10-06 17:25:14 -07:00
Willem Melching e0414892bb bump cereal
old-commit-hash: e087e374605973acce249183feb0d95566937823
2020-10-06 16:00:08 +02: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
Greg Hogan 3ea69f614e eliminate round-trip reading entire file (#2275)
* eliminate round-trip reading entire file

* only if reading entire file

* print headers in errors

* fix end
old-commit-hash: 2293a6a36c4283626d3079294fed1905e0672a76
2020-10-05 16:59:19 -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 e2cdab8d45 bump submodules
old-commit-hash: 14d056a14d2cd920f9edd5f52c86abe0e1a80cab
2020-10-01 14:11:44 -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
Adeeb Shihadeh f36a815a32 0.7.9 release notes tweak
old-commit-hash: 809b427e72977de27de7d237a69a2b412439500b
2020-10-01 11:21:02 -07:00
Willem Melching 65f1bcafc7 Update release notes
old-commit-hash: b24b0ebb190feb7d7130d84e3ca3f3f96d2933e1
2020-10-01 20:08:11 +02:00