Commit Graph

43 Commits

Author SHA1 Message Date
Willem Melching
84a3c355e5 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>
2022-09-12 22:29:31 -07:00
Dean Lee
29f9c536b4 camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-09-11 13:56:38 -07:00
Dean Lee
1c8aa88161 camera_qcom2: move util functions to separate files (#25720) 2022-09-10 14:22:43 -07:00
George Hotz
aea1a0d5e6 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>
2022-09-09 22:38:00 -07:00
Robbe Derks
7ecc0409bd 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>
2022-09-01 22:18:44 -07:00
Adeeb Shihadeh
28cb1897cb 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
2022-08-31 21:13:53 -07:00
ZwX1616
e9258cccbe 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>
2022-08-31 16:40:25 -07:00
Adeeb Shihadeh
c6b749fb96 add pyside2 package (#25602) 2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
90a4565eb2 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -07:00
Adeeb Shihadeh
c626198575 webcam isn't a special build anymore 2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
6bbea8080e only build camera test on pc 2022-08-25 19:59:22 -07:00
Dean Lee
405e6c046d CameraBuf: remove unused cur_rgb_buf (#25544)
rm cur_rgb_buf
2022-08-24 11:03:12 -07:00
HaraldSchafer
9fbbefbc94 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>
2022-08-03 22:35:03 -07:00
Adeeb Shihadeh
e7b3ebdb17 power monitor: fix missing numpy import 2022-08-01 20:02:53 -07:00
Comma Device
82fbd14144 update tici power monitor 2022-08-01 19:25:35 -07:00
Willem Melching
753f4c7fab 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
2022-07-29 17:46:19 +02:00
Willem Melching
b2c1098cd8 thermald: log modem data usage (#25298)
* thermald: log modem data usage

* add to deviceState

* add cast

* set refresh rate

* bump cereal

* cereal master
2022-07-28 14:58:23 +02:00
Adeeb Shihadeh
15846435fe Revert "Revert "remove casync from agnos manifest for now""
This reverts commit 0c5668d96e.
2022-07-22 10:01:08 -07:00
Adeeb Shihadeh
0c5668d96e Revert "remove casync from agnos manifest for now"
This reverts commit 8ea982264e.
2022-07-21 21:05:52 -07:00
Willem Melching
f38204ad26 camerad: cleanup unused RGB code (#25172)
* camerad: cleanup unused RGB code

* hdr is unused

* more cleanup

* remove envs

* remove from sconsfile

* fix docs
2022-07-14 19:21:40 +02:00
Willem Melching
906a8a912c casync: only when run from updater (#25130)
* casync: only when run from updater

* also here
2022-07-12 19:28:48 -07:00
Willem Melching
205f6f7414 casync: manifest compare script (#25129)
* casync compare script

* typo

* cleanup output
2022-07-12 16:09:21 +02:00
Adeeb Shihadeh
8ea982264e remove casync from agnos manifest for now 2022-07-08 13:05:25 -07:00
Willem Melching
35c8c0e600 casync: increase chunk download timeout 2022-07-08 19:19:57 +02:00
Willem Melching
b6df0cd242 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
2022-07-08 15:44:16 +02:00
Adeeb Shihadeh
c9fa5ef11a AGNOS 5.2 (#25011)
* AGNOS 5.2

* casync manifest
2022-07-08 00:23:46 -07:00
Willem Melching
4080f729be casync: compute seed caibx url on the fly (#25046)
* compute seed hash on the fly

* more logging

* partition name in url

* fix comment
2022-07-06 13:04:25 +02:00
Willem Melching
50434d612e casync: reuse requests session in RemoteChunkReader (#25045) 2022-07-06 12:08:51 +02:00
Willem Melching
06a8ac627c casync: build_chunk_dict optimize for resuming (#25038) 2022-07-05 18:06:08 +02:00
Willem Melching
3900781092 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>
2022-07-05 16:55:32 +02:00
Dean Lee
d13137a83f camerad: reduce cpu usage (#24993)
wait for 50ms
2022-06-30 11:29:25 +02:00
Dean Lee
e20d2cfa9b Camerad: small cleanup (#24992)
* remove CameraExpInfo

* remove release callback
2022-06-30 11:05:49 +02:00
Maxime Desroches
240c44e50c snapshot: fix rgb overflow (#24963)
clamp rgb
2022-06-27 15:36:27 +02:00
Robbe Derks
684d4b75a1 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>
2022-06-27 15:33:46 +02:00
ZwX1616
1f2f9ea9c9 fullframe DM model (#24860)
* Revert "put cereal on master"

This reverts commit a8ccd8f838.

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

This reverts commit c646eeee0a.

* 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>
2022-06-20 16:24:51 -07:00
Adeeb Shihadeh
6123ab3d1c Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
2022-06-19 14:43:49 -07:00
Adeeb Shihadeh
0d0f5926a0 bump up modeld power draw threshold 2022-06-14 21:12:49 -07:00
Adeeb Shihadeh
0fce5d9045 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
9cda2d6338 set AGNOS from /AGNOS file 2022-06-11 18:43:24 -07:00
Adeeb Shihadeh
1139fe507b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh
ca682b389d move clocksd to system/ (#24761) 2022-06-06 13:27:45 -07:00
Adeeb Shihadeh
afd16b2ade Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
2022-06-02 17:02:25 -07:00