Commit Graph

46 Commits

Author SHA1 Message Date
Adeeb Shihadeh
06ab3de4de update cavli config 2024-03-08 14:11:08 -08:00
Adeeb Shihadeh
a38a5e8bb4 tici: enable SIM hot swap (#31680)
* tici: enable SIM hot swap

* only tizi

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-03-01 17:24:22 -08:00
Comma Device
9616b3f717 no amp 2024-03-01 15:32:33 -08:00
Adeeb Shihadeh
0b4d08fab8 remove deviceState.ambientTempC (#31533) 2024-02-21 13:57:49 -08:00
Adeeb Shihadeh
a094179b4d add cavli modem config (#31297)
* add cavli modem config

* fix linter

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-02-04 14:26:03 -08:00
Adeeb Shihadeh
7ce29ef08e cleanup old params (#31039)
* cleanup old params

* one more
2024-01-17 14:42:07 -08:00
Adeeb Shihadeh
5f191321fd tici: check that peripherals are fully booted (#30942)
* tici: check that peripherals are fully booted

* default

* typo

* fix

---------

Co-authored-by: Comma Device <device@comma.ai>
2024-01-08 15:09:38 -08:00
Adeeb Shihadeh
ea94a6d89f athena: cleanup unused methods 2023-12-13 20:27:54 -08:00
Adeeb Shihadeh
460d9af5b7 more esim config (#30480)
* load single conn

* high priority

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-16 19:12:36 -08:00
Adeeb Shihadeh
e6e073d099 Revert "tici: use BASEDIR to lookup nm connection path"
This reverts commit 30ab9f8482.
2023-11-16 14:20:55 -08:00
Adeeb Shihadeh
30ab9f8482 tici: use BASEDIR to lookup nm connection path 2023-11-16 14:19:02 -08:00
Justin Newberry
f99939426f thermald: recover from modemmanager restart (#30464)
* test modem recovery

* static analysis

* also test lte reload

* this should just be try catched as well

* maybe we can find a better way than this

* rm the test

* make it clear

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-14 16:57:34 -08:00
Adeeb Shihadeh
e323191299 new sim connection settings (#30457)
* new sim connection settings

* fix att conflict

* sim id

* clenaup

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-11-13 21:38:22 -08:00
Adeeb Shihadeh
cc32a6bf9f tici: fix leftover APN config from AT&T (#30458) 2023-11-13 21:33:22 -08:00
Adeeb Shihadeh
7bee13e2d1 raise gpu clock (#30358)
* raise gpu clock

* update modeld power draw
2023-11-01 14:48:49 -07:00
Adeeb Shihadeh
683b3b5966 pandad: recover from bad bootstub (#29638)
* pandad: recover from bad bootstub

* more

* adjust that

* ugh guess multipanda is still a thing

* reset

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-08-25 17:03:00 -07:00
Justin Newberry
1ee6ed4b16 Linter: remove pylint (#29611)
remove pylint
2023-08-24 16:30:54 -07:00
Adeeb Shihadeh
a9626f95b6 add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Justin Newberry
62c1e65924 Ruff: enable most of bugbear (#29320)
* added mutable default args

* most of the Bs

* add comment about lrucache
2023-08-11 15:33:49 -07:00
Justin Newberry
cf64b27168 Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
2023-08-08 17:13:35 -07:00
Adeeb Shihadeh
d92c9aef23 tici: speedup power save setting (#29100)
* speedup

* update type

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-22 17:15:58 -07:00
Adeeb Shihadeh
d4bd0a3213 tici: let gpu sleep sooner (#28698)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-25 19:05:58 -07:00
Adeeb Shihadeh
111b4eee30 fix a bunch of python warnings (#28576)
* fix a bunch of python warnings

* fix that
2023-06-16 13:22:30 -07:00
Adeeb Shihadeh
951bab8e18 AGNOS 7 (#26908)
* agnos 7

* no caibx

* new build

* agnos 7.1

* prod manifest
2023-05-12 17:22:09 -07:00
Robbe Derks
21bcd7db63 Dynamic device type (#28011)
* tizi_device_type

* fix test

* also change it in the C versin
2023-05-04 12:12:01 +02:00
Adeeb Shihadeh
8a6312ef14 pandad: support GPIO recovery when in bootstub (#28090)
pandad: recover when in bootstub

Co-authored-by: Comma Device <device@comma.ai>
2023-05-03 20:27:32 -07:00
Adeeb Shihadeh
f832a71038 pandad: wait for internal panda to come up (#27705)
* pandad: wait for internal panda to come up

* test

* more checks
2023-04-14 14:18:13 -07:00
Adeeb Shihadeh
8f1753aaab 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>
2023-04-13 15:35:07 -07:00
Adeeb Shihadeh
fdb3488f6b 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>
2023-04-05 21:08:14 -07:00
Adeeb Shihadeh
038d34aa7f 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>
2023-04-05 16:35:27 -07:00
Adeeb Shihadeh
c25ce02639 tici: turn off fan after boot (#27680)
* tici: turn off fan after boot

* tmp if

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-03-24 16:48:07 -07: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
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
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
Adeeb Shihadeh
4478241bea spi goes on boardd core 2022-11-21 17:17:36 -08:00
Adeeb Shihadeh
b549e8174e agnos 6.2 (#26441)
* agnos 6.2

* staging manifest

* production
2022-11-10 21:10:34 -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
Adeeb Shihadeh
1f5187892f safer modem manager commands (#25999)
Co-authored-by: Comma Device <device@comma.ai>
2022-10-07 10:39:11 -07:00
Adeeb Shihadeh
dc65f8a60a agnos 6 (#25864)
* agnos 6

* new agnos

* no casync for now
2022-09-22 15:56:17 -07:00
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
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
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07: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
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
Adeeb Shihadeh
1139fe507b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
2022-06-11 16:38:24 -07:00