Shane Smiskol
5c6866e44e
bump pandaStates to 10Hz ( #29889 )
...
* bump pandaStates to 10Hz
* run thermald at 2 Hz
* use service list for freq
* even better
* fix import
* use DT_TRML
* revert service list
* bump cereal
* no inter
* not sure why 5hz before
* revert
* revert peripheral
* poll on peripheralState
after pandaStates
* Revert "poll on peripheralState"
This reverts commit 5eecb83e070dd51b550a47f3e0e7a1600b8da4e4.
* revert this
* bump
* cmt
* fix
* bump to master
old-commit-hash: d47e8f53a5a67aa554ae97f8ae81ba19c7e41b74
2023-09-21 18:35:14 -07:00
Justin Newberry
2e36724cd2
Tests: power_monitoring disable nonblocking writes ( #29994 )
...
* better error logging
* fix power monitoring test
* revert that
* properly patch it
old-commit-hash: f69a45faba2789a6bcca8eca62acd316ff79f7a6
2023-09-20 16:51:46 -07:00
Adeeb Shihadeh
0010c9a986
Revert "params: safe and efficient async writing parameters ( #25912 )"
...
This reverts commit 780669c33fea1b2a14a0bd6e2eac82c9b8893aa5.
old-commit-hash: ec479322d3d8d789290bee68919d14b040481d53
2023-09-06 13:44:20 -07:00
Dean Lee
08e70aecb2
params: safe and efficient async writing parameters ( #25912 )
...
* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 0d797f4e8b2552192669d0329c14849f0a970066
2023-09-06 08:50:28 -07:00
Adeeb Shihadeh
53e0f5eb49
pytest: use a clean environment for all tests ( #29788 )
...
* pytest: use a clean environment for all tests
* rm that
* fix pj
* put build back
* fix params
* fix that
* handle no key
* that was removed
---------
Co-authored-by: Justin Newberry <justin@comma.ai >
old-commit-hash: 7b6afbc1623b8c159a92f6a5a951fb4d688045ee
2023-09-05 18:52:40 -07:00
Justin Newberry
3b91610c0b
Precommit: ensure executable bit is set ( #29784 )
...
* precommit ensure executable
* exclude tinygrad
* bump submodules
* exclude tinygrad globally
old-commit-hash: 4e69937d0d3fbdc7d1d42cbc18d7ccf8ddb115f1
2023-09-05 16:33:26 -07:00
Justin Newberry
c4f322ce2d
Linter: remove pylint ( #29611 )
...
remove pylint
old-commit-hash: 1ee6ed4b16e2ade0dd887c0687243aee769043e5
2023-08-24 16:30:54 -07:00
Shane Smiskol
5b7ab66c53
thermald: type annotate main thread ( #29414 )
...
* type
* stash
* Revert "stash"
This reverts commit f5e5e0d08c967d1a5d9c239e6335f8a47890b1a1.
* bug in mypy
old-commit-hash: af8af3209dc0756ccc25e41612b855d54b8d7af4
2023-08-23 14:42:27 -07:00
Adeeb Shihadeh
16ec56398c
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
old-commit-hash: a9626f95b69af19306143fc4def02fb5769405d2
2023-08-20 20:49:55 -07:00
Adeeb Shihadeh
51634f52dc
replace custom clock helpers with time module ( #29499 )
...
* replace custom clock stuff wtih time module
* fix double
* fix release
* bump cereal
* update type
* fix one more
old-commit-hash: d61f86d3398900ef01423d24cfdf897392a8efbb
2023-08-20 18:50:58 -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: 62c1e6592439119f360dd64b854e7047f35222ba
2023-08-11 15:33:49 -07:00
Justin Newberry
3ee0786de3
CI: Pylint to ruff ( #29294 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
* set line length
* pylint exclusions to ruff
* same excludes as old linter
* fix tools QA
* remove unrequired check
* revert linting third_party
* ignore e402
old-commit-hash: 7fdd9fc37c1c5febf1cd3dc86441ebf0dec7f370
2023-08-09 13:26:54 -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: cf64b27168614f851087adab2d7f766425922f64
2023-08-08 17:13:35 -07:00
Justin Newberry
ff96892511
Revert "CI: pylint to ruff ( #29276 )" ( #29284 )
...
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b0c9bfe5ccfc8e64321af6bb6c56536
2023-08-08 14:24:04 -07:00
Justin Newberry
99006365a3
CI: pylint to ruff ( #29276 )
...
* pylint to riff
* pylint to riff
* pylint to riff
* revert more
* undo exclude removal
* exclude tinygrad
old-commit-hash: cb31a53d8a93cf6cb1f8bd2fff1431716b3a47e4
2023-08-08 13:41:30 -07:00
Adeeb Shihadeh
fff24a37bc
thermald: don't show inavlid time alert until panda is up ( #29153 )
...
old-commit-hash: 77babcc60fb56aac111cc3868d3f000338066911
2023-07-26 14:31:53 -07:00
Adeeb Shihadeh
780d351255
tici: restart ModemManager if probing fails ( #29114 )
...
* tici: restart ModemManager if probing fails
* add comment
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 787d3b17147fc21bf3c93f7555a0e9aafe24a731
2023-07-23 20:36:13 -07:00
Adeeb Shihadeh
b2ef53ee57
update offroad danger temperature ( #28662 )
...
old-commit-hash: 23db0aa757e55670c8c6c63c7d4c2632b90e8397
2023-06-23 17:23:48 -07:00
Adeeb Shihadeh
826706dd30
thermald: show temp value in offroad alert ( #28664 )
...
* thermald: show temp value in offroad alert
* update
* better for multilang
* update translations
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 44643838333fbc8d60bbaacc10a2d24378b6af70
2023-06-23 17:12:01 -07:00
Adeeb Shihadeh
bb50193453
thermald: adjust offroad danger temp ( #28524 )
...
old-commit-hash: 692bfa55c9b066f3ed5adc0c65012c8154308be3
2023-06-15 20:12:24 -07:00
Adeeb Shihadeh
782ffa1b29
thermald: remove offroad min time condition ( #28567 )
...
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 77c9d65a71069d88f1c49e75b82c52febc8edc63
2023-06-15 18:50:59 -07:00
Adeeb Shihadeh
7ee035af0a
thermald: log duration of startup block ( #28566 )
...
old-commit-hash: 411cf094f3867a8789329197a63e3bcf9f3aba77
2023-06-15 18:16:59 -07:00
Adeeb Shihadeh
42a4f610c2
thermald: fix temperature filter init ( #28565 )
...
old-commit-hash: 3072643363f3b48f9a3846c37e1da5e5d61cd93b
2023-06-15 17:34:01 -07:00
Adeeb Shihadeh
df3dffc2d1
thermald: log filtered max temp ( #28564 )
...
old-commit-hash: cb4c7118a54dc4e3e135dfdc38122e4ef1b2d826
2023-06-15 17:08:47 -07:00
Adeeb Shihadeh
df13f240b3
thermald: save last offroad status packet on onroad transition ( #28563 )
...
* thermald: save last offroad status packet on onroad transition
* update param
* write every time
---------
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 7d6897fa38be4bc6f82f35b902052b12efd47af3
2023-06-15 15:04:22 -07:00
Adeeb Shihadeh
ebc311bdc9
thermald: must be in yellow band to go onroad ( #28517 )
...
old-commit-hash: 9bb9657c9cf052ea6a78cb201b6eda41beb457cc
2023-06-12 16:33:33 -07:00
Adeeb Shihadeh
4ab84b5dc1
thermald: common min date ( #28457 )
...
* thermald: common min date
* add to release files
old-commit-hash: d96361970b32a76422dc1acc7a78e5bdd55a4bed
2023-06-12 13:50:38 -07:00
Adeeb Shihadeh
ab538d21f9
thermald: lower threshold to exit red band
...
old-commit-hash: a77d226f33f618b965204c700fd0bfeb5f1547ab
2023-06-09 20:15:13 -07:00
Adeeb Shihadeh
a77ed2092c
tici: allow fan to run to 100% ( #28203 )
...
old-commit-hash: 7e9acfd1395d0612a555edd50bd4486d0cbb8d80
2023-05-16 07:23:22 -07:00
Shane Smiskol
a14463cbe3
onroad transition: clear params and start safety setter thread ( #28151 )
...
* rename from ignition to onroad/offroad
* forgot one
* clear in manager
* don't clear in boardd anymore
fix
* params isn't used here
* add comment
* Revert "add comment"
This reverts commit 54fb6660501679e5a989c3f06c0a438bdb04dc7e.
* write params in manager
* first part is self explanatory
* remove these from thermald now
* start safety setter thread with IsOnroad
* drivesss
* more
* less
* come back
* makes sense here
old-commit-hash: b8fa7f58ea8db77d2f7a9e70d139019b24a29da7
2023-05-09 21:25:23 -07:00
MoreTorque
f5b4a0df46
Delay Shutdown: delay shutdown for 5 minutes after ignition turned off. ( #27860 )
...
Added delay shutdown. Tests updated
Co-authored-by: moretore <wrha@CH-ADS.localdomain >
old-commit-hash: 150a7d52da833876781aa8ec4730ec1d6021b0f2
2023-04-20 14:57:09 -07:00
Adeeb Shihadeh
3a968c67e1
loggerd: move to system/ ( #27534 )
...
old-commit-hash: 94eb2159802d3dba99620db0b08731c68a7e4733
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: 30165134e8963e260245c1b6596ca3ae3cc08fea
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: 196caa095b1c028926e580bb9c671338d08d3fa6
2022-12-01 13:57:11 -08:00
Bruce Wayne
3b889f1efd
Revert "voltage cleanup thermald ( #26658 )"
...
This reverts commit ff0119d67a793f8caf7362ba980dae29e70716b4.
old-commit-hash: 7a9d96759d3a4db277edcce2d5e3ffda9c6823d5
2022-12-01 13:11:31 -08:00
Harald Schäfer
3f7428c731
voltage cleanup thermald ( #26658 )
...
old-commit-hash: 92e985c583bfb23c569008157037e77b6080a6f6
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: 65fa87a96965000986e76604ac868891e35a86bc
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: f2859b3be55d95bc53ff90aa536a7d8ae14b212f
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: f35c234e9c23d9af49fcc6f82475931dc2d887db
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: 28cb1897cb8be80b35b1ce7573066fb36b01d2d7
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: 90a4565eb29fe95fc83acf6e4f0ea0851c284d61
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: b2c1098cd80ff53544c2b65b77c145a5d4af80ad
2022-07-28 14:58:23 +02:00
Adeeb Shihadeh
c82a8eb80f
thermald: remove modem registered workaround ( #25288 )
...
old-commit-hash: e3e694096a3a79e663712797e559e729e6818c7c
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: d693285b02a0f005ce1d29793c8672ab2fe24a24
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: 684d4b75a1c2f349da1e00dae9a40c39e3bb3607
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: e910ce87a44884a3f216fbced306e8d3124a04de
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: cbd404b954b5b80b65f1ad8363b0245c3c7c7911
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: 0fce5d90459b77bf2cfa70f55f322f0e1fb8d01c
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: 1139fe507b01f34de9714c99228f411558b44231
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: 302b0ea9bbac0fec939919b0d09b604569305be7
2022-06-02 13:39:41 -07:00