Cameron Clough
0276badcc0
setup: add serial to request headers ( #27237 )
...
* setup: add dongle ID to request headers
* rename openpilot
* fix str
* hardware: get_serial
* set serial instead
* fix typo
* static
* fixes
old-commit-hash: 6fb5661abba34971e547941e0f6a6625bef3b75a
2023-02-06 20:02:30 -08:00
Adeeb Shihadeh
858a5654b1
setup pre-built master-ci ( #27205 )
...
* try this
* add as release branch
* set the name
* build on master-ci
old-commit-hash: 0374d4817d4730fb76adcee07252adf39759dd25
2023-02-05 15:45:01 -08:00
Cameron Clough
cc0090c8d2
fix micd input device ( #27160 )
...
* try no device
* unused
* move sounddevice import
old-commit-hash: feba2f3fe566114325f8c9119540fb19cf401a4a
2023-01-30 17:41:42 -08: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
4641431306
tici: remove hardcoded max brightness ( #26859 )
...
* tici: remove hardcoded max brightness
* fix that one
* cleanup
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 922bedaf47effb448c056a1844c13ecd7a26a244
2023-01-01 19:47:02 -08:00
Adeeb Shihadeh
82a91d59c4
alt amp config ( #26858 )
...
* alt amp config
* fix
* not executable
* comment
* consistency
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 3d44b6b3ac6d1f207e01d4cbf225bd929255ca1e
2023-01-01 19:15:44 -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
Shane Smiskol
43a80f7dd8
Micd: update sound levels in callback ( #26674 )
...
* update once reached 4096
* update once reached 4096
* reduce
* debug & cmt
* fix
* fifo again
* fix
* clean that up
* update filter on demand
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
old-commit-hash: 20dba2f33d870d81347ff7045911797a286c9128
2022-12-02 18:38:04 -08:00
Shane Smiskol
16859211f5
micd: revert check playing sound (high cpu usage) ( #26672 )
...
* don't use hardware
* check micd proc
* use pactl package
* cleanup
* Revert "cleanup"
This reverts commit baf9887e2d3e7dce8c24a93e970bb5a2d3609d50.
* Revert "use pactl package"
This reverts commit 0c1f3a4b865e44052affa57323ae4a21d274d6e3.
* Revert "micd: don't update filtered sound level if playing sound (#26652 )"
This reverts commit 6703f6fa0297ad587ce80fcf1af432c402ba4e7e.
* Revert "check micd proc"
This reverts commit 9ebbe2aa42bdfd2f7f8bf226978a518d984fb154.
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
old-commit-hash: 060b69ee2f5148140ec696cbc950b83f700fd671
2022-12-02 15:25:34 -08:00
Shane Smiskol
4548cf9592
soundd: lower max volume breakpoint ( #26673 )
...
* revert tune
* remove hanning window
* retune from hanning window
* add hanning back
* update once reached 4096
* Revert "update once reached 4096"
This reverts commit 0898cbeec736916ffaee5e963df048b48636ece5.
old-commit-hash: de061eacbe772b1a9be73d4a3864fad6e05037ac
2022-12-02 02:23:51 -08:00
Shane Smiskol
4dfeb1ddeb
micd: apply A-weighting to the sound pressure level ( #26668 )
...
* record
* record
* draft
* some clean up
* some clean up
* wishful tuning
* log pressure level (db) for debugging
* fix
* tuning
* ignore complex to real warning
* remove this
* Update selfdrive/ui/soundd/sound.cc
* Update system/micd.py
* remove warning supp
* bump cereal to master
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
old-commit-hash: d087fab2c0af6baf104591dade313311aeed1e4b
2022-12-02 00:11:29 -08:00
Cameron Clough
8242a86d96
micd: don't update filtered sound level if playing sound ( #26652 )
...
* add is_sound_playing to hardware.py
* micd: don't update filtered sound level if playing sound
old-commit-hash: 86cd919a57be22fa0ccf324a8767999309df60e4
2022-12-01 12:52:06 -08:00
Cameron Clough
9bcf83f493
micd: scale sound volume with ambient noise level ( #26399 )
...
* test changing sound volume
* test changing sound volume
* create system/hardware/pc/hardware.h
* implement Hardware::set_volume using pactl
* soundd: use Hardware::set_volume
* add sounddevice dependency
* sounddevice example
* simple micd
* cleanup
* remove this
* fix process config
* add to release files
* hardware: get sound input device
* no more offroad
* debug
* calculate volume from all measurements since last update
* use microphone noise level to update sound volume
* fix scale
* mute microphone during alerts
* log raw noise level
* hardware: reduce tici min volume
* improve scale
* add package
* clear measurements on muted
* change default to min volume and respond quicker
* fixes
Co-authored-by: Shane Smiskol <shane@smiskol.com >
* logarithmic scaling
* fix
* respond quicker
* fixes
* tweak scaling
* specify default device
* Revert "hardware: get sound input device"
This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.
* tuning
* forgot to update submaster
* tuning
* don't mute microphone, and clip measurement
* remove submaster
* fixes
* tuning
* implement Hardware::set_volume using pactl
* Revert "test changing sound volume"
This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.
* draft
* draft
* calculate sound pressure level in dB
* fix setting
* faster filter
* start at initial value
* don't run command in background
* pactl: use default sink
* use sound pressure db
* tuning
* bump up max volume threshold
* update filter slower
* fix divide by zero
* bump cereal
Co-authored-by: Shane Smiskol <shane@smiskol.com >
old-commit-hash: 108ff15f5dc16f79a36a2d33397b36dba42d70cf
2022-11-30 21:56:03 -08:00
Cameron Clough
303b5532ad
soundd: change system sound mixer volume ( #26633 )
...
* test changing sound volume
* create system/hardware/pc/hardware.h
* soundd: use Hardware::set_volume
* implement Hardware::set_volume using pactl
* Revert "test changing sound volume"
This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.
* don't run command in background
* pactl: use default sink
old-commit-hash: 02b5b6fe1f9f919f0cafea3efc6be2403a3f7139
2022-11-30 15:36:25 -08:00
ZwX1616
8a32eec398
camerad: minor ae improvement to OX ( #26566 )
...
old-commit-hash: 2153bfe27a99b2ecd36ff91fcd10c3e71d952bbe
2022-11-23 13:08:04 -08:00
Adeeb Shihadeh
5bf27eff97
spi goes on boardd core
...
old-commit-hash: 4478241bea02cb673983aa6b97428702a54dd1c2
2022-11-21 17:17:36 -08:00
Adeeb Shihadeh
4cb61240b3
enable experimental longitudinal control on devel ( #26544 )
...
old-commit-hash: 94aa39bdd406400ab48765d8b50f08e03ecf9eb8
2022-11-21 16:18:51 -08:00
Adeeb Shihadeh
d87ea66802
agnos 6.2 ( #26441 )
...
* agnos 6.2
* staging manifest
* production
old-commit-hash: b549e8174e4f8ccd2be3c324e47333e721db3914
2022-11-10 21:10:34 -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
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: 8ba9a5107b353cc0fc5ab3bbab589b70c2fe9aaa
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: 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
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: d522492ba0b80928adc475c1f37b995834c31a90
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: 1f5187892f0854bbc6a7d7799fa0d9ca2284714a
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: 9e6265ce2188ac48442b07a77e86ca4fd3eba06b
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: ef24c0b2ce8a4cf1dbc82886b806079889adf97b
2022-10-05 16:40:39 -07:00
Dean Lee
0b6f40d4a4
proclogd: fix wrong type for rss ( #25923 )
...
rss is long
old-commit-hash: 379b7cf8b6573a448ebd1eba4b64c2b588a74d81
2022-10-03 10:16:38 -07:00
Adeeb Shihadeh
497bc99c27
agnos updater: set timeout on download ( #25927 )
...
old-commit-hash: 74f741d0be89c9a03573d47b00d59be964884d5f
2022-09-29 13:18:01 -07:00
Dean Lee
cf305def06
test_proclog: add cmdline check in buildProcLogerMessage ( #25891 )
...
old-commit-hash: 2e5b50c2d7c09accaa51e954790a478b125af591
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: 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
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: 4e310b807fb1ccdde4b2078468fab46e5324dfa2
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: dc65f8a60a8a20cb0c93386ef4c6537dce2fbc58
2022-09-22 15:56:17 -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
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: 84a3c355e5fdb7bb2f50847f925e894eecfa8918
2022-09-12 22:29:31 -07:00