Commit Graph

73 Commits (ae09afa305afbe429dbac2b20ad0ca5e40441242)

Author SHA1 Message Date
Adeeb Shihadeh 266ef886dd add a sleep after cloudlog 2020-08-18 11:52:01 -07:00
Adeeb Shihadeh a46d2f5b17 log when thermald shuts down device 2020-08-18 07:45:20 -07:00
robbederks 7555379b2b
Car power integrator + power management refactor (#1994)
* wip, ready to test

* tweaks

* fix

* fix

* fix power monitoring

* fix param writing

* no forced charging on high voltage

* reset capacity on reboot

* don't shutdown unless started seen

* fix unused var warning

* fix linting errors

* time is always valid

* QCOM gate

* Local params

* decimate saving

* fix linting

* rename param

* Log car battery capacity

* fix put_nonblocking

* Added some unit tests

* Add test to docker test list

* fix precommit

* cleanup

* run tests in CI

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-08-17 11:56:27 +02:00
Willem Melching e909fddac0 Force battery temperature to 0 on comma two 2020-08-12 16:36:17 +02:00
Adeeb Shihadeh 8e63f06540
Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
2020-08-11 16:23:57 -07:00
Willem Melching 10bfbaff8e Lower max CPU temp to go onroad to 70 C 2020-07-06 13:37:09 +02:00
robbederks df86c476c7
Dos (#1795) 2020-06-29 12:47:48 +02:00
Willem Melching 3c5c8c2508 lower temperatures slightly until UI/modeld GPU interaction is improved 2020-06-23 19:02:42 -07:00
Willem Melching 955d2aefdd
Cool down device before going onroad if CPU temp over 75 C (#1688)
* Block going onroad when temperatures are too high

* add relay check
2020-06-12 15:03:32 -07:00
Willem Melching c82fda995b Increase temperature range 2020-06-10 17:20:39 -07:00
Adeeb 367155168a
Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
Adeeb d9bf9f0a40
Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
2020-05-30 20:14:58 -07:00
William aef01f4bdf
Shebang Fix (#1477)
* Shebang Fix

Per George's "I'd merge a PR replacing the 4 python3.7 with python3" on Discord. George updated Python to 3.8.2 for webcam tools, which broke manager from launching. Instead of chasing the exact version, it seems more reasonable to fall back to 3.

* More Python3.7's
2020-05-08 18:08:11 -07:00
Willem Melching 2ea494ed52
Wait 5s before going offroad after panda disconnect (#1406)
* wait 10s before going offroad after panda disconnect

* Add cloudlog

* Typo

* 5 s
2020-04-20 14:15:01 -07:00
ZwX1616 133b1a20b4
RHD support for driver monitoring (#1299) 2020-04-15 16:48:44 -07:00
Willem Melching 017b1f6770
Don't use battery temperature to determine fan type (#1331)
* Don't use battery temperature to determine fan type

* Add cloudlog

* Init is_uno
2020-04-07 19:18:14 -07:00
Willem Melching b16e11cde5
Boardd should always send health, even with no panda (#1322)
* dont go offroad when health times out

* always send health packet

* Handle disconnect in thermal

* Handle unplug in power monitoring

* Small cleanup

* Remove copied code

* Add mutex

* Can just use infinite timeout. It will still return if not connected
2020-04-06 16:01:42 -07:00
Willem Melching b497a01417
add low pass filter on cpu temp (#1305) 2020-04-01 15:58:40 -07:00
eFini 106be23c4e
use put_nonblocking when possible (#1288)
* use put_nonblocking when possible

* revert uneeded changes
2020-03-31 12:09:38 -07:00
Andy 54f34abdb3
Replace usages of datetime.now() with datetime.utcnow() (#1267) 2020-03-26 19:49:58 -07:00
robbederks 905f6b1b77
Power monitoring fix (#1269)
* Release lock after exceptions

* No pulsed measurement on uno

* Fix last_measurement_time=None while integrating when going offroad

* Also clear next pulsed measurement time

* Move around locks

* Locks are good now?
2020-03-23 18:02:53 -07:00
Willem Melching 65ad31a7e4 Small thermald cleanup 2020-03-12 11:55:33 -07:00
robbederks 992be20d63
Offroad power monitoring (#1067)
* Untested implementation of offroad power monitoring

* Fixed some syntax errors

* Cast to int

* Fixed pylint

* Wrapped in class

* Put pulsed calc in own thread

* Longer timeout before starting pulse measurement

* Fudge factor + flake8

* Made integration thread-safe and catch charge disable exceptions

* Catch all calculation errors

* Fixed networkstrength removal
2020-03-10 22:18:48 -07:00