Commit Graph

4984 Commits

Author SHA1 Message Date
HaraldSchafer 9f8b03753d Revert torque control (#24565)
* torque reversal start

* Fix carmodel tests

* Update ref

* update ref

* Elif is better than if
2022-05-17 19:00:57 -07:00
George Hotz 0fc4b4df98 thneed: add flag to enable optimizer (#24568)
* improve the thneed compiler

* only init thneed if we are using the GPU

Co-authored-by: Comma Device <device@comma.ai>
2022-05-17 17:39:18 -07:00
Harald Schafer acfa0b74fe Revert "Fix tests"
This reverts commit 61becd444f.
2022-05-17 13:48:26 -07:00
Harald Schafer 61becd444f Fix tests 2022-05-17 13:46:14 -07:00
omatzyo e08c712a08 Toyota: add 2021 RX350 fingerprint (#24540)
Update values.py

Adding 2021 RX350
2022-05-17 10:59:15 -07:00
George Hotz 72b52f8b7d make debayer faster (#24557)
* remove local caching

* remove local caching

* reduce camerad power

* break stupid imx390 black level support

* handle edges

* now 13ms, vignetting is 'slightly' less correct

* halfs->floats and inlines, down to 12.9ms

* oops, fix float

* val from 12 is ushort

* don't decide vignetting in the debayer kernel

* 7.77 ms

* adding back black level support was free

* Revert "adding back black level support was free"

This reverts commit a841d17727886807a040dcf856ab22480fa93eff.

* minor

* rip out unused gain and black level, remove print

* save 150mW

* fix replay test

* fix top/bottom rows

* lame left right edge fix

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
2022-05-17 10:18:36 -07:00
Adeeb Shihadeh 0b1f6e3620 show which cameras are malfunctioning (#24558) 2022-05-16 22:01:04 -07:00
Adeeb Shihadeh b1858df00e improved alert verbosity (#24434)
* improved alert verbosity

* better testing script

* better description

* speed diff

* touch ups

* fix that
2022-05-16 21:19:38 -07:00
HaraldSchafer 7996fd37ef Joint model (#24521)
* update models

* wip lanelines mhp parsing

* typos

* newer models

* 95995a49-db0c-4261-8776-b90780dc2a8c/600

* Use laneful policy to prevent planner aggression

* c8c3ab69-bd2c-4d1c-a7f8-9e8457e4827b/950

* ede8f75a-df3e-41fb-bc56-63e2f33858e5/950

* 7205c5af-7532-4215-ad9b-678789054db7/995

* bfb34fa3-1d72-4987-854f-43d42ee01015/950

* change cost

* 8ae2477a-b452-4601-b04c-d3af66ea5e98/950

* Update heading cost

* 9b991314-94f5-4f0b-872e-58d95266e4d0/333

* 9b991314-94f5-4f0b-872e-58d95266e4d0/950

* ede8f75a-df3e-41fb-bc56-63e2f33858e5/950

* undo lateral planner changes

* rm whitespace

* update ref

* c0acc19d-f2f1-47ae-8838-5382c6c6c7f5/950

* c0acc19d-f2f1-47ae-8838-5382c6c6c7f5/950

* update model refg

* Update model ref

Co-authored-by: Yassine Yousfi <yyousfi1@binghamton.edu>
2022-05-16 17:26:23 -07:00
Comma Device 5612c4f22c Revert "remove local caching"
This reverts commit 51d441ad78.
2022-05-16 17:10:38 -07:00
Comma Device 51d441ad78 remove local caching 2022-05-16 17:09:42 -07:00
George Hotz 3718f9a6e0 encoderd: fix bytesused (#24553)
fix bytesused

Co-authored-by: Comma Device <device@comma.ai>
2022-05-16 16:58:19 -07:00
Lukas Petersson c28735358e params: support OPENPILOT_PREFIX (#24495)
* prefix params

* set env

* prefix in manager

* filesystem except

* dont delete manager folder

* Update selfdrive/common/params.h

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

* debug same path

* remove cleanup + same default

* dont use filesystem lib

* param symlink path

* path

* spelling

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-05-16 15:58:13 -07:00
Shane Smiskol 961a121fde Round system overheated temperature (#24544)
* Update events.py

* Apply suggestions from code review

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-16 18:08:02 +02:00
Willem Melching 8811142787 camerad: improve error logging (#24550) 2022-05-16 16:31:14 +02:00
ntegan1 076f0acd5f Round model lagging frame drop percentage (#24549)
alerts: round model frame drop percentage
2022-05-16 16:26:18 +02:00
Willem Melching 31af13101b Add unittest for alert callbacks (#24551)
add alert callback test
2022-05-16 16:25:52 +02:00
Robbe Derks b9c350bf98 Tesla stock AEB forwarding (#24503)
* keep long control in sync with the stock system

* panda changes needed

* add stock AEB state

* forgot to add the counter

* fix skipping some counter values if they overlap
2022-05-16 13:49:40 +02:00
Joost Wooning 2294fcdbe7 debayering: update test ref commit 2022-05-16 13:37:16 +02:00
Joost Wooning 8f9ba7540b debayering: fix divide for reading 12 bit values (#24546) 2022-05-16 13:19:22 +02:00
Willem Melching 1dcd5096ba camerad: sanity check register data before parsing (#24547) 2022-05-16 13:19:06 +02:00
Adeeb Shihadeh 6a48a7acef more comma two cleanup (#24300)
* more comma two cleanup

* fix up power monitoring
2022-05-15 17:55:22 -07:00
Adeeb Shihadeh 319f3d1475 move models to selfdrive/modeld/ (#24539)
* move models to selfdrive/modeld/

* two more refs
2022-05-15 17:29:09 -07:00
Adeeb Shihadeh 81dacbedca common: replace custom xattr implementation with os module's (#24448)
* use os module's xattr function

* fix that

* handle in helper
2022-05-15 17:13:50 -07:00
Adeeb Shihadeh 222c7cd60d remove custom markdown rendering (#24538)
* remove custom markdown rendering

* remove from release
2022-05-14 22:18:13 -07:00
Adeeb Shihadeh ab75c53792 replay: cleanup unused RGB buffers (#24537)
* replay: cleanup unused RGB buffers

* update replay cam

* little more
2022-05-14 19:55:12 -07:00
Shane Smiskol d6c6275163 Fix process replay regen (#24517)
* fix regen issues

* compress like uploader
2022-05-14 19:53:08 -07:00
Adeeb Shihadeh 5a58ebf183 loggerd: adjust qcamera threshold, seemed to be tuned for comma two 2022-05-14 01:04:46 -07:00
Shane Smiskol 8572c6aee6 Update body test route (#24532)
* update body test route

* Revert "update body test route"

This reverts commit 7b918cb48bdb1b7596d8ba49f5915b69695e4a45.

* bump opendbc

* Revert "Revert "update body test route""

This reverts commit d27276b8341d8e4a92633a1a8ef88b7737532177.
2022-05-13 19:33:46 -07:00
George Hotz 94b9972eb7 encoderd: enable (#24492)
* enable encoderd

* correct enable line

* fix loggerd tests

* fix power draw and cpu tests

* correct cpu for encoderd

* fix a bug, video_writer is shared

* fix issue with not recording dcam

* add recording state

* wooo tests pass. encode id keeps counting

* core 3

* loggerd then encoderd

* stop loggerd first

* core 3 always online

* see the camera when we see encoder packet

* encoderd on small core uses 37%

* remove encoder logic from loggerd

* delete unit test that doesn't really make sense anymore

Co-authored-by: Comma Device <device@comma.ai>
2022-05-13 17:56:02 -07:00
ClockeNessMnstr a693b3a26b LatControlTorque: clean up class variable (#24526)
* move to super

* no class variable

* there's CP

* whitespace

* drop CI from latcontrol super

* Revert "drop CI from latcontrol super"

This reverts commit 9218273060ade6431c4fc4c310b27e7e210158b9.

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-05-13 16:52:20 -07:00
Joost Wooning 489fbb74b0 camerad: combine debayering and rgb_to_yuv opencl kernels (#24452)
* camerad: combine debayering and rgb_to_yuv opencl kernels

* fix border

* fix snapshot

* rename function

* update camerad cpu usage

* update camerad power draw

* vignetting equal to previously

* test other local worksize

* use less floats

* reduce amount of code

* move barrier back

* make faster

* fix corners

* cleanup

* cleanup

* allow more jitter on driverState timing

Co-authored-by: Comma Device <device@comma.ai>
2022-05-13 16:49:31 +02:00
Willem Melching 822ea1fbd9 Add sensord test to Jenkins (#24524)
* Add sensord test to Jenkins

* add second configuration

* add other configs too

* rename

* move into existing HW tests
2022-05-13 15:48:38 +02:00
Adeeb Shihadeh ef81afc354 Revert "Joint Model (#24213)"
This reverts commit eff08cb17f.
2022-05-12 22:52:45 -07:00
Adeeb Shihadeh c643d74609 jenkins: workaround lfs bug 2022-05-12 22:08:25 -07:00
YassineYousfi eff08cb17f Joint Model (#24213)
* update models

* wip lanelines mhp parsing

* typos

* newer models

* 95995a49-db0c-4261-8776-b90780dc2a8c/600

* Use laneful policy to prevent planner aggression

* c8c3ab69-bd2c-4d1c-a7f8-9e8457e4827b/950

* ede8f75a-df3e-41fb-bc56-63e2f33858e5/950

* 7205c5af-7532-4215-ad9b-678789054db7/995

* bfb34fa3-1d72-4987-854f-43d42ee01015/950

* change cost

* 8ae2477a-b452-4601-b04c-d3af66ea5e98/950

* Update heading cost

* 9b991314-94f5-4f0b-872e-58d95266e4d0/333

* 9b991314-94f5-4f0b-872e-58d95266e4d0/950

* ede8f75a-df3e-41fb-bc56-63e2f33858e5/950

* undo lateral planner changes

* rm whitespace

* update ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
2022-05-12 19:47:33 -07:00
Adeeb Shihadeh affeb2ef73 jenkins: prune lfs objects 2022-05-12 19:38:58 -07:00
Shane Smiskol d686f9e527 process replay: save logs to folder (#24509)
* save logs to folder for proc replay

* use fakedata dir

* fix

* only once and where needed
2022-05-12 19:19:47 -07:00
Adeeb Shihadeh 28a08ff12e can_printer: add frequency 2022-05-12 17:07:32 -07:00
Shane Smiskol 934bc1e6fb process replay: don't print diff when only uploading (#24514)
when only uploading no need to print success status or update diff

don't print succeed/fail when only uploading
2022-05-12 17:05:22 -07:00
Shane Smiskol 6518ecca8f Add desired curvature to controlsState (#24510)
* Add desired_curvature to controlsState

* clean up

* bump

* bump

* update refs from GitHub!

Co-authored-by: Jason Shuler <jshuler@gmail.com>
2022-05-12 16:59:52 -07:00
Adeeb Shihadeh 41b3f253d1 boardd: set extra pandas to silent safety mode (#24511) 2022-05-12 14:50:45 -07:00
Adeeb Shihadeh c8629a4b36 ftrace profiling script 2022-05-12 11:58:56 -07:00
Joost Wooning 40ae0b8604 debayering: code cleanup (#24507)
* debayering: code cleanup

* some more cleanup
2022-05-12 19:12:59 +02:00
Willem Melching aac7248a01 ui: fix cameraview widget on MacOS after YUV changes (#24506) 2022-05-12 17:16:30 +02:00
haram-KONA 0926c269af Hyundai: fix wheelbase and steeringratio for Kona, Kona HEV , Kona EV (#24464)
* Update interface.py

* Update interface.py

* Update selfdrive/car/hyundai/interface.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 15:16:36 +02:00
Dean Lee 3863a88356 tools/replay: replace deprecated usleep(0) with std::this_thread::yield (#23544)
* use std::this_thread::yield()

* use yield in cameraServer::waitFinish

* rename waitFinish to waitForSent
2022-05-12 15:11:04 +02:00
Jason Young c007c7e681 Improved steering accuracy measurement script (#23583)
* move steering accuracy measurement script

* git rebase is utterly worthless

* fix header width
2022-05-12 15:09:37 +02:00
Dylan Herman d2eef1955c add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-05-12 14:59:00 +02:00
Anton Rudomanenko 3bfe4a691c fix the problem with replay routes locally (#24350)
fix: fix the problem with replay routes locally

Co-authored-by: Anton Rudomaneko <anton.rudomanenko@nami.ru>
2022-05-12 14:58:35 +02:00