Cameron Clough
b6f6f748b3
hardware: make set_dispaly_power not abstract
...
follow-up to https://github.com/commaai/openpilot/pull/35060#discussion_r2058829397
2 days ago
Cameron Clough
196848c023
ui(raylib): set display power and brightness on init ( #35060 )
...
* add set_display_power to hardware.py
* set display power and brightness on app init
2 days ago
Adeeb Shihadeh
2e9540d2b1
system/hardware: refactor thermal config ( #34177 )
...
* system/hardware: refactor thermal config
* fix
* fixup
---------
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
34d62836fe
hw: add fan intake and exhaust temps ( #34156 )
...
* hw: add fan intake and exhaust temps
* remove bat
---------
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
670cf27f8e
tici: modem cleanups ( #34071 )
...
* tici: modem cleanups
* rm that
---------
Co-authored-by: Comma Device <device@comma.ai>
5 months ago
Adeeb Shihadeh
7150c145ae
selfdrived: remove redundant sound card check ( #33767 )
...
rm
7 months ago
Cameron Clough
9bd90112d0
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae49
1 year ago
Adeeb Shihadeh
5e81beb77e
remove deviceState.ambientTempC ( #31533 )
...
old-commit-hash: 0b4d08fab8
1 year ago
Adeeb Shihadeh
269fbedbcb
cleanup old params ( #31039 )
...
* cleanup old params
* one more
old-commit-hash: 7ce29ef08e
1 year ago
Adeeb Shihadeh
e905a35467
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>
old-commit-hash: 5f191321fd
1 year ago
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
2 years ago
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 baf9887e2d
.
* Revert "use pactl package"
This reverts commit 0c1f3a4b86
.
* Revert "micd: don't update filtered sound level if playing sound (#26652 )"
This reverts commit 6703f6fa0297ad587ce80fcf1af432c402ba4e7e.
* Revert "check micd proc"
This reverts commit 9ebbe2aa42
.
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 060b69ee2f
2 years ago
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
2 years ago
Adeeb Shihadeh
caac56b92e
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
old-commit-hash: 28cb1897cb
3 years ago
Willem Melching
8b39650d99
thermald: log modem data usage ( #25298 )
...
* thermald: log modem data usage
* add to deviceState
* add cast
* set refresh rate
* bump cereal
* cereal master
old-commit-hash: b2c1098cd8
3 years ago
Robbe Derks
a6efa2c7d3
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>
old-commit-hash: 684d4b75a1
3 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
5659b6e6ce
more comma two cleanup ( #24300 )
...
* more comma two cleanup
* fix up power monitoring
old-commit-hash: 6a48a7acef
3 years ago
Adeeb Shihadeh
1056784a95
pandad: better handling of internal panda failures ( #23755 )
...
* reset internal panda
* recover
* internal dfu
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 59134c05d6
3 years ago
grekiki
cc943ac9a5
mypy: enable --warn-unreachable ( #24282 )
...
* Optional solves mypy assuming None is always None
* oops
* spaces
* Update registration.py
* fix local error
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b8b15d5cf1
3 years ago
Adeeb Shihadeh
ad8e58c250
comma three: correctly set initial EPS bearer settings for AT&T sim cards ( #24175 )
...
* 3g sunset
* only for blue prime
* pass
* full att code
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c1388636a2
3 years ago
Willem Melching
9cd2f5a7a3
Log modem version and some NV values ( #24137 )
...
* add back modem version number logging
* tici only
* log nv
* make event
* str cast
old-commit-hash: be35caca61
3 years ago
Willem Melching
2eded18267
C3: detect metered Android hotspot ( #23734 )
...
* C3: detect metered networks
* show in ui
* fix text layout
* bump cereal
* revert ui changes
* set networkMetered
* add athena method
* add metered logging to uploader
* use in athena uploader
* remove param
* use networkmanager properties to set cell to unmetered
* fix indentation
* no need to check
* bump cereal
* review
* bump cereal
old-commit-hash: da5a0c41a0
3 years ago
Willem Melching
db3eef978f
athena: add suport for download bandwith setting ( #23727 )
...
* athena: add suport for download bandwith setting
* clean ingress rules
old-commit-hash: 0d099e07aa
3 years ago
Willem Melching
fb18d7b789
Add setUploadLimit method to athena ( #23693 )
...
* Add setUploadLimit method to athena
* add comments
* move to hw abstraction layer
* move to hw
* better errors
old-commit-hash: 4c406cdbe5
3 years ago
George Hotz
86a39e838b
Add More Types for mypy ( #23268 )
...
* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc96d4bee7
3 years ago
Willem Melching
686a38aea4
Abstract classes inherit from ABC ( #23246 )
...
old-commit-hash: 14bf834fef
3 years ago
George Hotz
5d990ad509
thermald: track power usage / pmic temps ( #23013 )
...
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6462ced209
3 years ago
Adeeb Shihadeh
18b2d1fee0
thermald: log screen brightness ( #22570 )
...
* thermald: log screen brightness
* bump cereal
old-commit-hash: d708b5b546
4 years ago
Adeeb Shihadeh
afe88f7552
only run get_nvme_temps on C3 ( #22464 )
...
* only run get_nvme_temps on C3
* temperatures
* fix imports
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 493e32431c
4 years ago
Adeeb Shihadeh
f53a09f40e
log nvme temp ( #22296 )
...
* log nvme temp
* fix high cpu
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 212d2c3998
4 years ago
Robbe Derks
4827dea04c
Log modem temps on Tici ( #22281 )
...
* log max modem temp
* not sure what happened here
* fix this
* make modem temps a list
* this is not needed
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6117c7ce81
4 years ago
Willem Melching
cf2f6b964d
Athena getNetworks method ( #21597 )
...
* add iwlist scan
* return using athena
* add lte
* add last one too
* unused
* add release files
* more compact
* typo
* remove debug code
* different file
* array
* rebase mistake
old-commit-hash: a7aa22253b
4 years ago
robbederks
6e867a05cf
Tici: amplifier config ( #21596 )
...
* amplifier config on boot
* add to release
* another spot
* add debug when running separately
* rename for clarity
old-commit-hash: cbae2899df
4 years ago
Willem Melching
f973c0bc04
cloudlog modem version ( #21562 )
...
* log modem version
* whitespace
old-commit-hash: fb8f0ac092
4 years ago
Willem Melching
30fff7fead
Log gpu usage ( #21404 )
...
* Log gpu usage
* 100 total
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ad7f0207ac
4 years ago
Willem Melching
b3873f00a4
thermald: fetch more detailed network info ( #20928 )
...
old-commit-hash: f6cf350d3a
4 years ago
Adeeb Shihadeh
4fef6d01a6
tici power saving ( #20644 )
...
* start power saving
* set power save in thermald
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b0bd123445
4 years ago
robbederks
2db03fdbe2
Turn up brightness a little when UI crashes ( #20142 )
...
* implement ui check and brightness set in thermald
* fix bugs
* only set once
* duh
* forgot factor for tici
old-commit-hash: 4c243da019
4 years ago
robbederks
0f73681f8d
Fix tici powerdown and add support for forcing ( #20132 )
...
* also shutdown on tici
* force powerdown
* bump panda
* abstract out shutdown and thermal config
* add comment on tici shutdown
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ad1c793d1
4 years ago
Adeeb Shihadeh
43d680c9c5
add device type to clouglog ctx ( #19890 )
...
* add device type to clouglog ctx
* remove is_eon
* str
old-commit-hash: c9679222ae
4 years ago
Adeeb Shihadeh
349429836c
agnos updater ( #2600 )
...
* agnos updater
* add manifest
* fix path
* get manifest from overlay
* update manifest
* remove merge markers
* add streaming decompressor
* dont need read all
* Unsparsify
* Fix output filename
* Optimization
* cleanup
* Small cleanup
* Read manifest from merged overlay
* Write hash at end of partition
* Sync before writing hash
* Write bytes in file
* add manifest with image sizes
* Fix manifest path
* File was closed already
* Format string
* Put raw hash
* Read hashes in launch script
* update launch script
* should be agnos version
* fix slot
* Make sure we clear the hash
* Verify partition size
* move updated
* Standalone flasher
* Don't rely on ordering
* Get path
* Debug log
* Download agnos
* Info is enough
* update manifest
* Remove f
* Check downloader return code
* Exit on wrong manifest
* Fix typos
* Set pythonpath before hardware init
* move agnos into hardware folder
* remove comments
* Fix abstractmethod
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b276881fcd
4 years ago
Adeeb Shihadeh
c4bff3f93b
manager cleanup ( #2634 )
...
* start cleanup
* add uninstall to hw abstraction layer
* cleanup
* litte more
* don't build at import time
* fix tests
* don't build by default
* sync
old-commit-hash: 220853730d
4 years ago
Adeeb Shihadeh
b950cab874
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
old-commit-hash: 8674b023ba
4 years ago
robbederks
3209380a23
Move thermald hardware calls into HW abstraction layer ( #2630 )
...
* abstracted away hardware calls
* oopsie
* remove bugs
* remove bugs #2
* fix unit test
* removed print
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e64484aecd
4 years ago
Willem Melching
d455516765
Tici hardware abstraction layer ( #2183 )
...
* rename android hardware
* add tici class
* elif
* read correct serial number
* Update release files
* Get IMEI
* Refactor AT command
* move get_cmdline into base class
* Remove unused import
* Small cleanup
old-commit-hash: c90cb1b529
5 years ago
Willem Melching
16fe1bb2ad
Hardware abstraction class ( #2080 )
...
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
old-commit-hash: c7152d5419
5 years ago