Commit Graph

183 Commits

Author SHA1 Message Date
Adeeb Shihadeh
77babcc60f thermald: don't show inavlid time alert until panda is up (#29153) 2023-07-26 14:31:53 -07:00
Adeeb Shihadeh
787d3b1714 tici: restart ModemManager if probing fails (#29114)
* tici: restart ModemManager if probing fails

* add comment

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-23 20:36:13 -07:00
Adeeb Shihadeh
23db0aa757 update offroad danger temperature (#28662) 2023-06-23 17:23:48 -07:00
Adeeb Shihadeh
4464383833 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>
2023-06-23 17:12:01 -07:00
Adeeb Shihadeh
692bfa55c9 thermald: adjust offroad danger temp (#28524) 2023-06-15 20:12:24 -07:00
Adeeb Shihadeh
77c9d65a71 thermald: remove offroad min time condition (#28567)
Co-authored-by: Comma Device <device@comma.ai>
2023-06-15 18:50:59 -07:00
Adeeb Shihadeh
411cf094f3 thermald: log duration of startup block (#28566) 2023-06-15 18:16:59 -07:00
Adeeb Shihadeh
3072643363 thermald: fix temperature filter init (#28565) 2023-06-15 17:34:01 -07:00
Adeeb Shihadeh
cb4c7118a5 thermald: log filtered max temp (#28564) 2023-06-15 17:08:47 -07:00
Adeeb Shihadeh
7d6897fa38 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>
2023-06-15 15:04:22 -07:00
Adeeb Shihadeh
9bb9657c9c thermald: must be in yellow band to go onroad (#28517) 2023-06-12 16:33:33 -07:00
Adeeb Shihadeh
d96361970b thermald: common min date (#28457)
* thermald: common min date

* add to release files
2023-06-12 13:50:38 -07:00
Adeeb Shihadeh
a77d226f33 thermald: lower threshold to exit red band 2023-06-09 20:15:13 -07:00
Adeeb Shihadeh
7e9acfd139 tici: allow fan to run to 100% (#28203) 2023-05-16 07:23:22 -07:00
Shane Smiskol
b8fa7f58ea 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
2023-05-09 21:25:23 -07:00
MoreTorque
150a7d52da 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>
2023-04-20 14:57:09 -07:00
Adeeb Shihadeh
94eb215980 loggerd: move to system/ (#27534) 2023-03-08 11:20:49 -08:00
EdwardApollo
30165134e8 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.
2022-12-01 14:18:32 -08:00
Harald Schäfer
196caa095b thermald: add minimum offroad time to low voltage shutdown (#26660)
* voltage cleanup thermald

* Fix voltage shutdown test
2022-12-01 13:57:11 -08:00
Bruce Wayne
7a9d96759d Revert "voltage cleanup thermald (#26658)"
This reverts commit 92e985c583.
2022-12-01 13:11:31 -08:00
Harald Schäfer
92e985c583 voltage cleanup thermald (#26658) 2022-12-01 11:56:25 -08:00
Adeeb Shihadeh
65fa87a969 cleanup panda types everywhere (#26574)
* cleanup panda types everywhere

* one more
2022-11-21 23:43:24 -08:00
Adeeb Shihadeh
f2859b3be5 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>
2022-10-04 20:58:07 -07:00
Adeeb Shihadeh
f35c234e9c thermald: consider pmic temp while onroad (#25959)
* thermald: consider pmic temp while onroad

* this is better
2022-10-03 21:19:51 -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
90a4565eb2 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -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
Adeeb Shihadeh
e3e694096a thermald: remove modem registered workaround (#25288) 2022-07-27 17:24:16 -07:00
Shane Smiskol
d693285b02 Power Monitoring test: fix exceptions (#24981)
* fix missing POWER_DRAW

* think should be 0
2022-06-28 01:09:52 -07: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
Shane Smiskol
e910ce87a4 thermald: fix panda dropout when we miss a pandaStates (#24870)
immediate fix for "panda dropout"
2022-06-15 21:42:54 -07:00
Adeeb Shihadeh
cbd404b954 Revert "thermald: consider pmic in component temp management (#24708)"
This reverts commit c8c21baf50.
2022-06-13 16:38:32 -07:00
Adeeb Shihadeh
0fce5d9045 Move a bunch of stuff to system/ part 3 (#24829)
* move swaglog.py

* timezoned

* logmessaged

* version.py

* fix linter
2022-06-11 23:19:27 -07:00
Adeeb Shihadeh
1139fe507b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh
302b0ea9bb thermald: add back panda disconnect handling (#24713)
* thermald: add back panda disconnect handling

* cleanup
2022-06-02 13:39:41 -07:00
Willem Melching
f49a9c9fd2 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>
2022-06-02 15:20:51 +02:00
Jason Young
c8c21baf50 thermald: consider pmic in component temp management (#24708) 2022-06-02 11:58:47 +02:00
Adeeb Shihadeh
6a48a7acef more comma two cleanup (#24300)
* more comma two cleanup

* fix up power monitoring
2022-05-15 17:55:22 -07:00
Adeeb Shihadeh
4af943dc01 always tici 2022-04-26 20:02:39 -07:00
Adeeb Shihadeh
c5378cf8b9 improve tici thermal control (#24228)
* improve tici thermals

* more i

* always 70
2022-04-19 11:07:54 -07:00
Adeeb Shihadeh
5c48e7bc86 remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
2022-04-18 17:55:23 -07:00
Adeeb Shihadeh
c1388636a2 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>
2022-04-11 15:33:58 -07:00
HaraldSchafer
634f7cebef Make PI into a PID (#24151)
* Make PI into a PID

* Cast like before
2022-04-07 11:34:45 -07:00
Willem Melching
be35caca61 Log modem version and some NV values (#24137)
* add back modem version number logging

* tici only

* log nv

* make event

* str cast
2022-04-05 14:29:07 -07:00
Robbe Derks
68f86d815e Add power usage stat (#24055) 2022-03-29 11:30:13 +02:00
Adeeb Shihadeh
a6d4bb5d01 Add warning for unsupported NVME (#23972)
* Add warning for unsupported NVME

* fix it up

* fix typo

Co-authored-by: Comma Device <device@comma.ai>
2022-03-20 17:28:09 -07:00
George Hotz
814741dafe thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
2022-03-14 14:45:50 -07:00
Willem Melching
da5a0c41a0 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
2022-03-09 11:36:52 +01:00
Adeeb Shihadeh
52cd58068e thermald: use latest modem temps (#23878)
* thermald: use latest modem temps

* move that
2022-03-02 11:01:06 -08:00
Robbe Derks
8c971f24e3 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
2022-03-02 17:35:58 +01:00