Justin Newberry
bfe990b112
System: cleanup paths to use a common class ( #29816 )
...
* use OP prefix for logmessage
* cleanup paths too
* cleanup the paths too
* add hw.py to release
* fix those issues
* fix unittests
* fix unittests
* fix unittests
* do swaglog_ipc properly across all the files
* fix that
* fix swaglog in c++
* review suggestions
2 years ago
Shane Smiskol
54e98fa888
C++ FirstOrderFilter: add initialized flag ( #29602 )
...
add initialized flag with default to not change behavior
2 years ago
Dean Lee
5480d32bb5
cpplint: add filter `whitespace/parens` ( #29565 )
2 years ago
Adeeb Shihadeh
e726505918
bump cereal ( #29561 )
2 years ago
Dean Lee
363740a497
cpplint: add `readability/braces` filter ( #29554 )
2 years ago
Kacper Rączy
d8bda6feb4
replay: increase file descriptor limit macOS ( #29346 )
...
* Increase file descriptor limit for replay on macos
* Reword comment
* Move set_file_descriptor_limit to common/util.cc
* Include resource.h header
2 years ago
Dean Lee
37c3854623
util: fix typo in comment ( #29392 )
...
fix typo in comment
2 years ago
Dean Lee
22bc06fdaa
common/util: move function `random_int` to util ( #29388 )
2 years ago
Kacper Rączy
b43a875ba2
params: specify path using PARAMS_ROOT ( #28257 )
...
* Add PARAMS_ROOT env var
* Change getenv type signature
* Use getenv default_val
2 years ago
Dean Lee
10a1b8b7b1
params: cleanup old params that aren't defined ( #28017 )
...
* delete files that are not defined in the keys
* assert after create file
* remove util::remove_files_in_dir
* cleanup
* fix up test
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Dean Lee
0d8254e959
common: add new class OpenPilotPrefix ( #26753 )
...
* new class OpenPilotPrefix
* move random_string to util
* rename file
* style
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2 years ago
Adeeb Shihadeh
8ba9a5107b
boardd: SPI support ( #26374 )
...
* spi handle
* put usb back
* handle eintr
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Dean Lee
8dbb25e683
params: remove all files if call clearAll with the ParamKeyType.ALL key. ( #26000 )
...
* remove all files in dir
* fix test case name
3 years ago
Adeeb Shihadeh
cb8885cffb
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
3 years ago
Gijs Koning
6ab7b2f325
swaglog: delay creating zmq socket to first use - fix modeld crash in sim ( #24271 )
...
* Initialize zmq socket later with initialize method
* empty lines
* Add lock and move initialize function
* Check for initialized
3 years ago
Robbe Derks
6366d1303f
Statlog in C ( #23596 )
...
* statlog in C
* fix swaglog and the test
* add missing files
* fix context initialization todo
* speed up test
3 years ago
Willem Melching
b75e410779
boardd: panda_state_thread run closer to 2 Hz ( #23529 )
...
* boardd: panda_state_thread run closer to 2Hz
* make explicit
3 years ago
Dean Lee
9decd3d8a2
util: move all functions into util namespace ( #23203 )
3 years ago
Willem Melching
fa0cbe5d40
Put journal and nvme stats in bootlog ( #22849 )
...
* Run commands and put output in bootlog
* log nvme
* fix indent
* cereal without event
* use regular array
4 years ago
Dean Lee
e29cc1c2ee
util.h: add unit conversion constants ( #22813 )
...
* Add unit conversion constants.
* move to common/util.h
4 years ago
Dean Lee
ff33ca3413
util: remove function to_hex ( #22792 )
4 years ago
Willem Melching
45c506bb17
wshadow: fix comma three build
4 years ago
Dean Lee
8da3cd3cdd
util:: remove unused funtion base_name ( #22759 )
4 years ago
Dean Lee
652c42da2c
util: add safe write functions ( #22160 )
...
* add safe write functions
* log error
* bzfile safe_fopen&safe_flush
* update test_case
* trigger ci
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Dean Lee
1f39d8cee6
util: add new function create_directories with unit tests ( #21871 )
...
* util::create_directories
* check bool ret
* don't assume mask
* rename with_umask to no_umask
* remove umask
* rebase master
* rebase master
* 0755
4 years ago
Adeeb Shihadeh
84de248fa7
tici: affine loggerd to efficiency cores ( #22581 )
4 years ago
Willem Melching
a93271a518
Ensure that first segment starts with all cameras on the same frameId ( #22096 )
...
* test that segment starts with the same frame id
* improve test
* add sync logic
* atomic max
* review comments
4 years ago
Dean Lee
31230e5b60
retry ioctls while errno == EINTR ( #22054 )
4 years ago
Willem Melching
dddab597bc
Less open file permissions ( #21922 )
...
* Less open file permissions
* add test back
* remove params test for permissions
* remove umask
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
5f1ec6339f
remove unused function starts_with ( #21979 )
4 years ago
Dean Lee
fefc70b4ca
hw.h: move Hardware-related paths to namespace Path ( #21826 )
...
* refactor getenv and path
* apply review
4 years ago
Dean Lee
073b96e5d1
qt/util: new function getDongleId ( #21810 )
...
* new function getDongleId
* return std::optional
4 years ago
Dean Lee
11ffbc6936
util/read_files_in_dir: return map by value ( #21815 )
4 years ago
Willem Melching
9ea913bcc8
nav: various cleanup ( #21521 )
...
* nav: various cleanup
* eta resize instant
* show
4 years ago
Willem Melching
e85fa7f1c9
UI: check if dongle id is valid before calling API ( #21275 )
4 years ago
Dean Lee
ee46672d3c
Passing arguments by reference ( #21205 )
4 years ago
Dean Lee
65e0b1e699
Cleanup util.h ( #20849 )
...
* cleanup util.h
* fix build error:omx_encoder.cc:408: undefined reference to do_exit
* fix build error
* rebase master
* move helper functions back to util
* ExitHandleHelper->ExitHandlerHelper
* std::clamp
* struct ExitHandlerHelper to class
* rebase master
* cleanup
* restore ExitHandler
* prefer cassert
4 years ago
Willem Melching
6e22f16ddb
loggerd: put signal in end of route sentinel ( #21025 )
4 years ago
Willem Melching
ea5141d909
Store almanac on ublox poweroff ( #20967 )
...
* Store almanac on ublox poweroff
* send current UTC time
* move message building to ublox_msg.h
4 years ago
Willem Melching
4742f55749
store all files in /sys/fs/pstore in bootlog ( #20875 )
...
* store all files in /sys/fs/pstore in bootlog
* whitespace
* fix bootlog test
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
Dean Lee
fe2f63849a
util.cc: reduce two read_file functions into one ( #20655 )
...
* no need to malloc one extra byte
* combine two read_file into a faster one
* cleanup #include
* use resize
* apply suggestions from review
* space
* rebase master
4 years ago
Dean Lee
eb4666b38f
util.h: remove unused macro ALIGN ( #20673 )
4 years ago
Dean Lee
cf80675369
Use std::size for element counts ( #20654 )
4 years ago
Dean Lee
6db31b9a33
Added new util class FirstOrderFilter ( #20303 )
...
* new class FirstOrderFilter
* flick face icon
* revert ui_draw_vision_face
* new function reset()
* reset after update
* use filter to update brightness
4 years ago
Adeeb Shihadeh
f1da1f9cb2
Qt UI: scale volume with speed ( #20441 )
...
* Qt UI: scale volume with speed
* for all hw
* way too loud for tici
* set volume
* volume
* swap
4 years ago
Willem Melching
a94ba4fb8b
Add watchdog check to manager ( #20277 )
...
* this should work but doesnt
* Only offroad
* works
* make it work offorad
* reduce diff
* cleanup
* need util
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
d3dfb47d0e
loggerd: clean exit on SIGPWR ( #20100 )
...
* loggerd: clean exit on SIGPRW
* no SIGPWR on macos
4 years ago
Dean Lee
316f475544
util.h: re-indent function string_format and use const std::string & for read_file ( #19931 )
4 years ago
Dean Lee
c688461e11
util.h: use const reference for std::string parameter ( #19885 )
4 years ago