Adeeb Shihadeh
c3aa58b492
cleanup up old lib64 references ( #30246 )
...
* cleanup sensord
* rm rest
* fix that
* update that
old-commit-hash: f0aa631818
2 years ago
Harald Schäfer
d32d4962af
Soundd: Give each alert a volume ( #29767 )
...
* Give each alert a volume
* Update sound.h
old-commit-hash: 75ead2c389
2 years ago
Dean Lee
72e6a332d1
sound.h: add #pragma once ( #29567 )
...
old-commit-hash: 2c20a2b5d7
2 years ago
Dean Lee
97e9d55588
cpplint: `build/include_what_you_use` ( #29556 )
...
* include_what_you_use
* remove comments
* include <memory>
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2 years ago
Dean Lee
004a097c95
cpplint: add `readability/braces` filter ( #29554 )
...
old-commit-hash: 363740a497
2 years ago
Dean Lee
4f7e9268e8
soundd: set volume on changes ( #29389 )
...
* set volume on change
* async set volumn
* Revert "async set volumn"
This reverts commit 7bc88c4983
.
old-commit-hash: 55c156dfb2
2 years ago
Adeeb Shihadeh
e603ff3427
soundd: cleanup remnants from running while offroad ( #29006 )
...
cleanup
old-commit-hash: 0bacd98828
2 years ago
Shane Smiskol
3af7b02a26
seldrive: use common sig handler ( #28127 )
...
* Update main.cc
* Update util.h
* same for navd
old-commit-hash: e780cca8b6
2 years ago
Shane Smiskol
6a183d2bb3
soundd: increase upper bound for volume level ( #26811 )
...
Raise soundd upper limit
old-commit-hash: 0fd8e6f491
2 years ago
Shane Smiskol
0026b3b4e6
soundd: increase upper bound for volume level ( #26792 )
...
Update sound.cc
old-commit-hash: 0c1fbe22b4
2 years ago
Cameron Clough
1ca9fa7fce
soundd: tune volume to reach max at slightly higher noise level
...
old-commit-hash: d64a5020b2
2 years ago
AlexandreSato
6bc328535c
Update comment on sound.cc volume based(speed ->noise) ( #26719 )
...
Update sound.cc
old-commit-hash: fa0bf404c8
2 years ago
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 0898cbeec7
.
old-commit-hash: de061eacbe
2 years ago
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: d087fab2c0
2 years ago
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 4bbd870746
.
* 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: 108ff15f5d
2 years ago
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 4bbd870746
.
* don't run command in background
* pactl: use default sink
old-commit-hash: 02b5b6fe1f
2 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
3 years ago
Adeeb Shihadeh
7d4c84dcaf
repeat immediate warning sound
...
old-commit-hash: f3e67e0ec2
3 years ago
Adeeb Shihadeh
e3e9a6402b
Revert "soundd: use setLoopCount(0) to stop repeating sound ( #23076 )"
...
This reverts commit 27bcef8a3846acc7664a26e30a1284abb9fd8752.
old-commit-hash: d28622f8d3
3 years ago
Adeeb Shihadeh
9c702c779e
whole new family ( #23157 )
...
* family two
* more volume
* repeating dm sound
* update tests
old-commit-hash: 1501c2e376
3 years ago
Dean Lee
88ebf835bb
UI: move rest of NVG to Qt ( #23133 )
...
* move ui_draw_world to qt
* draw world if world_objects_visible is true
* cleanup
* cleanup includes
* continue
* cleanup
* cleanup
* enable multisampling on all devices
old-commit-hash: 20f571db3c
3 years ago
Dean Lee
95f54ffb39
soundd: use setLoopCount(0) to stop repeating sound ( #23076 )
...
* use setLoopCount(0) to stop sound
* print default backend name
old-commit-hash: 35885745f1
3 years ago
Adeeb Shihadeh
a8332128aa
soundd: max volume at 20m/s
...
old-commit-hash: bc4ae3f587
3 years ago
Adeeb Shihadeh
6c2182c026
Newer sounds ( #23091 )
...
* new prompt sound
* padding
* prompt distracted
* debug
* fix spelling
* lower min volume
* better volume at low speeds
* revert debug
* revert that
* fix tests
* update refs
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3b367e6872
3 years ago
Adeeb Shihadeh
dccb8b4010
New sounds ( #22652 )
...
* new engage/disengage + amp config
* first family
* cleanup audible alerts
* tici isn't special
* fix up debug cycle alerts
* these were better
* extend range
* use distracted sound
* log scaling
* getting closer
* slightly louder
* prompt
* update tests
* update refs
* fix c2 test
* resolve todo
* adjust tolerance
* revert for now
* should work
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e679d05d9e
3 years ago
Adeeb Shihadeh
c142416931
soundd: configure as persistent process ( #22878 )
...
* soundd: configure as persistent process
* update c2 test
* fix that
* little more
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed8e6f857c
4 years ago
Adeeb Shihadeh
da7cd6bbaa
soundd: don't loop controls unresponsive sound infinitely ( #22839 )
...
* soundd: don't loop controls unresponsive sound infinitely
* update tests
* actually fix
old-commit-hash: 445a5aaca4
4 years ago
Dean Lee
c1a3683ccb
soundd: misc cleanup + tests ( #22796 )
...
* pass AudibleAlert to setAlert
* apply reviews
* remove trailing underscore
* add current_alert_type
* common function get_alert
* same freq as ui
* small cleanup
* setvolumne on change
* static Alert::get
* test_sounds
* remove old test files
* loop twice
* assert loopsRemaining
* assert stop
* init to min_volumne
* Revert "remove old test files"
This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.
* move to ui/soundd
* move test to tests/test_sound.cc
* remove old tests
* cleanup
* lower volume
* Revert "remove old tests"
This reverts commit e6bb12abfa
.
* return Alert
* cleanup
* remove #include <optional>
* cleanup .gitignore
* revert to std::optional
* Revert "revert to std::optional"
This reverts commit a66291c51f
.
* cleanup
* remove volume check
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0
4 years ago
Adeeb Shihadeh
08a11cdf84
soundd: use offscreen platform to avoid initialzing gpu stuff
...
old-commit-hash: b7394c6171
4 years ago
Greg Hogan
a61f2a8362
fix cd in process scripts ( #21806 )
...
* ui: fix cd in launch script
* do the rest
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3a578cb5b5
4 years ago
Adeeb Shihadeh
6eea281a19
soundd ( #21619 )
...
* refactor alerts
* doesn't go here anymore
* soudd
* handle controls unresponsive
* same check
* fix path
* update sound test
* nice
* fix c2
* add script
* update tests
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 12948e661a
4 years ago