Commit Graph

5 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: 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
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