Commit Graph

71 Commits

Author SHA1 Message Date
Adeeb Shihadeh
d87ea66802 agnos 6.2 (#26441)
* agnos 6.2

* staging manifest

* production
old-commit-hash: b549e8174e
2022-11-10 21:10:34 -08:00
ZwX1616
0ec1b66315 camerad: fix OX flicker (#26439)
old-commit-hash: 5eaf525c18
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: 4ec1c7e614
2022-11-08 13:51:16 -08:00
Adeeb Shihadeh
461206de1c boardd: SPI support (#26374)
* spi handle

* put usb back

* handle eintr

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ba9a5107b
2022-11-08 13:21:07 -08:00
ZwX1616
d8a3d93a9d CI: set OX frame sync tolerance (#26347)
* ox tolerate

* int

* update comments
old-commit-hash: aab4b79416
2022-11-03 14:27:45 -07:00
ZwX1616
dec5a0f014 camerad: fix OX not having vignetting comp (#26329)
old-commit-hash: fdd125853f
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: 9377448888
2022-10-29 13:20:37 -07:00
ZwX1616
426286f24f DM: add use of e2e preds (#26078)
* try ml

* de56

* j914ef75a

* jd1124586

* jd1124586

* d112

* oops

* set

* update ref

* use offset

* bump DM power usage

* new ref
old-commit-hash: d522492ba0
2022-10-17 19:40:06 -07:00
Adeeb Shihadeh
c31c77668f safer modem manager commands (#25999)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1f5187892f
2022-10-07 10:39:11 -07:00
Adeeb Shihadeh
c18d23c8be CI: re-enable power draw test (#25988)
* CI: re-enable power draw test

* adjust for ngrl
old-commit-hash: 9e6265ce21
2022-10-06 15:01:57 -07:00
Adeeb Shihadeh
fa3e33b8e8 agnos 6.1 (#25973)
* agnos 6.1

* staging manifest

* no casync

* prod manifest
old-commit-hash: ef24c0b2ce
2022-10-05 16:40:39 -07:00
Dean Lee
0b6f40d4a4 proclogd: fix wrong type for rss (#25923)
rss is long
old-commit-hash: 379b7cf8b6
2022-10-03 10:16:38 -07:00
Adeeb Shihadeh
497bc99c27 agnos updater: set timeout on download (#25927)
old-commit-hash: 74f741d0be
2022-09-29 13:18:01 -07:00
Dean Lee
cf305def06 test_proclog: add cmdline check in buildProcLogerMessage (#25891)
old-commit-hash: 2e5b50c2d7
2022-09-28 17:35:55 -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: 2384a9ee67
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: 1c6dc12a04
2022-09-27 21:32:21 -07:00
Cameron Clough
23a4e66b17 configure mypy outside of pre-commit environment (#25892)
* add mypy config matching precommit

* use local mypy, add files to config

* excludes too

* fix config

* pylint is sad now... did it get updated?

* fix typing hints

* ignore

* this should be a regexp

* mypy doesn't like Deque despite inheriting MutableSequence

* more excludes

* Revert "pylint is sad now... did it get updated?"

This reverts commit 250c632f18ecb3d33ffb931e15425f9314a0964b.
old-commit-hash: 4e310b807f
2022-09-27 20:43:05 -07:00
Adeeb Shihadeh
a8a9f16845 agnos 6 (#25864)
* agnos 6

* new agnos

* no casync for now
old-commit-hash: dc65f8a60a
2022-09-22 15:56:17 -07:00
ZwX1616
0bc78ce16b camerad: recalibrate ox colors for HDR (#25874)
re
old-commit-hash: 4ed0abd197
2022-09-22 12:52:48 -07:00
ZwX1616
129a49aeef camerad: fix OX page faults (#25853)
old-commit-hash: bae94a0070
2022-09-20 16:00:56 -07:00
Dean Lee
761cb60c54 camerad: fix class/struct forward declaration mistake (#25842)
old-commit-hash: 8870b439dd
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: 8ae3199578
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: 78fd303d50
2022-09-16 20:50:10 -07:00
Dean Lee
d482e04b01 camerad: remove function camera_autoexposure (#25733)
old-commit-hash: 5bb230cde4
2022-09-16 20:18:54 -07:00
Dean Lee
e1c1a8fc2a CameraBuf: remove unused member 'camera_state' (#25736)
old-commit-hash: 25ce997f37
2022-09-16 20:11:46 -07:00
Dean Lee
0ce385a486 camera_qcom2: remove unneeded static keywords (#25780)
old-commit-hash: 467c4f7fb3
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: c7a0f23b45
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: 7352e6d940
2022-09-14 15:40:29 -07:00
Willem Melching
7451db46cf sensord: use interrupts to improve LSM6DS3 timing accuracy (#24525)
* change LSM6DS3TR(-c) gyroscope  and accelerometer to interrupt

* add pthread for linking

* add interrupt collector thread to fetch in parallel to non interrupt based sensors

* change get_event interface to return true on successful read

* fetch sensor interrupts via gpiochip

* avoid sending empty messages (interrupt only, non interupt magn can leave a gap in the orphan block)

* add verifier script to sensor interrupts (sensor_data_to_hist.py)

* add/update sensord testsweet (test_sensord.py)

* add poll timed out check

* unexport interrupt gpio pins

* gpiochip on both edges, but skip falling edge if rising edge is detected, this is handled in the sensor as the status flag is checked if new data is availble

* add test to sensord to verify 100Hz interrupt frequency

* add sensor shutdown/low power mode functionality on sensord exit

* relax test, will be readded in the splitup PR

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 84a3c355e5
2022-09-12 22:29:31 -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: 29f9c536b4
2022-09-11 13:56:38 -07:00
Dean Lee
158f9f0cde camera_qcom2: move util functions to separate files (#25720)
old-commit-hash: 1c8aa88161
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: aea1a0d5e6
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: 7ecc0409bd
2022-09-01 22:18:44 -07:00
Adeeb Shihadeh
caac56b92e USB power mode cleanup (#25619)
* first pass at usb power mode cleanup

* fix build

* a sneaky one

* little more

* fix build

* bump pnada

* remove that

* power monitoring cleanup

* fix tests

* bump submodules
old-commit-hash: 28cb1897cb
2022-08-31 21:13:53 -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: e9258cccbe
2022-08-31 16:40:25 -07:00
Adeeb Shihadeh
0325a33752 add pyside2 package (#25602)
old-commit-hash: c6b749fb96
2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93
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: 90a4565eb2
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
e3f291fe45 webcam isn't a special build anymore
old-commit-hash: c626198575
2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
0448644af4 only build camera test on pc
old-commit-hash: 6bbea8080e
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: 405e6c046d
2022-08-24 11:03:12 -07:00
HaraldSchafer
f7d1aad21e Update model replay commit for calib change (#25357)
* Update model replay commit for calib test

* more reliable baseline

* update docker login

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9fbbefbc94
2022-08-03 22:35:03 -07:00
Adeeb Shihadeh
70d4f03b9a power monitor: fix missing numpy import
old-commit-hash: e7b3ebdb17
2022-08-01 20:02:53 -07:00
Comma Device
6ef3ae8918 update tici power monitor
old-commit-hash: 82fbd14144
2022-08-01 19:25:35 -07:00
Willem Melching
dfcd3a2910 casync unittests (#25306)
* simple extract test

* add test with loopback

* test for chunk reuse

* test seeding

* add instructions

* cleanup

* install casync

* make more tests work without a loopback
old-commit-hash: 753f4c7fab
2022-07-29 17:46:19 +02:00
Willem Melching
8b39650d99 thermald: log modem data usage (#25298)
* thermald: log modem data usage

* add to deviceState

* add cast

* set refresh rate

* bump cereal

* cereal master
old-commit-hash: b2c1098cd8
2022-07-28 14:58:23 +02:00
Adeeb Shihadeh
e2734a6157 Revert "Revert "remove casync from agnos manifest for now""
This reverts commit c64c00fd5d49d4e0bda48bcf4e476655073c70a5.

old-commit-hash: 15846435fe
2022-07-22 10:01:08 -07:00
Adeeb Shihadeh
4523108a02 Revert "remove casync from agnos manifest for now"
This reverts commit 7c34965678fada52c65250d32819ab04980afaa5.

old-commit-hash: 0c5668d96e
2022-07-21 21:05:52 -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: f38204ad26
2022-07-14 19:21:40 +02:00
Willem Melching
54bbb9332e casync: only when run from updater (#25130)
* casync: only when run from updater

* also here
old-commit-hash: 906a8a912c
2022-07-12 19:28:48 -07:00