Adeeb Shihadeh
f68f0403a6
bootlog: setup cloudlog on keywords ( #20898 )
...
* bootlog: setup cloudlog on keywords
* just log
old-commit-hash: 2bc9b97aba9224c2337110422d17be0e50009f0d
2021-05-13 23:02:08 -07:00
Willem Melching
8b785f4744
store all files in /sys/fs/pstore in bootlog ( #20875 )
...
* store all files in /sys/fs/pstore in bootlog
* whitespace
* fix bootlog test
old-commit-hash: 4742f55749e59f565192589b318841f2133260ed
2021-05-12 11:15:54 +02:00
Dean Lee
e333e4f189
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 >
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Willem Melching
78bf4f5867
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 >
old-commit-hash: ab319d4f54a53e1a0aa1c2c0d94d56a9acef8362
2021-05-06 14:39:05 +02:00
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaae7168073410cd7d392a9564d9d45ba
2021-05-06 12:29:30 +02:00
Dean Lee
e0282ced49
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
old-commit-hash: 757d2923d2bfcda620b252e21a348ac3f87f3a63
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh
55a9ec8a93
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 >
old-commit-hash: ec414e2eb1e27eac04582ffbdc88f8022bfb34cc
2021-05-04 22:00:11 -07:00
Dean Lee
b12a444bdd
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 >
old-commit-hash: 27d3f820bf4d34bbc799cfc7ce5f9e006f0fe774
2021-05-04 10:49:26 -07:00
Adeeb Shihadeh
532d19427c
bump cereal
...
old-commit-hash: 8a280fbb8eb433fbfe0fc43254c9cbdaceedbab6
2021-05-03 20:47:11 -07:00
Adeeb Shihadeh
467811edf1
log encodeIdx packets in qlog ( #20738 )
...
old-commit-hash: 9813c0ddbdbd00716710a24c7edbdd509b66d9b7
2021-04-23 16:14:45 -07:00
Adeeb Shihadeh
3e4eb2e343
handle unregistered devices ( #20728 )
...
* handle unregistered devices
* cleanup
* no uploader or athena
* clean up
old-commit-hash: 1786d042396bcc079be5de33ed900f48effcec17
2021-04-22 21:03:57 -07:00
Adeeb Shihadeh
7955ba0a5f
enable --as-needed linking ( #20619 )
...
* only link as needed
* a few more
* need to fix order
* everywhre
* fix mac
* update spinner + text
* fix c2 build
* another fix
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 36d8c89ebf5fee583b89e48a5d2d5e1d178b5ee5
2021-04-08 11:17:07 -07:00
Willem Melching
badae8669a
More encoder test cleanup ( #20623 )
...
* more encode test cleanup
* fix check at end of function
old-commit-hash: c4e2d374c9c15988e92ca00f40863cd4713db9c2
2021-04-08 17:48:57 +02:00
Willem Melching
9f84ff75cc
check encodeIdx in loggerd test ( #20621 )
...
old-commit-hash: ec5465ffd5c87b08b9b86d094bbee13e5c979993
2021-04-08 16:50:48 +02:00
Willem Melching
8f4a445171
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
old-commit-hash: ae094042ade44815fdba50196c15ba552bbf33d7
2021-04-07 15:36:37 +02:00
Adeeb Shihadeh
893946ae0c
increase log level of NVME cloudlog
...
old-commit-hash: 538df2596dd365382f5ecf41ffa17f31216cd02f
2021-04-02 21:43:58 -07:00
Dean Lee
405df8b165
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
2021-03-30 12:54:59 +02:00
Greg Hogan
f0b9176bd7
logging cleanup ( #20502 )
...
* switch some uploader messages to debug log
* use allow_sleep
* log when not request or response
* test both with params and without params
old-commit-hash: 1e3f8b014ef63f5e3d0a3f7622a03892dd8958b2
2021-03-26 17:36:01 -07:00
Adeeb Shihadeh
ed23f0778a
log when nvme isn't mounted ( #20428 )
...
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 33500bf23fcda9c4404f1c09177f7e971d65fc56
2021-03-21 23:12:09 -07:00
Willem Melching
c64d818341
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 >
old-commit-hash: 0a88304e8d51ef8dac881ac9bb16d5de11f184a3
2021-03-17 14:43:23 +01:00
Willem Melching
d61654abc3
Revert "use class AlignedBuffer from cereal ( #20343 )"
...
This reverts commit df9e836779af0c145efc933b88bbc94f59f2b378.
old-commit-hash: e3ad952902ed38530b56b10f39dc67d7232fd28c
2021-03-16 20:21:03 +01:00
Dean Lee
4c02da3f0a
use class AlignedBuffer from cereal ( #20343 )
...
* AlignedBuffer
* move AlignedBuffer to cereal/messaging.hpp
* rename function aligned to get
* use overloaded function AlignedBuffer:: get(Message *)
old-commit-hash: 7aa379e123aba70a4c36f95e69786a558892dc2d
2021-03-16 11:13:15 +01:00
Dean Lee
21346b0980
fix Fix problematic realloc ( #19812 )
...
old-commit-hash: e7360292351d11db4fd5c08a22624286957c68b9
2021-03-12 19:57:07 -08:00
Dean Lee
d7e1874549
raw_logger: remove unneeded recursive_mutex ( #20274 )
...
* remove lock
* remove forword declared err
* cleanup include
old-commit-hash: 51d46e289a7cc7afa2f893060acb568ccb2b116a
2021-03-07 21:36:37 -08:00
Willem Melching
c0098cec09
Manager cleanup ( #20231 )
...
* move manager in folder
* inital refactor
* call start
* small cleanup
* add comments
* use self.signal()
* order shouldnt matter
* newlines
* add helpers
* newlines
* add process config
* split out build part of manager
* this should fix most tests
* no sensord on pc
* dont start athena
* remove comment
* fix old athena test
* fix inject model
* fix test car models
* should be not none
* fix helpers exitcode
* ignore manage_athenad
* Use time.monotonic()
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
* combine init, remove spinner
* move manager test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 5a3b51130649356b14b24e3c82e014b3a0be95a8
2021-03-05 11:03:23 +01:00
Willem Melching
e5d066bc14
write params in initData as Data
...
old-commit-hash: 511cb2680fa0ae80804f8ef824c9a17c9bcbff89
2021-02-26 14:45:41 +01:00
Willem Melching
c1606b60fd
test loggerd: limit samples to number of services
...
old-commit-hash: 6e26403cee2d2d46b5eda922413db856fc6e8219
2021-02-23 16:45:08 +01:00
ZwX1616
46840807fa
up tici hevc bitrate ( #20093 )
...
* 2x tici bitrate
* update test
* clean up
old-commit-hash: e2044ca5a2fab66de9b341a5eea2a6c994a45572
2021-02-22 09:15:56 -08:00
Willem Melching
a98a06c1f8
loggerd: clean exit on SIGPWR ( #20100 )
...
* loggerd: clean exit on SIGPRW
* no SIGPWR on macos
old-commit-hash: d3dfb47d0e8fef18171a393005da76c98e941419
2021-02-18 17:46:46 +01:00
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.
* 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
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Greg Hogan
d59a13e22a
adjust qcamera quality ( #20066 )
...
* better ts
* fix test
old-commit-hash: 1cd9105e96c37ef5365aa34aa52c7ede6afd0567
2021-02-11 17:55:00 -08:00
Dean Lee
6e63be3a01
loggerd: remove the segment variable from encoders ( #20034 )
...
old-commit-hash: 1fad5216eac27271387726a072827c134c68d98f
2021-02-07 17:48:46 -08:00
Dean Lee
60aa7b9d96
Logger: added function logger_get_route_name ( #19995 )
...
* added function logger_get_route_name
* remove empty line
old-commit-hash: 1588a6f0acc3a0f80e0ccaa9f621004d90375fea
2021-02-02 12:09:27 +01:00
Dean Lee
bc3b705a5b
mv logger_build_boot to bootlog.cc ( #19996 )
...
old-commit-hash: 678c149246f5bd6cab2acabe59351eabd19471fc
2021-02-02 12:07:52 +01:00
Dean Lee
ab24d18c43
OmxEncoder: use c++ mutex&condition_variable ( #19786 )
...
* use c++ mutex&condition_variable
* rebase
* cleanup includes&use while
* remove include pthread.h
old-commit-hash: aa37e95341b0df8dcd378f6ca082014828edbbbf
2021-02-01 21:57:17 -08:00
Dean Lee
926c3d6fd7
Logger: new class BZFile ( #19959 )
...
* add class BZFile
* inline
* cleanup includes
* stack bzfile
* log first error
* remove assert
* rename log_err to err_logged
* assert in destructor
* LOGE
* don't assert statement
* assert error of fclose
old-commit-hash: ef6d1aeaaaa6c5df63d44033852e1eb683130414
2021-02-01 21:00:42 -08:00
Dean Lee
06ac698691
OMXEncoder: remove pthread_mutex_t lock from member variables ( #19948 )
...
* remove mutex
* rebase master
old-commit-hash: 9a9641a296dcc0887d902412214510f0ff912fa2
2021-01-30 19:11:03 -08:00
Dean Lee
33495e4368
loggerd: small cleanup ( #19864 )
...
old-commit-hash: 16e259cadf7da85f8faf072edd2b37dc1fc4f03c
2021-01-30 18:37:58 -08:00
Adeeb Shihadeh
78b20a077f
Revert "OmxEncoder: new function set_state, set and wait state changed ( #19906 )"
...
This reverts commit fbc80f3131acd05e6473daa1682f017874b6f883.
old-commit-hash: 20a2bfdd31b32594e905edc62a7508b8e6ff017c
2021-01-28 11:57:29 -08:00
Dean Lee
d7adc6ed49
OmxEncoder: new function set_state, set and wait state changed ( #19906 )
...
* free buffers after state is loaded
* set_data_blocking
* fix indentation
* Empty commit,trigger Build
old-commit-hash: 36a596eb1e5752883ef408fcf5d7e2b2cd9ef6b7
2021-01-28 11:45:44 -08:00
Willem Melching
1296525567
fix safequeue import
...
old-commit-hash: 5693773ae14b23695294cbfc7e1678a7a6c70385
2021-01-28 15:25:24 +01:00
Dean Lee
da9b0e8baa
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
old-commit-hash: e6783f4d9f10a256a4c301eb1d1843d9e2a17ab6
2021-01-28 15:12:45 +01:00
Dean Lee
b0552a1985
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 4df4685bfcaba0c5400e2690440a74c32ff75afa.
* Empty commit,trigger Build
* fix each segment in a route having a different initial logMonoTime
old-commit-hash: 79e05965c403289dbe75622ac5a9970218163959
2021-01-28 13:34:07 +01:00
Adeeb Shihadeh
efb14fc172
Revert "OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )"
...
This reverts commit 2b789323981058401a6c908ec674901ed2662f08.
old-commit-hash: ea74f558f4fc75bf64ae48a6989f440fe4ae2e23
2021-01-27 20:17:35 -08:00
Adeeb Shihadeh
bfa5674d4f
fix up encoder test for tici rotation ( #19941 )
...
* fix encoder test
* revert for c2
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 0411015103d593fe5aac408e70d558c890815842
2021-01-27 14:20:48 -08:00
Dean Lee
6bd65f558e
OMXEncoder: add calls to OMX_Init()&OMX_Deinit() ( #19905 )
...
* add calls to OMX_Init()&OMX_Deinit()
* fix indentation
old-commit-hash: 8f008130898b0b880a62038ba2a9cb17a4f79cc9
2021-01-27 13:37:42 -08:00
Willem Melching
4fd576e7f7
Put bootlog in own folder ( #19939 )
...
* put bootlog in own folder
* fix uploader
* remove print statements
* update test
* remove comment
* also write initddata
* remove sentinels from test
old-commit-hash: 87119aebe2e7051df49f6f2be9c29d2af4737656
2021-01-27 13:36:40 -08:00
Adeeb Shihadeh
46877afa24
make loggerd rotation test more reliable
...
old-commit-hash: 9f2088e2c3ec261e58ccdb44a938455c8596461a
2021-01-24 19:38:20 -08:00
Adeeb Shihadeh
edd881fa16
more tici tests in jenkins ( #19908 )
...
* run loggerd tests on tici
* boardd loopback
* fix up seg length
* this doesn't add more coverage
old-commit-hash: 810ed30cab46baa737abcc8986ba7b2c69cad355
2021-01-24 17:54:03 -08:00
Adeeb Shihadeh
a65cef0b31
loggerd: remove vipc arg from encode frame
...
old-commit-hash: 1ed77847fe3f53b14595bab8f1f47134fee03c9b
2021-01-23 17:11:36 -08:00