Adeeb Shihadeh
393ce7cfeb
thermald: add back panda disconnect handling ( #24713 )
...
* thermald: add back panda disconnect handling
* cleanup
old-commit-hash: 302b0ea9bb
3 years ago
Willem Melching
753045c73d
less TICI when not needed ( #24698 )
...
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2
3 years ago
Jason Young
e683db37b8
thermald: consider pmic in component temp management ( #24708 )
...
old-commit-hash: c8c21baf50
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
3b1f479fa9
always tici
...
old-commit-hash: 4af943dc01
3 years ago
Adeeb Shihadeh
db252b457a
improve tici thermal control ( #24228 )
...
* improve tici thermals
* more i
* always 70
old-commit-hash: c5378cf8b9
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
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
HaraldSchafer
305a7a6bc9
Make PI into a PID ( #24151 )
...
* Make PI into a PID
* Cast like before
old-commit-hash: 634f7cebef
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
Robbe Derks
f6ebc8993b
Add power usage stat ( #24055 )
...
old-commit-hash: 68f86d815e
3 years ago
Adeeb Shihadeh
d8b0684434
Add warning for unsupported NVME ( #23972 )
...
* Add warning for unsupported NVME
* fix it up
* fix typo
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a6d4bb5d01
3 years ago
George Hotz
2621c00ec1
thermald: use named thermal zones ( #23936 )
...
* thermald: use named thermal zones
* remove print
* and for c2
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 814741dafe
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
Adeeb Shihadeh
a8fec54e7b
thermald: use latest modem temps ( #23878 )
...
* thermald: use latest modem temps
* move that
old-commit-hash: 52cd58068e
3 years ago
Robbe Derks
98caf30f9b
Fan controller cleanup + testing ( #23886 )
...
* clean up fan controllers in preparation for testing
* add fan controller to release
* add some unit tests around the fan controller
* subclass ABC
old-commit-hash: 8c971f24e3
3 years ago
Robbe Derks
1edd9bfb60
fix kF value for thermal PI controller ( #23871 )
...
old-commit-hash: f539d9c0bc
3 years ago
Igor Biletskyy
64d3fa7e64
thermald: accept ignition from any panda ( #23721 )
...
* ignition from any panda
* more elegant )
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* typo
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2629715097
3 years ago
Adeeb Shihadeh
c491f3fc2c
for those who want to live in the moment
...
old-commit-hash: e6d8a84578
3 years ago
Willem Melching
43ec802122
thermald: increase kmsg loglevel to end up in console-ramoops-0
...
old-commit-hash: 1a96886dd1
3 years ago
Willem Melching
5cb4528fc3
thermald: move dbus and other slow calls into thread ( #23525 )
...
* split thermald in threads
* small cleanup
* type
* already done that
* add none check
* fix sleep
* shut down on exception
old-commit-hash: 850a2307d6
3 years ago
Willem Melching
4c5a5581db
thermald: let manager handle shutdown ( #23528 )
...
* thermald: let manager handle shutdown
* add warning so its actually sent
old-commit-hash: 53ca036006
3 years ago
Willem Melching
6346a84060
thermald: remove panda disconnect logic ( #23526 )
...
* thermald: remove panda disconnect logic
* keep that
old-commit-hash: ed23177898
3 years ago
Willem Melching
f6ba27a1ea
thermald: remove brightness setting on ui crash ( #23527 )
...
old-commit-hash: e72eb1d472
3 years ago
Willem Melching
0e06079700
thermald: remove modem version log ( #23524 )
...
old-commit-hash: ef3a549fac
3 years ago
Willem Melching
efc06c6290
thermald: track engaged state in param and kmsg ( #23478 )
...
* thermald: track engaged state in param
* write in kmsg
* format string
* move to python
old-commit-hash: 3ce4976db7
3 years ago
Robbe Derks
323febbf37
Statsd ( #23413 )
...
* device side of statsd
* need to start it
* enable in manager
* add sleep
* cleanup
* remove aggregates for now and standardize on industry terms
* manager needs main
* need to have a try/except
* atomic_write_on_fs_tmp does not work
* cleaner
* use dump
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* one file at a time
* limit amount of files
* move to influx line protocol and cleanup
* needs to be a list
* fix timezone bug
* actually rate limit
* add to release
* normalized origin
* also log deviceType
* more stats
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1b49ce6ec4
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
Ewout ter Hoeven
f206ebd054
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a82
3 years ago
Adeeb Shihadeh
dc273557ba
tici: lower offroad temp setpoint ( #23177 )
...
* tici: lower offroad temp setpoint
* Update selfdrive/thermald/thermald.py
old-commit-hash: aa02e05193
3 years ago
Adeeb Shihadeh
2f51cbab73
thermald: only go offroad on falling edge of ignition ( #23130 )
...
* thermald: only go offroad on falling edge of ignition
* and
* fix taht
old-commit-hash: 4803b26352
3 years ago
Adeeb Shihadeh
fc641646ed
updated: move update alerts out of thermald ( #23028 )
...
* updated: move update alerts out of thermald
* cleanup last update time
* set on startup
old-commit-hash: b79eaca18d
3 years ago
Willem Melching
28dd415759
Do not run code on version.py import ( #23063 )
...
* Do not run code on version.py import
* fix athena
old-commit-hash: f7c46c6949
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
1d7184d160
better update prompt text
...
old-commit-hash: 6c909ba651
3 years ago
Robbe Derks
bad079992c
reset on ignition edge ( #22915 )
...
old-commit-hash: 1d03f2a97b
4 years ago
Adeeb Shihadeh
29f6b5cb98
allow update snoozing ( #22876 )
...
* allow update snoozing
* not immediately visible
* dismiss and close
* grey button
old-commit-hash: e528e2e3e2
4 years ago
Robbe Derks
dbe4641e04
Multipanda support ( #22402 )
...
* squash all PR commits for easy rebase
* merged all panda rx can into one message
* fix buffers in can_send
* more cleanup and minor fixes
* fix even more stuff
* fix non-allocated send buffer
* make connecting more robust
* fix bus offset
* fix controls_mismatch?
* simplify mismatch check
* C++ style struct
* fix connect loop
* update ref
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2a
4 years ago
Adeeb Shihadeh
4099783375
add sdcard support ( #22703 )
...
* generalize
* factory reset
old-commit-hash: f4c2398db4
4 years ago
Adeeb Shihadeh
16aed2e43d
relax the no connectivity time to two weeks ( #22607 )
...
old-commit-hash: 168493767e
4 years ago
Adeeb Shihadeh
18b2d1fee0
thermald: log screen brightness ( #22570 )
...
* thermald: log screen brightness
* bump cereal
old-commit-hash: d708b5b546
4 years ago
Robbe Derks
58c99158a1
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
old-commit-hash: 91987f38d4
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
Willem Melching
11066c6236
Split pandaState into peripheralState and pandaState ( #22385 )
...
* publish peripheralState from boardd
* refactor consumers
* rename thread
* peripheralState has panda type too
* add to process replay
* fix device build
* properly remove hardware unsupported alert
* latest peripheralState
* remove pandaState from thermal_monitor
* put that back
* add back harness check
* fix cloudlog
* needs pandaState
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* dont conflate
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* pigeon is peripheral
* cleanup
* less global
* comment
* move rtc to peripheral_control_thread
* better diff?
* whitespace
* get msg
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f4e2537b12
4 years ago
Willem Melching
8aa225b3f9
move acados deps out of devpackages ( #22376 )
...
* move acados deps out of devpackages
* fix new pylint errors
old-commit-hash: a60f3c6a35
4 years ago
Robbe Derks
04d8197e1c
higher offroad danger temp for tici ( #22363 )
...
old-commit-hash: 664d48fd5e
4 years ago
Robbe Derks
df273353c5
Modem temp is an expensive call ( #22309 )
...
old-commit-hash: da2aa12754
4 years ago
Adeeb Shihadeh
ad04fa8625
thermald: remove cpr logging
...
old-commit-hash: d4e867e976
4 years ago
Adeeb Shihadeh
cadba6f36c
add booted onroad flag ( #22318 )
...
old-commit-hash: e9e490a729
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