Commit Graph

17 Commits

Author SHA1 Message Date
Adeeb Shihadeh
94991d9319 remove unused params function 2020-10-22 17:05:52 -07:00
Willem Melching
c0d92516cc store params in ~/.comma on PC (#2369) 2020-10-20 13:18:21 +02:00
Willem Melching
d28f488ea5 fix typo in params path on PC 2020-10-19 14:25:45 +02:00
Comma Device
e4d2174a4e need that one too 2020-10-17 17:44:10 -07:00
Adeeb Shihadeh
20a6ca83c9 fix params permissions for offroad (#2356)
* fix params permissions

* don't need that one
2020-10-17 17:07:40 -07:00
Adeeb Shihadeh
96b637737b fix build warnings (#2355)
* fix build warnings

* cython fixes

* cleanup transformations build

* little more
2020-10-17 12:40:01 -07:00
Willem Melching
3dd9448981 Params path only in one place (#2344)
* fix params paths

* Qcom & qcom2

* This env variable is not used anywhere

* params path in only one place

* fix other PARAMS_PATH references

* absolute path is probably better
2020-10-15 13:15:22 +02:00
Adeeb Shihadeh
707a670f42 fix params on PC and when reading path from env (#2340)
* fix params when reading path from env

* fix pc
2020-10-14 13:45:24 -07:00
Adeeb Shihadeh
6f307ea4c5 fix params permissions after refactor 2020-10-13 19:14:51 -07:00
Willem Melching
2e182e5c57 Params refactor, simplified (#2300)
* 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>
2020-10-13 16:23:23 +02:00
Dean Lee
9983389ffe close lock_fd if flock failed (#2231) 2020-09-28 11:47:38 +02:00
Dean Lee
4fba3408c4 Params: use a multiple-reader / single-writer flock to improve concurrency (#2207)
* improve concurrency: multiple readers, single writer locks

* remove lock in read_db_value
2020-09-24 11:51:36 +02:00
Adeeb Shihadeh
349040d958 driver monitoring cleanup (#2101)
* read rhd from param

* don't need that anymore

* fix build

* bump cereal

* read param from camerad too

* add read_db_bool helper

* bump model replay ref commit, IsRHD wasn't set
2020-08-29 17:16:00 -07:00
Dean Lee
90d97de74d add function read_db_bytes (#1662) 2020-06-09 13:46:49 -07:00
robbederks
71bebc4fca Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
2020-05-08 19:39:18 -07:00
Andy Haden
538ca733c7 Remove legacy AccessToken param 2020-03-23 00:22:41 -07:00
George Hotz
368a956b96 selfdrive/common 2020-01-17 11:01:02 -08:00