Adeeb Shihadeh
cb8885cffb
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
3 years ago
Lukas Petersson
c28735358e
params: support OPENPILOT_PREFIX ( #24495 )
...
* prefix params
* set env
* prefix in manager
* filesystem except
* dont delete manager folder
* Update selfdrive/common/params.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* debug same path
* remove cleanup + same default
* dont use filesystem lib
* param symlink path
* path
* spelling
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Willem Melching
ed23177898
thermald: remove panda disconnect logic ( #23526 )
...
* thermald: remove panda disconnect logic
* keep that
3 years ago
Dean Lee
2773ff5ace
params: code cleanup ( #22744 )
...
* cleanup params
* apply review
* continue
* use c_str
* cleanup filelock
* don't check return code of close()
* remove call_once
* cleanup params_pyx
* cleanup comment
4 years ago
dlsp
c6b210da02
params: include `optional` header ( #22553 )
4 years ago
Adeeb Shihadeh
d5475ba946
nav: add button to clear current route ( #22167 )
...
* nav: add button to clear current route
* fix scroll
* retab
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Dean Lee
383ff35790
Params: faster atomic clearAll ( #21973 )
...
* faster clearAll
* use unlink
* fsync_dir if removed > 0
* remove macro ERR_NO_VALUE
* always fsync
* keep call to unlink
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Dean Lee
4bbbbe5175
Params: set ParamKeyType: ALL to 0xFFFFFFFF ( #21978 )
4 years ago
Dean Lee
3b752a307f
params: remove persistent params ( #21975 )
...
* cleanup constructors
* remove persistent_param
* remove test_persist_params_put_and_get
4 years ago
George Hotz
8354cfc53c
loggerd: implement DONT_LOG flag ( #21832 )
...
* implement DONT_LOG flag
* better typing
4 years ago
Dean Lee
11ffbc6936
util/read_files_in_dir: return map by value ( #21815 )
4 years ago
Dean Lee
c53cb5d570
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
4 years ago
ShaneSmiskol
36beaf0d68
Add CLEAR_ON_IGNITION_OFF param type ( #21121 )
4 years ago
Willem Melching
e66bbec52b
Update UI fixes/improvements ( #21089 )
...
* Show latest update time
* utc
* make work more than once
* cleanup
* whitespace
* only while offroad
4 years ago
Dean Lee
7222d0f20d
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
b4447993c1
add CLEAR_ON_IGNITION param type ( #20810 )
4 years ago
Dean Lee
27d3f820bf
Params: move keys from cython to cc ( #20814 )
...
* move keys from cython to cc
* consistency
* passes tests
* more consistency
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
ae094042ad
add putBool/getBool wrappers to cython params class ( #20611 )
...
* add putBool/getBool wrappers to cython class
* use new API
* some more puts
* fix mockparams arguments
* add get_bool to MockParams
* typo
4 years ago
Dean Lee
98e55996f6
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
4 years ago
Adeeb Shihadeh
94991d9319
remove unused params function
5 years ago
Adeeb Shihadeh
20a6ca83c9
fix params permissions for offroad ( #2356 )
...
* fix params permissions
* don't need that one
5 years ago
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>
5 years ago
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
5 years ago
Dean Lee
90d97de74d
add function read_db_bytes ( #1662 )
5 years ago
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
5 years ago
George Hotz
368a956b96
selfdrive/common
5 years ago