Commit Graph

8 Commits

Author SHA1 Message Date
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: 017b1f6770
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: b16e11cde5
2020-04-06 16:01:42 -07:00
Willem Melching
3e9de54726 add low pass filter on cpu temp (#1305)
old-commit-hash: b497a01417
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: 106be23c4e
2020-03-31 12:09:38 -07:00
Andy
a1c67df499 Replace usages of datetime.now() with datetime.utcnow() (#1267)
old-commit-hash: 54f34abdb3
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: 905f6b1b77
2020-03-23 18:02:53 -07:00
Willem Melching
6c6df5486a Small thermald cleanup
old-commit-hash: 65ad31a7e4
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: 992be20d63
2020-03-10 22:18:48 -07:00