Commit Graph

1040 Commits

Author SHA1 Message Date
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
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: 28cb1897cb8be80b35b1ce7573066fb36b01d2d7
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: e9258cccbed66dd69781b5184e34760fb8cfeb0a
2022-08-31 16:40:25 -07:00
Adeeb Shihadeh
0325a33752 add pyside2 package (#25602)
old-commit-hash: c6b749fb96b3b6332fd850e733140357f84d53a4
2022-08-30 15:10:52 -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
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: 9fbbefbc94f8c672e0b1c79333e34366e19f96cf
2022-08-03 22:35:03 -07:00
Adeeb Shihadeh
70d4f03b9a power monitor: fix missing numpy import
old-commit-hash: e7b3ebdb17c1bb931af704f2c36defdc8874ac28
2022-08-01 20:02:53 -07:00
Comma Device
6ef3ae8918 update tici power monitor
old-commit-hash: 82fbd1414428f9c4cb9b7542a55858ea5cdcd3b0
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: 753f4c7fab565234e455f19e3ca123e44171e042
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: b2c1098cd80ff53544c2b65b77c145a5d4af80ad
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: 15846435fe16505fbb5a1e397dd87b47527ad33d
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: 0c5668d96e714334a7d6c79678ee8577e6f6739b
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: f38204ad260f2af6a01b71191850178d0af03e8e
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: 906a8a912cbd39863f43582677f2435f11ecb904
2022-07-12 19:28:48 -07:00
Willem Melching
76ef2d83d4 casync: manifest compare script (#25129)
* casync compare script

* typo

* cleanup output
old-commit-hash: 205f6f7414f502248082949addac25a215c73d59
2022-07-12 16:09:21 +02:00
Adeeb Shihadeh
5fd0c500a1 remove casync from agnos manifest for now
old-commit-hash: 8ea982264ec4ba7aa47a3228236f943e76a911c5
2022-07-08 13:05:25 -07:00
Willem Melching
32da08eb11 casync: increase chunk download timeout
old-commit-hash: 35c8c0e600746e092bb236dabd05491d8be1078a
2022-07-08 19:19:57 +02:00
Willem Melching
e737b50c2d casync: handle hash failure (#25081)
* casync: handle hashing failure due to IO errors

* fix comment

* all exceptions

* fix typo

* Update system/hardware/tici/agnos.py
old-commit-hash: b6df0cd2422d63eb58cc6abaa9968954feff2ccb
2022-07-08 15:44:16 +02:00
Adeeb Shihadeh
0b0e11827d AGNOS 5.2 (#25011)
* AGNOS 5.2

* casync manifest
old-commit-hash: c9fa5ef11a6d47a886b30f65b2064b2d6ae05807
2022-07-08 00:23:46 -07:00
Willem Melching
5dc7f22545 casync: compute seed caibx url on the fly (#25046)
* compute seed hash on the fly

* more logging

* partition name in url

* fix comment
old-commit-hash: 4080f729bea6092813331fb6d92c80e2f4c4f928
2022-07-06 13:04:25 +02:00
Willem Melching
e3c24c5cc4 casync: reuse requests session in RemoteChunkReader (#25045)
old-commit-hash: 50434d612ee7becc09aef762a6c8fb8d8111af6d
2022-07-06 12:08:51 +02:00
Willem Melching
0f37257d29 casync: build_chunk_dict optimize for resuming (#25038)
old-commit-hash: 06a8ac627c0b8cf00b3bd4ea7186f5c876f71561
2022-07-05 18:06:08 +02:00
Willem Melching
3230474724 add casync support to agnos updater (#23654)
* add casync option to agnos updater

* open if necessary

* add python implementation

* last chunk can be small

* check flags

* cleaner check

* add remote and file stores

* remote caibx file

* print stats

* use python implementation

* clean up imports

* add progress

* fix logging

* fix duplicate chunks

* add comments

* json stats

* cleanup tmp

* normal image is still sparse

* Update system/hardware/tici/agnos.py

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

* Update system/hardware/tici/agnos.py

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

* add some types

* remove comment

* create Chunk type

* make readers a class

* try agnos 5.2

* add download retries

* catch all exceptions

* sleep between retry

* revert agnos.json changes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 39007810927faa309d06e6ad9586302341547f64
2022-07-05 16:55:32 +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
Maxime Desroches
53dd6afc96 snapshot: fix rgb overflow (#24963)
clamp rgb
old-commit-hash: 240c44e50c4dd44c2237f4f37d716fd898160917
2022-06-27 15:36:27 +02:00
Robbe Derks
a6efa2c7d3 Log SOM power draw (#24975)
* log SOM power draw

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 684d4b75a1c2f349da1e00dae9a40c39e3bb3607
2022-06-27 15:33:46 +02:00
ZwX1616
cd2a98aa11 fullframe DM model (#24860)
* Revert "put cereal on master"

This reverts commit 4646c132bae7358079c9b2867725f8382906c1e5.

* Revert "Revert fullframe DM model (#24812)"

This reverts commit 59e8af4c3101785cead69a9880cc03e0a18081e1.

* revert revert cereal

* clip6

* 0.8 is fair

* Fiction compensation should be based on error

* Update refs

* Add deadzone

* not that

* good mg

* ref

* ref

* ee8f

* minor tweak

* ref

* recompile

* ref

* cereal

* match driverstatus

* new ref

* new ref

* pass token through jenkins credentials

* quote

* fix snpe dead weights

* final ref

Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1f2f9ea9c9dc37bdea9c6e32e4cb8f88ea0a34bf
2022-06-20 16:24:51 -07:00
Adeeb Shihadeh
d9d83b0225 Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
old-commit-hash: 6123ab3d1c901ed3763e1a7cb8e1aac3f6b8fda3
2022-06-19 14:43:49 -07:00
Adeeb Shihadeh
6ce60227f4 bump up modeld power draw threshold
old-commit-hash: 0d0f5926a006ead1709b78fe69c1186b5a607c66
2022-06-14 21:12:49 -07:00
Adeeb Shihadeh
3c48bc47b7 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
old-commit-hash: 0fce5d90459b77bf2cfa70f55f322f0e1fb8d01c
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
9e945d4d93 set AGNOS from /AGNOS file
old-commit-hash: 9cda2d63380dc9b554212ba15e82ca0621ab1945
2022-06-11 18:43:24 -07:00
Adeeb Shihadeh
9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b01f34de9714c99228f411558b44231
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh
b249f40f0c move clocksd to system/ (#24761)
old-commit-hash: ca682b389d75f433d28063c8d774460df0c0fa83
2022-06-06 13:27:45 -07:00
Adeeb Shihadeh
3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade7723d87a15fa6c5f5de59734897f51
2022-06-02 17:02:25 -07:00