Adeeb Shihadeh
3a968c67e1
loggerd: move to system/ ( #27534 )
...
old-commit-hash: 94eb215980
2023-03-08 11:20:49 -08:00
EdwardApollo
5be01f56c0
Increase Minimum Offroad Battery Voltage ( #26661 )
...
* Reduce Min Idle Battery Voltage and Idle Time
Updated minimum offroad battery voltage to reduce wear on car batteries and updated max offroad time to reflect the increased power consumption at idle based on EPHOT hardware power draw (this may have changed).
Most vehicles make use of lead acid batteries which during normal use shouldn't ever decrease below ~12V (sources give a range of 11.8-12V). Increasing this limit will prevent premature battery failure by preventing sulfation of the cells.
* Voltage cutoff to 11.8V, max offroad to 30h
Changed lower voltage limit to 11.8V, removed power usage comment entirely, reverted change to max offroad time to 30 hours
* Added Offroad Shutdown conditional
Added IsOffroad Shutdown conditional statement to prevent shutting down due to voltage floor.
* LPF Gain: Tau = 45s
Tau modified to 45s to result in a LPF gain of ~0.011.
Assuming a dT of 0.5s: (0.5/45)/((0.5/45)+1)
* Revert IsOffroad check
Removed due to unnecessary redundancy.
old-commit-hash: 30165134e8
2022-12-01 14:18:32 -08:00
Harald Schäfer
b1e87f4df2
thermald: add minimum offroad time to low voltage shutdown ( #26660 )
...
* voltage cleanup thermald
* Fix voltage shutdown test
old-commit-hash: 196caa095b
2022-12-01 13:57:11 -08:00
Bruce Wayne
3b889f1efd
Revert "voltage cleanup thermald ( #26658 )"
...
This reverts commit ff0119d67a793f8caf7362ba980dae29e70716b4.
old-commit-hash: 7a9d96759d
2022-12-01 13:11:31 -08:00
Harald Schäfer
3f7428c731
voltage cleanup thermald ( #26658 )
...
old-commit-hash: 92e985c583
2022-12-01 11:56:25 -08:00
Adeeb Shihadeh
7c96e7876a
cleanup panda types everywhere ( #26574 )
...
* cleanup panda types everywhere
* one more
old-commit-hash: 65fa87a969
2022-11-21 23:43:24 -08:00
Adeeb Shihadeh
c4a70bfc01
thermald: prevent started cycling too quickly ( #25971 )
...
* thermald: prevent started cycling too quickly
* move that
* fix logging and no wait after boot
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: f2859b3be5
2022-10-04 20:58:07 -07:00
Adeeb Shihadeh
17dbc473fc
thermald: consider pmic temp while onroad ( #25959 )
...
* thermald: consider pmic temp while onroad
* this is better
old-commit-hash: f35c234e9c
2022-10-03 21:19:51 -07:00
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
2022-08-31 21:13:53 -07:00
Adeeb Shihadeh
d9c279aea9
params: make python and c++ API match ( #25573 )
...
* params: make python and c++ API match
* few more
old-commit-hash: 90a4565eb2
2022-08-26 20:46:19 -07:00
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
2022-07-28 14:58:23 +02:00
Adeeb Shihadeh
c82a8eb80f
thermald: remove modem registered workaround ( #25288 )
...
old-commit-hash: e3e694096a
2022-07-27 17:24:16 -07:00
Shane Smiskol
5fb25ccc7d
Power Monitoring test: fix exceptions ( #24981 )
...
* fix missing POWER_DRAW
* think should be 0
old-commit-hash: d693285b02
2022-06-28 01:09:52 -07:00
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
2022-06-27 15:33:46 +02:00
Shane Smiskol
fe2f1901c2
thermald: fix panda dropout when we miss a pandaStates ( #24870 )
...
immediate fix for "panda dropout"
old-commit-hash: e910ce87a4
2022-06-15 21:42:54 -07:00
Adeeb Shihadeh
71d489a41e
Revert "thermald: consider pmic in component temp management ( #24708 )"
...
This reverts commit 5ab1b471582c259a3041b00f7fcd217e7814b609.
old-commit-hash: cbd404b954
2022-06-13 16:38:32 -07:00
Adeeb Shihadeh
3c48bc47b7
Move a bunch of stuff to system/ part 3 ( #24829 )
...
* move swaglog.py
* timezoned
* logmessaged
* version.py
* fix linter
old-commit-hash: 0fce5d9045
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh
393ce7cfeb
thermald: add back panda disconnect handling ( #24713 )
...
* thermald: add back panda disconnect handling
* cleanup
old-commit-hash: 302b0ea9bb
2022-06-02 13:39:41 -07:00
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
2022-06-02 15:20:51 +02:00
Jason Young
e683db37b8
thermald: consider pmic in component temp management ( #24708 )
...
old-commit-hash: c8c21baf50
2022-06-02 11:58:47 +02:00
Adeeb Shihadeh
5659b6e6ce
more comma two cleanup ( #24300 )
...
* more comma two cleanup
* fix up power monitoring
old-commit-hash: 6a48a7acef
2022-05-15 17:55:22 -07:00
Adeeb Shihadeh
3b1f479fa9
always tici
...
old-commit-hash: 4af943dc01
2022-04-26 20:02:39 -07:00
Adeeb Shihadeh
db252b457a
improve tici thermal control ( #24228 )
...
* improve tici thermals
* more i
* always 70
old-commit-hash: c5378cf8b9
2022-04-19 11:07:54 -07:00
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
2022-04-18 17:55:23 -07:00
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
2022-04-11 15:33:58 -07:00
HaraldSchafer
305a7a6bc9
Make PI into a PID ( #24151 )
...
* Make PI into a PID
* Cast like before
old-commit-hash: 634f7cebef
2022-04-07 11:34:45 -07:00
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
2022-04-05 14:29:07 -07:00
Robbe Derks
f6ebc8993b
Add power usage stat ( #24055 )
...
old-commit-hash: 68f86d815e
2022-03-29 11:30:13 +02:00
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
2022-03-20 17:28:09 -07:00
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
2022-03-14 14:45:50 -07:00
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
2022-03-09 11:36:52 +01:00
Adeeb Shihadeh
a8fec54e7b
thermald: use latest modem temps ( #23878 )
...
* thermald: use latest modem temps
* move that
old-commit-hash: 52cd58068e
2022-03-02 11:01:06 -08:00
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
2022-03-02 17:35:58 +01:00
Robbe Derks
1edd9bfb60
fix kF value for thermal PI controller ( #23871 )
...
old-commit-hash: f539d9c0bc
2022-02-27 19:51:59 +01:00
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
2022-02-07 14:32:29 -08:00
Adeeb Shihadeh
c491f3fc2c
for those who want to live in the moment
...
old-commit-hash: e6d8a84578
2022-01-31 14:30:40 -08:00
Willem Melching
43ec802122
thermald: increase kmsg loglevel to end up in console-ramoops-0
...
old-commit-hash: 1a96886dd1
2022-01-24 13:19:48 +01:00
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
2022-01-17 12:06:37 +01:00
Willem Melching
4c5a5581db
thermald: let manager handle shutdown ( #23528 )
...
* thermald: let manager handle shutdown
* add warning so its actually sent
old-commit-hash: 53ca036006
2022-01-14 14:13:32 +01:00
Willem Melching
6346a84060
thermald: remove panda disconnect logic ( #23526 )
...
* thermald: remove panda disconnect logic
* keep that
old-commit-hash: ed23177898
2022-01-14 14:13:18 +01:00
Willem Melching
f6ba27a1ea
thermald: remove brightness setting on ui crash ( #23527 )
...
old-commit-hash: e72eb1d472
2022-01-14 14:06:21 +01:00
Willem Melching
0e06079700
thermald: remove modem version log ( #23524 )
...
old-commit-hash: ef3a549fac
2022-01-14 12:20:12 +01:00
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
2022-01-10 19:54:07 +01:00
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
2022-01-10 15:21:48 +01:00
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
2021-12-28 18:07:00 +01:00
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
2021-12-24 11:18:39 -08:00
Adeeb Shihadeh
dc273557ba
tici: lower offroad temp setpoint ( #23177 )
...
* tici: lower offroad temp setpoint
* Update selfdrive/thermald/thermald.py
old-commit-hash: aa02e05193
2021-12-08 17:46:01 -08:00
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
2021-12-04 22:17:44 -08:00
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
2021-12-04 22:15:55 -08:00