Commit Graph

52 Commits

Author SHA1 Message Date
Justin Newberry
d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e6592439119f360dd64b854e7047f35222ba
2023-08-11 15:33:49 -07:00
Adeeb Shihadeh
b7f6b6dc95 pytest unit test running (#29261)
* setup config

* collect passes

* pytest system/ works
old-commit-hash: 670fa9af5f66278152acf477b19d19559733094f
2023-08-10 08:23:19 -07:00
Adeeb Shihadeh
8e2a03b46d rm some old tests
old-commit-hash: 44c76257a15530d6b03fff119e8719111fb4d131
2023-08-09 22:31:47 -07:00
Dean Lee
f39cb90a09 camerad: auto free the buffer when it goes out of scope (#28807)
old-commit-hash: 8076107b4fa1b3c2b7c14a8464aa92e949e2e139
2023-08-08 13:26:04 -07:00
Mitchell Goff
49b07db500 Added python VisionBuf class (#29075)
* Added python VisionBuf class

* fixed property names

* Bump cereal
old-commit-hash: f0ae0c34cda2d032bc270efe6360a1dd1bbd77f2
2023-07-25 01:08:39 -07:00
Dean Lee
05b2a0b884 common/swaglog: remove trailing semicolon from macros (#29042)
old-commit-hash: 269ceca27a5fedc1eadd71503cf13450a061b382
2023-07-19 19:46:42 -07:00
Dean Lee
9be7d252b8 camerad: remove unused frame_length from struct FrameMetadata (#28693)
* remove unused frame_length

* bump cereal

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9784f61f231ba1ba70c7e086014d6a385f078ae0
2023-06-25 12:51:10 -07:00
Mitchell Goff
31834eac4c Remove get_model_yuv_transform function (#28568)
* remove yuv_transform from update_calibration

* Remove get_model_yuv_transform entirely
old-commit-hash: ae5bfcf248e20036998331d5db3cf44c323fe802
2023-06-21 20:02:44 -07:00
ZwX1616
a18a41659d camerad: write static AE settings only once (#28134)
* this is free

* illusion of choice
old-commit-hash: 78ba67e211bd1df3d4f7ba6e1cd331e90e238ee1
2023-05-08 18:43:54 -07:00
ZwX1616
2a5ca702e7 OX03C10: improve tone mapping (#27754)
Co-authored-by: Comma Dev1ce & Y. Yousfi <device@comma.ai>
old-commit-hash: 4b1f77d54ab550c94e70bc374eaf3b887ae0ed84
2023-04-05 19:46:04 -07:00
ZwX1616
897271fc32 camerad: reduce daytime HDR blur (#27644)
* 60hz

* be dynamic

* cast

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 25a7f87b424b2a4fd116aff5a5a83ecd1fd87f07
2023-03-22 13:44:29 -07:00
Dean Lee
cf52038858 camerad: remove deprecated focus parameters from FrameMetadata (#27638)
old-commit-hash: a86730a2c601188c480285c45999efa00c3b3d4a
2023-03-21 16:55:06 -07:00
Robbe Derks
4f560215ba Improve OX frame timing jitter (#27582)
* frame timing script

* enable vsync output and improve fsin tracking

* increase measurement time

* fix python linting

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d26d8b3ba9787dc02b9c116d7e750a3b36dd0846
2023-03-16 10:59:27 +01:00
ZwX1616
6b64d20006 ci: intra-camera timing check (#27069)
* test frame time

* 1 is still much tighter than 5
old-commit-hash: e2e780e7c650878c2b3305531efe8239d6a99933
2023-01-24 16:34:41 -08:00
Adeeb Shihadeh
16dabbd686 fix typo AR0321 -> AR0231 (#26993)
old-commit-hash: ef42652368bb56a93e75f172062ac9f6aca29563
2023-01-17 19:52:06 -08:00
ZwX1616
93679d10fc camerad: reduce ox LFM noise (#26949)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* more than 0

* this is fine

* led

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

* maximize dcg

Co-authored-by: Comma Dev1ce <device@comma.ai>
old-commit-hash: bc8e2032f7aaafb172e4b2505e7cdc5da1970eb9
2023-01-17 14:16:28 -08:00
ZwX1616
0dc7085d41 camerad: rework ox exposure score (#26948)
* wip

* make separate score func

* n4ot g

* clean up

* remove

* simplify

* b2b

* balance costs

* clean up

* no if tici

* box view

* new baselines

* Revert "new baselines"

This reverts commit f7a5d059eda70fa4d49e3024923da30e8821f42b.

* Revert "box view"

This reverts commit a57924be36e7d6abc2585aca9575c74cd583ef86.

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 028527423c86800e5f260377533c1f8024658f67
2023-01-13 21:32:15 -08:00
Adeeb Shihadeh
b3e47c691b move all third party stuff into third_party/ (#26853)
* mv fastcluster

* move msm_kgsl.h

* camerad include

* update path

* mv pyextra

* fix tici build

* add acados_template to release build

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd8e03d53ed210aec46a2ff728cb4a830314a21a
2022-12-31 21:00:50 -08:00
ZwX1616
2bbf68c63b camerad: lower cost for OX high gain idxs (#26775)
old-commit-hash: e6e33531cad4f50c94d5522dc430900828467317
2022-12-12 16:35:25 -08:00
ZwX1616
8a32eec398 camerad: minor ae improvement to OX (#26566)
old-commit-hash: 2153bfe27a99b2ecd36ff91fcd10c3e71d952bbe
2022-11-23 13:08:04 -08:00
ZwX1616
0ec1b66315 camerad: fix OX flicker (#26439)
old-commit-hash: 5eaf525c18becad63205fd3add4bfe540f70b01a
2022-11-09 21:49:24 -08:00
Kurt Nistelberger
2d2e3a8d48 CI: camera box update (#26414)
* check if all frames are laggy

* apply tolerance

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 4ec1c7e614a2ca3fbf38f302a82b87d112d06b02
2022-11-08 13:51:16 -08:00
ZwX1616
d8a3d93a9d CI: set OX frame sync tolerance (#26347)
* ox tolerate

* int

* update comments
old-commit-hash: aab4b7941665528dd8dbf59eb125cfd377f07250
2022-11-03 14:27:45 -07:00
ZwX1616
dec5a0f014 camerad: fix OX not having vignetting comp (#26329)
old-commit-hash: fdd125853fad2909fa2eff37822a0715d3a219c1
2022-11-02 14:42:29 -07:00
Rohit Bernard
bf27021719 sim: Converting RGB frames to NV12 format in OpenCL (#26169)
* convert carla rgb frames to nv12

* code cleanup

* move kernel

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9377448888c181674fdc1b1aa8c3bc485156d3d2
2022-10-29 13:20:37 -07:00
Adeeb Shihadeh
52529fb8f6 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
old-commit-hash: 2384a9ee67fc4480199149657a031510f9f48d14
2022-09-28 15:45:15 -07:00
Adeeb Shihadeh
f50800b768 camerad: improved frame sync and skip tests (#25904)
* camerad: cleanup frame sync and skip tests

* fix linter

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1c6dc12a04618ccd660952fe1a15452898d2c593
2022-09-27 21:32:21 -07:00
ZwX1616
0bc78ce16b camerad: recalibrate ox colors for HDR (#25874)
re
old-commit-hash: 4ed0abd19734f5af1f2dbb899fd75686a90afbde
2022-09-22 12:52:48 -07:00
ZwX1616
129a49aeef camerad: fix OX page faults (#25853)
old-commit-hash: bae94a007079211c9fbf715ff77bf374c74a37f9
2022-09-20 16:00:56 -07:00
Dean Lee
761cb60c54 camerad: fix class/struct forward declaration mistake (#25842)
old-commit-hash: 8870b439dd5f9b0ae1a53d75bab3a1470ea7d372
2022-09-19 13:24:20 -07:00
Dean Lee
f7b83d6f02 camerad: make sure cl_context is valid for lifetime of camerad (#25735)
old-commit-hash: 8ae3199578b3f771396cd35315ce51b7cce27e49
2022-09-16 21:10:26 -07:00
Dean Lee
b546a476cc camerad: cleanup CameraBuf::acquire (#25737)
* cleanup

* add that back

* less indent

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 78fd303d50b78dbb99992bb3ee4938eec8913575
2022-09-16 20:50:10 -07:00
Dean Lee
d482e04b01 camerad: remove function camera_autoexposure (#25733)
old-commit-hash: 5bb230cde4dd61ff7b180a29a0951a44068161c1
2022-09-16 20:18:54 -07:00
Dean Lee
e1c1a8fc2a CameraBuf: remove unused member 'camera_state' (#25736)
old-commit-hash: 25ce997f3768913915e83b72f4b3c2649a83d720
2022-09-16 20:11:46 -07:00
Dean Lee
0ce385a486 camera_qcom2: remove unneeded static keywords (#25780)
old-commit-hash: 467c4f7fb3bd954d7e0d9120ccd1c687532e6cdc
2022-09-16 20:10:08 -07:00
ZwX1616
7cd138328e better OX03C10 settings (#25796)
* ev has different scales

* fix initial gradient

* fix highlight weirdness

* try smooth set of gains

* delay

* add gain idx

* oops

* set different min dc

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c7a0f23b45603fb8e7718234f92284854866924e
2022-09-15 15:06:43 -07:00
Adeeb Shihadeh
565511431d camerad: log image sensor in camera states (#25786)
* camerad: log image sensor in camera states

* for all cams

* bump cereal

* revert that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7352e6d9409dcec6719717dcb805b97565648533
2022-09-14 15:40:29 -07:00
Dean Lee
fad0bdf23c camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 29f9c536b410a45001beb63c73f3645a8299c222
2022-09-11 13:56:38 -07:00
Dean Lee
158f9f0cde camera_qcom2: move util functions to separate files (#25720)
old-commit-hash: 1c8aa8816189b464329e12187a81eef85893a724
2022-09-10 14:22:43 -07:00
George Hotz
71f609f2cc port OX03C10 (#25161)
* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* start porting OS04C10

* something

* is the pll why this doesn't work

* understand plls, still doesn't work

* work

* weee something

* working?

* timing

* encoderd works with less cameras

* 1928

* flip image

* color balance

* adjust black level

* extra height maybe

* cleanups

* clean up sensor i2c

* sensors

* approx 20fps

* remove mirror

* 50ms, no fsin yet

* remove imx390 support

* some attempt at AE

* linearize the response

* OX changes (#25697)

* organize

* wb

* best effort but probably messed up by artifacts

* multicam sync

Co-authored-by: Comma Device <device@comma.ai>

* clean up

* more

* fix multiexposure

* unbroken AE

* oops

* sort of good AE

* both should work 1

* open then init

* fix debayer

* rename

* fix test build

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aea1a0d5e684daf7682703174233390b0cf79c83
2022-09-09 22:38:00 -07:00
Robbe Derks
ab7ff545c5 camerad: read param to see if we want manual gain (#25642)
* also read params to determine if we want manual gains

* check for larger than 0

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7ecc0409bd767392074a37cdd0b7e44ed9953296
2022-09-01 22:18:44 -07:00
ZwX1616
cf84a3ba30 camerad: optional exposure params overrides (#25616)
* add params override

* speedup

* put in param list

* clean up names

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e9258cccbed66dd69781b5184e34760fb8cfeb0a
2022-08-31 16:40:25 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
d9c279aea9 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
old-commit-hash: 90a4565eb29fe95fc83acf6e4f0ea0851c284d61
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
e3f291fe45 webcam isn't a special build anymore
old-commit-hash: c62619857567e8641fd375f35888f828b2bc5a2e
2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
0448644af4 only build camera test on pc
old-commit-hash: 6bbea8080eaaeb6413ed098abf6d0226c6841282
2022-08-25 19:59:22 -07:00
Dean Lee
a9f4294d99 CameraBuf: remove unused cur_rgb_buf (#25544)
rm cur_rgb_buf
old-commit-hash: 405e6c046d45d2f15cf9a111ae84f7e6dd2b2f85
2022-08-24 11:03:12 -07:00
Willem Melching
4d924f1b39 camerad: cleanup unused RGB code (#25172)
* camerad: cleanup unused RGB code

* hdr is unused

* more cleanup

* remove envs

* remove from sconsfile

* fix docs
old-commit-hash: f38204ad260f2af6a01b71191850178d0af03e8e
2022-07-14 19:21:40 +02:00
Dean Lee
db39cae8f6 camerad: reduce cpu usage (#24993)
wait for 50ms
old-commit-hash: d13137a83f2036d436c4bc56b4a65fa6962b519d
2022-06-30 11:29:25 +02:00
Dean Lee
be6634b037 Camerad: small cleanup (#24992)
* remove CameraExpInfo

* remove release callback
old-commit-hash: e20d2cfa9b80e41c6af3b7879c15c6df1cfb81c1
2022-06-30 11:05:49 +02:00