Commit Graph

21 Commits

Author SHA1 Message Date
Adeeb Shihadeh 28181e86bf Use a monotonic clock source for power monitoring (#1861)
old-commit-hash: 897ee6bd2b11f313455fd00baff7eee5d45afac5
2020-07-12 01:46:02 -07:00
Willem Melching 6242e8351f Lower max CPU temp to go onroad to 70 C
old-commit-hash: 10bfbaff8ebf0c14cbf7109911dc5ea2af6b3619
2020-07-06 13:37:09 +02:00
robbederks 4b2775add9 Dos (#1795)
old-commit-hash: df86c476c76f53d385d3c8df63d27588dde3dccd
2020-06-29 12:47:48 +02:00
Willem Melching f3b4091dfd lower temperatures slightly until UI/modeld GPU interaction is improved
old-commit-hash: 3c5c8c250887d013598f18d33c8e82e8dbeb84e7
2020-06-23 19:02:42 -07:00
Willem Melching 4d4c3f021b Cool down device before going onroad if CPU temp over 75 C (#1688)
* Block going onroad when temperatures are too high

* add relay check
old-commit-hash: 955d2aefdd6dd0c4de4820175a18f67c81be6783
2020-06-12 15:03:32 -07:00
Willem Melching f7308cca9e Increase temperature range
old-commit-hash: c82fda995b2b79e9956e42fe641cfe31d4b3932d
2020-06-10 17:20:39 -07:00
Adeeb 9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a0c9fb698c8248a5c28c66c2987ae65
2020-06-03 16:13:34 -07:00
Willem Melching a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Adeeb 5e857427ba 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
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
William 798e1a8908 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
old-commit-hash: aef01f4bdfc03929a7ad046e867ef975f81b7b59
2020-05-08 18:08:11 -07:00
Willem Melching a4e1d28f7a Wait 5s before going offroad after panda disconnect (#1406)
* wait 10s before going offroad after panda disconnect

* Add cloudlog

* Typo

* 5 s
old-commit-hash: 2ea494ed52c876146c3973e55adb54bf3eb04a66
2020-04-20 14:15:01 -07:00
robbederks a072639865 Added value-error for negative integration (#1390)
old-commit-hash: 15f57c4c22bb8e1f091344891e5b7d88443683d1
2020-04-17 14:05:43 -07:00
ZwX1616 f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
2020-04-15 16:48:44 -07:00
Willem Melching 907a97f1ee Don't use battery temperature to determine fan type (#1331)
* Don't use battery temperature to determine fan type

* Add cloudlog

* Init is_uno
old-commit-hash: 017b1f677050b1b9c29ce8173b80cd9a89901e40
2020-04-07 19:18:14 -07:00
Willem Melching bea4addcc2 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
old-commit-hash: b16e11cde5eccf3f3d028cf8ea2190726944a895
2020-04-06 16:01:42 -07:00
Willem Melching 3e9de54726 add low pass filter on cpu temp (#1305)
old-commit-hash: b497a014176def38cc2ccafa55bea9cdefa5983b
2020-04-01 15:58:40 -07:00
eFini 7d25d238a3 use put_nonblocking when possible (#1288)
* use put_nonblocking when possible

* revert uneeded changes
old-commit-hash: 106be23c4e20f30dbedd3a2cddaec78584d726c5
2020-03-31 12:09:38 -07:00
Andy a1c67df499 Replace usages of datetime.now() with datetime.utcnow() (#1267)
old-commit-hash: 54f34abdb36cbf7a43b3de1ba8765a972413179d
2020-03-26 19:49:58 -07:00
robbederks 4b7588e9ab 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?
old-commit-hash: 905f6b1b777d2032fc9ea510da02f3183e145cbe
2020-03-23 18:02:53 -07:00
Willem Melching 6c6df5486a Small thermald cleanup
old-commit-hash: 65ad31a7e45e79d2147dac6d711be68961f1889b
2020-03-12 11:55:33 -07:00
robbederks b0855ab17c 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
old-commit-hash: 992be20d633fbd75ead240a5aeeb86451d42c3c2
2020-03-10 22:18:48 -07:00