Adeeb Shihadeh
652ef27a72
loggerd: less error logging
3 years ago
Dean Lee
4aa291c406
Use std::unique_ptr to manage memory ( #23168 )
...
* use unique_ptr
* trigger ci
* move down loggerdstate
3 years ago
Dean Lee
9decd3d8a2
util: move all functions into util namespace ( #23203 )
3 years ago
Adeeb Shihadeh
5f36b48199
loggerd: fix delayed exit from main thread
3 years ago
Adeeb Shihadeh
f71a03f967
increase loggerd per-cycle service limit to 200
3 years ago
Adeeb Shihadeh
baf1a77ca2
loggerd: don't let a single service clog up the main thread
3 years ago
Willem Melching
a2f32fd3e1
Clear loggerd locks once on boot ( #23060 )
...
* add test for clear_locks
* move to bootlog
* simplify test
3 years ago
Dean Lee
1d323e0fd6
loggerd: add test case for trigger_rotate ( #23038 )
...
* test rotate
* remove global LoggerdState
3 years ago
Dean Lee
75dd0d6296
loggerd: split loggerd.cc into three files
3 years ago
Adeeb Shihadeh
ea761cbbd5
loggerd: trigger rotate on frame id instead of frame count ( #22848 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Mayfield
5246f0231e
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Dean Lee
18caf3535b
loggerd: fix concurrency issues in sync encoders ( #22590 )
...
* sync_encoders
* add variable camera_synced
* cleanup
4 years ago
Adeeb Shihadeh
5b331fd6f5
don't set core affinity on PC ( #22706 )
4 years ago
Willem Melching
89f311714c
loggerd: set encodeIdx.valid if frame id is correct ( #22634 )
...
* loggerd: set encodeIdx.valid if frame id is correct
* check valid flag in test
* test cleanup
* bump cereal
4 years ago
Adeeb Shihadeh
76bd932cf5
loggerd: always run encoders ( #22649 )
...
* loggerd: always run encoders
* fix raw logger
* bump loggerd cpu usage
4 years ago
Adeeb Shihadeh
84de248fa7
tici: affine loggerd to efficiency cores ( #22581 )
4 years ago
Willem Melching
377fe84948
remove loggerd todo about encodeIdx decimation
4 years ago
Willem Melching
48035e9535
Disable encoder sync logic if only one rotate camera present ( #22107 )
...
* disable sync logic if only one rotate camera
* consistent brackets
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
d9baaf7eb9
loggerd: create encoder threads from cameras_logged ( #21875 )
4 years ago
Adeeb Shihadeh
54a4eeb0fc
Revert "tici: give loggerd rt priority ( #21503 )"
...
This reverts commit 7e2752c878
.
4 years ago
Adeeb Shihadeh
7e2752c878
tici: give loggerd rt priority ( #21503 )
...
* give loggerd rt priority
* assert
* little more
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
a39873872d
refactor loggerd: trigger rotate in encoder thread ( #21860 )
...
* trigger rotate in eoncode thread
* rotate in time
* lgtm
* dcam trigger rotate on C3
* check trigger rotate field
* Use >=
* add rotator thread
* set cnt to 0
* test encodeIdx is increasing across segments
* test both segmentId and encodeId
* fix encodeIdx
* no thread needed
* add log for failed to encode
* stricter C3 test, dont check start encodeId on C2 dcam
* only update last_camera_seen_tms when considered for rotate
Co-authored-by: deanlee <deanlee3@gmail.com>
4 years ago
Willem Melching
dd128f5916
loggerd: power failure print sync done
4 years ago
Adeeb Shihadeh
4a1aec27ef
segment regen ( #21148 )
...
* start seg regen
* send vipc
* fix up some paths
* set fp
* fix no entries
* engages
* seperate camera procs
* send real frames
* regen test routes
* nice argparser
* fix valgrind test
* move that
* fix that
4 years ago
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
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
Willem Melching
6e22f16ddb
loggerd: put signal in end of route sentinel ( #21025 )
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
Willem Melching
ab319d4f54
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
4 years ago
Willem Melching
3a95d3ccaa
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 757d2923d2
.
4 years ago
Dean Lee
757d2923d2
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
4 years ago
Adeeb Shihadeh
ec414e2eb1
set nice values for non RT processes ( #20812 )
...
* set nice values for non RT processes
* builds
* fix qcom build
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
8a280fbb8e
bump cereal
4 years ago
Adeeb Shihadeh
9813c0ddbd
log encodeIdx packets in qlog ( #20738 )
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
Willem Melching
0a88304e8d
use class AlignedBuffer ( #20388 )
...
* use class AlignedBuffer from cereal (#20343 )
* AlignedBuffer
* move AlignedBuffer to cereal/messaging.hpp
* rename function aligned to get
* use overloaded function AlignedBuffer:: get(Message *)
* use AlignedBuffer
Co-authored-by: Dean Lee <deanlee3@gmail.com>
4 years ago
Willem Melching
e3ad952902
Revert "use class AlignedBuffer from cereal ( #20343 )"
...
This reverts commit 7aa379e123
.
4 years ago
Dean Lee
7aa379e123
use class AlignedBuffer from cereal ( #20343 )
...
* AlignedBuffer
* move AlignedBuffer to cereal/messaging.hpp
* rename function aligned to get
* use overloaded function AlignedBuffer:: get(Message *)
4 years ago
ZwX1616
e2044ca5a2
up tici hevc bitrate ( #20093 )
...
* 2x tici bitrate
* update test
* clean up
4 years ago
Willem Melching
d3dfb47d0e
loggerd: clean exit on SIGPWR ( #20100 )
...
* loggerd: clean exit on SIGPRW
* no SIGPWR on macos
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Greg Hogan
1cd9105e96
adjust qcamera quality ( #20066 )
...
* better ts
* fix test
4 years ago
Dean Lee
1fad5216ea
loggerd: remove the segment variable from encoders ( #20034 )
4 years ago
Dean Lee
16e259cadf
loggerd: small cleanup ( #19864 )
4 years ago
Dean Lee
e6783f4d9f
remove cqueue, use class SafeQueue ( #19774 )
...
* class SafeQueue
* cleanup includes
* space
* add timeout
use try_poll
* add function empty() & size()
* class SafeQueue
* add timeout
use try_poll
* add function empty() & size()
* rebase master
* rebase master
* for loop
* fix bug
4 years ago
Dean Lee
79e05965c4
bootlog: fix dangling pointer problem in logger_build_boot ( #19942 )
...
* fix dangling pointer problem
* logger_build_init_data() has same problem
* return kj::Array<capnp::byte>
* Revert "return kj::Array<capnp::byte>"
This reverts commit 4df4685bfc
.
* Empty commit,trigger Build
* fix each segment in a route having a different initial logMonoTime
4 years ago
Adeeb Shihadeh
1ed77847fe
loggerd: remove vipc arg from encode frame
4 years ago
Adeeb Shihadeh
d4489fbf91
OMX encoder stability ( #19758 )
...
* cleanup test first
* wait for other encoder threads
* fixes initial crash
* no print
* unused
* fix up tests
* need that
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
2e64049ea4
fix loggerd after bootlog split ( #19840 )
...
* fix loggerd after bootlog split
* logger handles that
* unused
Co-authored-by: Comma Device <device@comma.ai>
4 years ago