* Safe and efficient asynchronous writing parameters
* call putNonBlocking in locationd
* remove space
* ->AsyncWriter
* remove semicolon
* use member function
* asyc write multiple times
* add test case for AsyncWriter
* merge master
* add missing include
* public
* cleanup
* create once
* cleanup
* update that
* explicit waiting
* improve test case
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0d797f4e8b
* 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.
old-commit-hash: 30165134e8
* 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
old-commit-hash: 28cb1897cb
* device side of statsd
* need to start it
* enable in manager
* add sleep
* cleanup
* remove aggregates for now and standardize on industry terms
* manager needs main
* need to have a try/except
* atomic_write_on_fs_tmp does not work
* cleaner
* use dump
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* one file at a time
* limit amount of files
* move to influx line protocol and cleanup
* needs to be a list
* fix timezone bug
* actually rate limit
* add to release
* normalized origin
* also log deviceType
* more stats
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1b49ce6ec4
* mypy passes
* a few more
* a few in manager
* more types, will lint
* more
* simple types
* events type
* Update selfdrive/thermald/thermald.py
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dc96d4bee7
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
old-commit-hash: ae094042ad
* also shutdown on tici
* force powerdown
* bump panda
* abstract out shutdown and thermal config
* add comment on tici shutdown
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ad1c793d1
* 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>
old-commit-hash: 7555379b2b
* 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
* 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
* 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