Commit Graph

83 Commits

Author SHA1 Message Date
Adeeb Shihadeh
1ca3343d0c add small ui for jenkins runners (#29382)
old-commit-hash: 09ffce8073
2023-08-13 18:01:51 -07:00
Justin Newberry
f33b4de80b Ruff: b905 (strict zip) (#29336)
* added mutable default args

* most of the Bs

* add comment about lrucache

* b905
old-commit-hash: e4ead4f183
2023-08-11 16:13:51 -07:00
Justin Newberry
d487c0501f Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
old-commit-hash: 62c1e65924
2023-08-11 15:33:49 -07:00
Justin Newberry
7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Adeeb Shihadeh
4e047635d7 tici: reset panda state in amp test setup (#29237)
old-commit-hash: e3ca9f3e85
2023-08-04 15:07:01 -07:00
Maxime Desroches
8ceef4903b hardware: move gpio_export (#29154)
old-commit-hash: eec99436c1
2023-07-26 15:12:01 -07:00
Adeeb Shihadeh
b54936dbfc tici: add siren gpio
old-commit-hash: 67ef6dd844
2023-07-26 11:35:11 -07:00
Adeeb Shihadeh
f5dc651c0a tici: better cleanup in amp test (#29146)
old-commit-hash: ed07c3ceda
2023-07-25 21:41:31 -07:00
Adeeb Shihadeh
3dfd770fb0 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d92c9aef23
2023-07-22 17:15:58 -07:00
Adeeb Shihadeh
b0c3778aae agnos 8 (#28843)
* agnos 8

* update to python 3.11.4 (#27452)

* rebase

* optional

* lower cython

* TEMP don't pull cl to use python3.11

* Revert "lower cython"

This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.

* fix cython

* remove tensorrt

* carla + opencv

* macos

* update timm and smp

* pynvc

* https

* downgrade numpy

* pin scipy

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>

* revert that

* fix linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
old-commit-hash: 1945c356c2
2023-07-20 21:56:57 -07:00
Adeeb Shihadeh
30a6fa35aa mapsd: rendering tests (#28981)
* mapsd: rendering tests

* run

* speedup
old-commit-hash: e2b5d1e29a
2023-07-16 14:39:34 -07:00
Cameron Clough
6e552fdfa8 update modem script (#28793)
old-commit-hash: 62ae247417
2023-07-03 18:21:31 +02:00
Adeeb Shihadeh
b968ab8015 tici: let gpu sleep sooner (#28698)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d4bd0a3213
2023-06-25 19:05:58 -07:00
Adeeb Shihadeh
12250870ea tici: improve amp test (#28648)
old-commit-hash: 7d6c22949a
2023-06-22 20:57:36 -07:00
Adeeb Shihadeh
ee363d69e3 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
old-commit-hash: 111b4eee30
2023-06-16 13:22:30 -07:00
Comma Device
4eb842c0f2 test_amp: wait for panda
old-commit-hash: dec3c5a57d
2023-06-09 15:36:41 -07:00
Mitchell Goff
8150598441 Check msg count in test_power_draw (#28444)
* Check msg count in test_power_draw.

* Use drain_sock

* Bug fix

* Combine into a single table

* Check camera state msgs and no default value for Proc.msgs

* Update system/hardware/tici/tests/test_power_draw.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 729d3ddcb5
2023-06-07 14:06:11 -07:00
mitchellgoffpc
3f69f4064a Lowered expected power draw for mapsd
old-commit-hash: ae0768909b
2023-06-06 11:58:32 -07:00
Mitchell Goff
bcf4099d90 Test power usage for mapsd and navmodeld (#28378)
* Test power usage for mapsd and navmodeld

* Send LLK message from thread

* Use threading.Event
old-commit-hash: dd6f7116f7
2023-06-05 20:27:02 -07:00
Kacper Rączy
c4a75225e8 params: specify path using PARAMS_ROOT (#28257)
* Add PARAMS_ROOT env var

* Change getenv type signature

* Use getenv default_val
old-commit-hash: b43a875ba2
2023-05-23 19:02:22 +02:00
Adeeb Shihadeh
05d3b28bb6 tici: log disk info (#28259)
old-commit-hash: 4751d2b57c
2023-05-22 16:53:07 -07:00
Adeeb Shihadeh
a82cf8d494 AGNOS 7 (#26908)
* agnos 7

* no caibx

* new build

* agnos 7.1

* prod manifest
old-commit-hash: 951bab8e18
2023-05-12 17:22:09 -07:00
Adeeb Shihadeh
2f8939dd0e bootlog: log agnos partition hashes (#28141)
* bootlog: log agnos partition hashes

* full path

* trimming

* slot

* boot is big

* give some time to start

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1a3125bb8f
2023-05-10 13:56:44 -07:00
Adeeb Shihadeh
3689bd2e77 loggerd: log HW-specific extras (#28084)
* loggerd: log HW-specific extras

* fix value

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e24d28fd45
2023-05-08 19:21:22 -07:00
Adeeb Shihadeh
09fe521cfe tizi: more amp retries (#28082)
old-commit-hash: 9b0d140400
2023-05-04 11:07:40 -07:00
Robbe Derks
51576bdd30 Dynamic device type (#28011)
* tizi_device_type

* fix test

* also change it in the C versin
old-commit-hash: 21bcd7db63
2023-05-04 12:12:01 +02:00
Adeeb Shihadeh
a6f06fc98c pandad: support GPIO recovery when in bootstub (#28090)
pandad: recover when in bootstub

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8a6312ef14
2023-05-03 20:27:32 -07:00
Adeeb Shihadeh
e631d24d77 Jenkins tuneup (#28095)
* tuneup

* use service messages

* logmono

* not passive
old-commit-hash: d5a0a4b3e8
2023-05-03 16:52:20 -07:00
Adeeb Shihadeh
29eb4d3a35 pandad: wait for internal panda to come up (#27705)
* pandad: wait for internal panda to come up

* test

* more checks
old-commit-hash: f832a71038
2023-04-14 14:18:13 -07:00
Adeeb Shihadeh
9ab3f160fb tizi: enable fan for shutdown (#27890)
* tizi: enable fan for shutdown

* Update system/hardware/tici/hardware.py

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8f1753aaab
2023-04-13 15:35:07 -07:00
Adeeb Shihadeh
7b329bcc59 tizi: retry amp comms (#27735)
* tizi: retry amp comms

* ensure all config is written together

* simple test

* check errors

* test shutdown

* a tici exclusive

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 767ed4295f
2023-04-06 23:38:16 -07:00
Adeeb Shihadeh
57f3632aa1 update manifest path in test
old-commit-hash: 9eda72d871
2023-04-05 22:39:57 -07:00
Adeeb Shihadeh
827ebdacaf tici: move tests to tests/
old-commit-hash: 39a1a917e7
2023-04-05 22:17:57 -07:00
Adeeb Shihadeh
119c910a36 tizi: only affine panda USB IRQ when it's used (#27816)
only affine panda USB IRQ when it's used

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: fdb3488f6b
2023-04-05 21:08:14 -07:00
Adeeb Shihadeh
3d9dfbf2bd tizi: affine IRQ by action instead of number (#27811)
* tizi: affine IRQ by action instead of number

* do camera irqs

* debug script

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 038d34aa7f
2023-04-05 16:35:27 -07:00
Adeeb Shihadeh
aa5aeb3ba3 tici: turn off fan after boot (#27680)
* tici: turn off fan after boot

* tmp if

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c25ce02639
2023-03-24 16:48:07 -07:00
Adeeb Shihadeh
7bd3d642aa allow running amp config script standalone (#27587)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2749205b4a
2023-03-14 20:55:41 -07:00
Harald Schäfer
6d6137ef5a Update amplifier config (#27443)
* update tizi amplifier

* Update attenuation
old-commit-hash: 75eaca3cf3
2023-03-09 11:12:42 -08:00
Adeeb Shihadeh
37af774ab0 test_power_draw: add header to output table (#27511)
* test_power_draw: add header to output table

* units
old-commit-hash: ebd25b8a7d
2023-03-06 16:13:29 -08:00
George Hotz
2fe836f158 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>
old-commit-hash: 3892c60980
2023-03-06 15:50:28 -08:00
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: 6fb5661abb
2023-02-06 20:02:30 -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: 922bedaf47
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: 3d44b6b3ac
2023-01-01 19:15:44 -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: 060b69ee2f
2022-12-02 15:25:34 -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: 86cd919a57
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: 108ff15f5d
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: 02b5b6fe1f
2022-11-30 15:36:25 -08:00
Adeeb Shihadeh
5bf27eff97 spi goes on boardd core
old-commit-hash: 4478241bea
2022-11-21 17:17:36 -08:00
Adeeb Shihadeh
d87ea66802 agnos 6.2 (#26441)
* agnos 6.2

* staging manifest

* production
old-commit-hash: b549e8174e
2022-11-10 21:10:34 -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: 8ba9a5107b
2022-11-08 13:21:07 -08:00