* 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
* always c++
* Create C++ params class
* get works
* tests hang now
* passes tests
* cleanup string formatting
* handle interrupt in blocking read
* fix memory leak
* remove unused constructor
* Use delete_db_value directly
* Rename put -> write_db_value
* filename cleanup
* no semicolons in cython
* Update common/SConscript
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add std::string version of delete_db_value
* This is handled
* cleanup encoding
* Add clear method to clear all
* add persistent params
* fix android build
* Should be called clear_all
* only import params when needed
* set params path on manager import
* recusrively create directories
* Fix function order
* cleanup mkdirp
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e182e5c57
* refactor vision
* don't show slow frame message when in preview mode
* change draws to uint32_t
* set vision_seen=false after destroy
* remove vision_connect_thread
* refactor ui_update
* seelp 30ms when vision is not connected
* remove should_swap
* call ui_update_sizes before ui_draw
* rebase
* start bigger UI refactor
* don't need the touch fd
* fix qt build
* more cleanup
* more responsive
* more refactor
* fix for pc
* poll for frames
* lower CPU usage
* cleanup
* no more zmq
* undo that
* cleanup speed limit
* fix sidebar severity for athena status
* not aarch64
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 848301b091
* 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
* 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
old-commit-hash: 8e63f06540
* store athena connected-at time
* refactor
* deref
* dt import
* Athena status based on last ping time param
* upd test for pingtime
* lower error timeout
old-commit-hash: 41bb3ac7ca
* add LaneChangeEnabled param and settings toggle
* Read lane change toggle in pathplanner.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 45718d9294
* Only show update alert if updater failed
* no negetive days in warning message
* Also increase failed count when no internet
* Only set count to zero on actual update
* First run always fails because IsOffroad is not set yet
old-commit-hash: a5bd1d2a88
* use the openpilot/persist directory on PC
* manager runs on mac
* sim runs w/o carla
* fix params location in test
* that rmtree can fail and it's okay
* refactor params clear functionality
* set PARAMS_PATH
old-commit-hash: c42e2ecc50