Jason Wen
ee0dfacb93
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/car_helpers.py
# selfdrive/car/toyota/interface.py
# selfdrive/ui/ui.cc
2023-03-24 15:24:05 -04:00
Jason Wen
18a5cf0277
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# opendbc
# panda
# selfdrive/ui/ui.cc
2023-03-24 15:05:42 -04:00
ZwX1616
25a7f87b42
camerad: reduce daytime HDR blur ( #27644 )
...
* 60hz
* be dynamic
* cast
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-22 13:44:29 -07:00
Adeeb Shihadeh
be659c976c
log current bootlog ( #27645 )
...
* log current bootlog
* rm path
* mv that
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-21 17:28:38 -07:00
Dean Lee
a86730a2c6
camerad: remove deprecated focus parameters from FrameMetadata ( #27638 )
2023-03-21 16:55:06 -07:00
Robbe Derks
d26d8b3ba9
Improve OX frame timing jitter ( #27582 )
...
* frame timing script
* enable vsync output and improve fsin tracking
* increase measurement time
* fix python linting
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-16 10:59:27 +01:00
Harald Schäfer
38cb42f76a
LaikaD new cache version ( #27596 )
2023-03-15 20:26:19 -07:00
Harald Schäfer
153ffa3f68
Sat info from ublox ( #27526 )
...
* squashed
* bump cereal
2023-03-15 01:21:18 -07:00
Harald Schäfer
5c70482761
Use structs in laika ( #27585 )
...
* doesnt crash
* New cacher
* unused import
* help linter
* Annotate list
* print error
* fix caching bugs
* wrong name
* small fixes
* fix sum
* wrong brackets
* fix tests
* update ref
* bump submodules
2023-03-15 00:02:56 -07:00
Adeeb Shihadeh
2749205b4a
allow running amp config script standalone ( #27587 )
...
Co-authored-by: Comma Device <device@comma.ai >
2023-03-14 20:55:41 -07:00
Jason Wen
27bd70f64b
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/gm/interface.py
# selfdrive/ui/translations/main_zh-CHT.ts
2023-03-12 14:59:46 -04:00
Jason Wen
b475e28087
Merge remote-tracking branch 'upstream/commaai/openpilot/master'
...
# Conflicts:
# cereal
# panda
# selfdrive/car/hyundai/interface.py
# selfdrive/car/toyota/carcontroller.py
2023-03-12 14:52:12 -04:00
Harald Schäfer
7d32554fe3
Parse GLONASS ephemeris from mystery satellites ( #27541 )
...
parse unknown glonass
2023-03-09 18:48:32 -08:00
Harald Schäfer
75eaca3cf3
Update amplifier config ( #27443 )
...
* update tizi amplifier
* Update attenuation
2023-03-09 11:12:42 -08:00
Adeeb Shihadeh
c97911dbad
ubloxd: move to system/ ( #27536 )
...
* ubloxd: move to system/
* more fixes
* add missing sconscript
* fix valgrind tests
* uncomment
2023-03-08 16:11:18 -08:00
Harald Schäfer
231e9a950d
Pigeond: Request sat info msgs ( #27529 )
...
request sat info msgs
2023-03-08 13:07:33 -08:00
Adeeb Shihadeh
94eb215980
loggerd: move to system/ ( #27534 )
2023-03-08 11:20:49 -08:00
Adeeb Shihadeh
6f40f0d442
sensord: move to system/ ( #27531 )
...
* sensord: move to system/
* add gitignore to releaes files
2023-03-08 10:56:54 -08:00
Adeeb Shihadeh
ebd25b8a7d
test_power_draw: add header to output table ( #27511 )
...
* test_power_draw: add header to output table
* units
2023-03-06 16:13:29 -08:00
George Hotz
3892c60980
tinygrad: bump to 0.5 ( #27505 )
...
* bump tinygrad to 0.5
* update release files
* ref commit + bump tinygrad
* save 220 mW
---------
Co-authored-by: Comma Device <device@comma.ai >
2023-03-06 15:50:28 -08:00
Jason Wen
37e07b8362
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# panda
# selfdrive/car/chrysler/interface.py
# selfdrive/car/hyundai/values.py
# selfdrive/ui/qt/onroad.cc
# selfdrive/ui/qt/onroad.h
2023-02-09 02:13:08 -05:00
Cameron Clough
6fb5661abb
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
2023-02-06 20:02:30 -08:00
Jason Wen
bb6bee5925
Merge branch 'master' into dev-priv/master
...
# Conflicts:
# system/version.py
2023-02-06 00:33:31 -05:00
Adeeb Shihadeh
0374d4817d
setup pre-built master-ci ( #27205 )
...
* try this
* add as release branch
* set the name
* build on master-ci
2023-02-05 15:45:01 -08:00
Jason Wen
d0743e6b42
Merge branch 'dev-pub/master' into dev-priv/master
...
# Conflicts:
# selfdrive/car/chrysler/interface.py
# selfdrive/car/hyundai/carcontroller.py
# selfdrive/controls/controlsd.py
# selfdrive/ui/qt/onroad.cc
2023-02-04 00:43:41 -05:00
Cameron Clough
feba2f3fe5
fix micd input device ( #27160 )
...
* try no device
* unused
* move sounddevice import
2023-01-30 17:41:42 -08:00
Jason Wen
e84a0326da
MADS: Support all cars ( #13 )
...
* sunnypilot: MADS - Base + HKG
* fix upstream conflicts
* Don't miss this
* Missed it
* Don't initiate lane change when braking
* HKG: better cluster state
* HKG: only blink when disengaging lateral
* HKG: Optima's icons
* HKG: update vars and blink for CAN-FD
* HKG: don't get stuck
* obsolete
* remove this for now
* border color should sync
* change border color
* simplify things
* HKG: update events
* Honda: MADS
* HKG: cleanup
* Toyota: MADS
* Revert "remove this for now"
This reverts commit 76ddd435084e051ced9a343372900ced96180989.
* Revert "HKG: cleanup"
This reverts commit e1ab96c6f7634508b5f3820868d22f4694361622.
* Toyota: use the working one
* same colors
* block resume press if no previous set speed
* HKG: handle events better
* Honda: handle events better
* Toyota: handle events better
* Volkswagen MQB & PQ: MADS
* Subaru: MADS
* FCA: MADS
* add another argument for per port specifics
* GM: MADS
* Toyota: missed this
* Mazda: MADS
* Nissan: MADS
* have to use this
* pass events to the next
* move it around
* move some stuff around
* cleanup
* simplify and check if cruise is initialized with non PCM
* don't think we need this anymore
* Volkswagen: These 2 buttons don't get used
* check resume available differently
* check better
* simplify
* Mazda: missed one update check
* HKG: Move carstate logic to interface
* check from ret instead
* cruise state enabled spam bug
* check pcm
* set it earlier
* own cruise initialize check
* fixup! own cruise initialize check
* more inclusive
* HKG: redundant
* Honda: Move carstate logic to interface
* only check cruise speed when not PCM
* Toyota: Move carstate logic to interface
* fixup! HKG: Move carstate logic to interface
* fixup! Honda: Move carstate logic to interface
* fixup! Honda: Move carstate logic to interface
* Volkswagen: Move carstate logic to interface
* check if cruise has ever been enabled in state machine
* already exists
* just one more
* do not allow steering in certain situations
* Subaru: Move carstate logic to interface
* FCA: Move carstate logic to interface
* GM: Move carstate logic to interface
* Mazda: Move carstate logic to interface
* Nissan: Move carstate logic to interface
* HKG: move init
* declare at once
* cleanup variables
* prevent stuck engaged
* initialize for all cars
* slimmer
* no entry for brake press engage
* Revert "no entry for brake press engage"
This reverts commit 9e6e1ca5000c213017091765a0e50d2d794cebe9.
* Toyota: Change the logic
* Nissan: Cleanup carstate
* HKG: only disengage when cruise intially not available
* Revert "HKG: only disengage when cruise intially not available"
This reverts commit 123cce1818ea7285cbd433524c4f0e80e7c99cb4.
* allow press anytime
* cancel cruise when control wants to cancel
* remove some stuff
* wrong one
* can't do that
* would this fix it?
2023-01-29 15:27:49 -05:00
ZwX1616
e2e780e7c6
ci: intra-camera timing check ( #27069 )
...
* test frame time
* 1 is still much tighter than 5
2023-01-24 16:34:41 -08:00
Adeeb Shihadeh
ef42652368
fix typo AR0321 -> AR0231 ( #26993 )
2023-01-17 19:52:06 -08:00
ZwX1616
bc8e2032f7
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 >
2023-01-17 14:16:28 -08:00
ZwX1616
028527423c
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 >
2023-01-13 21:32:15 -08:00
Adeeb Shihadeh
922bedaf47
tici: remove hardcoded max brightness ( #26859 )
...
* tici: remove hardcoded max brightness
* fix that one
* cleanup
Co-authored-by: Comma Device <device@comma.ai >
2023-01-01 19:47:02 -08:00
Adeeb Shihadeh
3d44b6b3ac
alt amp config ( #26858 )
...
* alt amp config
* fix
* not executable
* comment
* consistency
Co-authored-by: Comma Device <device@comma.ai >
2023-01-01 19:15:44 -08:00
Adeeb Shihadeh
cd8e03d53e
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 >
2022-12-31 21:00:50 -08:00
ZwX1616
e6e33531ca
camerad: lower cost for OX high gain idxs ( #26775 )
2022-12-12 16:35:25 -08:00
Shane Smiskol
20dba2f33d
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 >
2022-12-02 18:38:04 -08:00
Shane Smiskol
060b69ee2f
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 86cd919a57 .
* Revert "check micd proc"
This reverts commit 9ebbe2aa42bdfd2f7f8bf226978a518d984fb154.
Co-authored-by: Cameron Clough <cameronjclough@gmail.com >
2022-12-02 15:25:34 -08:00
Shane Smiskol
de061eacbe
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.
2022-12-02 02:23:51 -08:00
Shane Smiskol
d087fab2c0
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 >
2022-12-02 00:11:29 -08:00
Cameron Clough
86cd919a57
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
2022-12-01 12:52:06 -08:00
Cameron Clough
108ff15f5d
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 >
2022-11-30 21:56:03 -08:00
Cameron Clough
02b5b6fe1f
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
2022-11-30 15:36:25 -08:00
ZwX1616
2153bfe27a
camerad: minor ae improvement to OX ( #26566 )
2022-11-23 13:08:04 -08:00
Adeeb Shihadeh
4478241bea
spi goes on boardd core
2022-11-21 17:17:36 -08:00
Adeeb Shihadeh
94aa39bdd4
enable experimental longitudinal control on devel ( #26544 )
2022-11-21 16:18:51 -08:00
Adeeb Shihadeh
b549e8174e
agnos 6.2 ( #26441 )
...
* agnos 6.2
* staging manifest
* production
2022-11-10 21:10:34 -08:00
ZwX1616
5eaf525c18
camerad: fix OX flicker ( #26439 )
2022-11-09 21:49:24 -08:00
Kurt Nistelberger
4ec1c7e614
CI: camera box update ( #26414 )
...
* check if all frames are laggy
* apply tolerance
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com >
2022-11-08 13:51:16 -08:00
Adeeb Shihadeh
8ba9a5107b
boardd: SPI support ( #26374 )
...
* spi handle
* put usb back
* handle eintr
Co-authored-by: Comma Device <device@comma.ai >
2022-11-08 13:21:07 -08:00
ZwX1616
aab4b79416
CI: set OX frame sync tolerance ( #26347 )
...
* ox tolerate
* int
* update comments
2022-11-03 14:27:45 -07:00