Dean Lee
9af3c25166
fix resource leak when rotating encoder ( #2141 )
...
old-commit-hash: 209e7aa471
5 years ago
grekiki
079f409e58
Uploader speedup ( #2214 )
...
* use caching for getxattr
* fix some git issues
* Scheduled network checks
* attempt optimization
* Delete speed_test.py
* Style fixes
* Fix styling
* fix spaces
* fix spaces
* fix naming
* Update uploader.py
* Update mark_all_uploaded.py
* Add file to release
* Update selfdrive/loggerd/tools/mark_all_uploaded.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cf46de13d2
5 years ago
Dean Lee
a7c8adcdbe
read bool param with read_db_bool ( #2205 )
...
* read bool param with read_db_bool
* Update selfdrive/loggerd/loggerd.cc
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 0e5a5efffc
5 years ago
Dean Lee
ef811e1105
use MessageBuilder::toBytes ( #2167 )
...
old-commit-hash: 272f60221c
5 years ago
Dean Lee
7cee5aae63
more messagebuilder ( #2162 )
...
* more messagebuilder
* little more
* revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9fa56b4eab
5 years ago
Adeeb Shihadeh
ac3422fc0f
message builder ( #2161 )
...
* use custom MessageBuilder from cereal
* use MesageBuilder.toBytes
* bump cereal
* unused
* another one
* fix ui msg
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 4d5733924a
5 years ago
ZwX1616
d2fa5662b9
Fix loggerd not rotating encoder if dcamera upload disabled ( #2133 )
...
* should only count after the check
* include no dcam
* no need to copy
* run with both param
* independent idx
* not break test if no device
* remove unused
* EON D is half
* needs test for qcamera too
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6a8cd6e054
5 years ago
Adeeb Shihadeh
ff00f6e4a4
lidar is a scam ( #2094 )
...
old-commit-hash: 45b4b6007a
5 years ago
Adeeb Shihadeh
6919e06a9c
small uploader cleanup
...
old-commit-hash: 82f40f6ff5
5 years ago
robbederks
7671d18467
Tici camerad ( #2048 )
...
* fix camera config
* typos
* oops
* more typo
* lambless
* forget to send
* visualize hist
* more typo
* 0xC000
* simple
* data loss prevention, clean up later
* loggerd
* back up code
* backup
* fixed memory leak
* fix vsync
* upload ecam
* WB
* 3stream
* fix OMX crash on loggerd rotation
* rewritten debayer kernel
* update viewer
* improved AE
* no artifact lines/grids
* standard trigger
* cleanups
* CCM
* cleanups
* slight tweak
* upd push sock
* build all these
* update tele fl
* update cereal
* upd viewer
* DualCameraState -> MultiCameraState
* cameras_open
* disable frame zmq push by default
* more cleanup
* no apks
* fix submodule error
* wat
* clean up trash
* remove junk
* only build on qcom2
* no need to check these
* update cereal
* some more minor cleanup
* bump panda
* add todo
* minor typo
* Revert "minor typo"
This reverts commit 9233a1df7c
.
* not care
* use consistent hdr
* some cleanup
* Update selfdrive/camerad/main.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* more cleanups
* remove irrelevant stuff
* this too
* cleanup
* rerun ci
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 37d6472bfa
5 years ago
ZwX1616
06439bef18
Fix OMX error on loggerd rotation when using multiple cameras ( #1953 )
...
* cherry pick from f8745d3002
* update cereal
* missed this line
* add enum
* Update selfdrive/loggerd/loggerd.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/loggerd/loggerd.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* use same logroot
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3014280d1a
5 years ago
Adeeb Shihadeh
4f4751ec35
missing two f's, loggerd should really work on pc
...
old-commit-hash: 7bee1dbdbf
5 years ago
Adeeb Shihadeh
12e718f670
add frame count check to loggerd rotation test
...
old-commit-hash: ff5d98f85f
5 years ago
Willem Melching
16fe1bb2ad
Hardware abstraction class ( #2080 )
...
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
old-commit-hash: c7152d5419
5 years ago
ZwX1616
61ce097e7d
wait longer for tici camerad startup
...
old-commit-hash: 521b6688ea
5 years ago
ZwX1616
275123e6d4
Loggerd rotation test ( #2077 )
...
* loggerd test
* delete afterwards
* add ccc
* fix pylint
* cleanup rotation test
* this works
* bump tolerance
* clear the data after test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 87473fbc41
5 years ago
Adeeb Shihadeh
e5637bc5de
Disable raw upload while onroad ( #1894 )
...
* disable raw upload while onroad
* fix tests
old-commit-hash: c8f880665a
5 years ago
Adeeb Shihadeh
cdfb090c7a
Wunused ( #1841 )
...
* enable Wunused, first pass
* unused stuff in snpe model
* these are used on phone
* handle sigint and sigterm in modeld
* fix phone build
* camera qcom
* QCOM build works
* delete unused camerad vars
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831
5 years ago
Dean Lee
7f84cb0e3f
remove duplicate calls to visionstream_destroy ( #1843 )
...
old-commit-hash: 3754ddf9ba
5 years ago
Dean Lee
5fb85ede56
add function read_db_bytes ( #1662 )
...
old-commit-hash: 90d97de74d
5 years ago
Willem Melching
55c3a89421
slow down upload check when offroad ( #1634 )
...
old-commit-hash: f4e8df7ee6
5 years ago
Adeeb
d035394ce7
Add pre-commit hooks ( #1629 )
...
old-commit-hash: ab83e48ec4
5 years ago
Willem Melching
a56e2b01f8
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
old-commit-hash: 843a64c72f
5 years ago
Adeeb Shihadeh
68a3061c9d
enable E261 in flake8: two spaces before inline comment
...
old-commit-hash: 27754a277c
5 years ago
Adeeb Shihadeh
be0b43f339
enable flake8 E231: missing whitespace after comma
...
old-commit-hash: efd5dffb1e
5 years ago
Adeeb
5e857427ba
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
old-commit-hash: d9bf9f0a40
5 years ago
Willem Melching
c0866d9edb
pre-commit pylint ( #1580 )
...
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
- pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344
* add pylint to pre-commit and make everything pass
* Remove uncommented stuff
Co-authored-by: J <user@4800.lan>
old-commit-hash: bd06434243
5 years ago
Willem Melching
91f1082394
-Werror ( #1567 )
...
* werror
* -Wno-inconsistent-missing-override
* Silence ffmpeg deprecation warnings
* add some more pragmas to ignore warnings
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 50f3f1d335
5 years ago
Willem Melching
7f0b3180a4
Use C++ version of SubMaster and PubMaster ( #1548 )
...
* add PubMaster & SubMaster
remove 'delete msg'
remove headers
* use constructor to initial all submster
* modify drain sockets
* fix typo in ssconscript.remove lines
no checkValid in loggerd
last modify
handle_message:event->&event
fix type
remove heads
event to auto
* new interface
* api changed
* Revert "use constructor to initial all submster"
This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.
* change to new api
* revert loggerd
* dd
* use new PubSub api
* update to new interface
don't modify loggerd
reset panda
reset opendbc
remove empty lines
* switch to new pubMaster
* update to the new inteface
change
remove error code
. to ->
merge paramsd.cc
update panda
fix typo
simplify
fix typo
* Fix build
* always conflate
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: ab5af232b2
5 years ago
robbederks
5a12fc32e7
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
old-commit-hash: 71bebc4fca
5 years ago
Adeeb Shihadeh
7bc6491502
these don't need json
...
old-commit-hash: 9670f8fb9f
5 years ago
George Hotz
16cbb5e255
Revert "Bypass alignment related copy whenever possible ( #1443 )"
...
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.
old-commit-hash: d5ca841b0f
5 years ago
George Hotz
6fbcde48e5
Using lgtm.com and fixing found alerts ( #1452 )
...
* lgtm in readme, and mac nui fixes
* call super inits in radars
* unused imports, dup lines
* more radars, more unused imports
* pass CP into RadarInterfaceBase
* more fixups
* unused imports
* delete unused lines
* ugh, new unused import
Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 1295cfe06c
5 years ago
Dean Lee
f2932aadfd
Bypass alignment related copy whenever possible ( #1443 )
...
remove blank lines
add file messagehelp.h
remove blank line
simplify
after review
old-commit-hash: b225016628
5 years ago
Willem Melching
39cce620d4
Revert "fix memory leak in encoder_close ( #1366 )"
...
This reverts commit 62f812dca8fda5da7e14252cfcdd8c1ebef38c2c.
old-commit-hash: 9ad6cbbe6d
5 years ago
Comma Device
92235612a2
mark unuploaded
...
old-commit-hash: cead4c6e85
5 years ago
Dean Lee
f01bf14ba4
cleanup visionipc when recovering from fault in dmonitoringd and loggerd ( #1402 )
...
old-commit-hash: 2928c53e4f
5 years ago
Willem Melching
93a539e7ff
Release messaging sockets and context on shutdown ( #1391 )
...
* release resources when thread is done
* add white space
* add white space
Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: 02e474580e
5 years ago
Dean Lee
68578673ff
fix memory leak in encoder_close ( #1366 )
...
* fix memory leak in encoder_close
* add &
old-commit-hash: 3b3eebb137
5 years ago
Dean Lee
cdda637936
remove buggy pthread_mutex_unlock in event_handler ( #1369 )
...
old-commit-hash: a4ad9d1f46
5 years ago
Greg Hogan
9cc5c41773
update tests
...
old-commit-hash: 337fb1a273
5 years ago
Greg Hogan
8be9cddc62
handle ignored uploads more gracefully
...
old-commit-hash: 85a09b3113
5 years ago
Dean Lee
24a729dca8
improve loggerd error handling ( #1332 )
...
* call BZ2_bzWriteClose after fail
* set closed file handles to NULL
* move fclose after BZ2_bzWriteClose
old-commit-hash: 434a2b0658
5 years ago
George Hotz
860930b198
tici: fix loggerd ( #1302 )
...
* loggerd builds
* codec
* add frame_id cams
* working
* no qcam on tici
* pthread always
Co-authored-by: Tici <robbe@comma.ai>
old-commit-hash: cfcf3f9368
5 years ago
Willem Melching
829a5a734d
One more BaseException in test_uploader.py
...
old-commit-hash: 3dad97a211
5 years ago
Greg Hogan
41ff9244c0
uploader: allow ctrl+c
...
old-commit-hash: 13ec384ea0
5 years ago
Greg Hogan
004c181167
uploader: do not delete files after uploading ( #1253 )
...
* cffi xattr function wrapper
* xattr wrapper error handling
* xattr tests
* use xattr for tracking files uploaded
* uploader xattr exception handling
* update uploader tests
* remove unused import
* update release build
* xattrs.py -> xattr.py
old-commit-hash: f21d0f325e
5 years ago
Shane Smiskol
682c866a55
initialize all messages in 1 line ( #1206 )
...
old-commit-hash: 6ff881f789
5 years ago
George Hotz
640c41a3ff
Add sentinels to logs and qlogs ( #1205 )
...
* sentinel WIP
* logger is now a cc, not a c
* simpler code doesn't touch loggerd.cc
* oops, double lock. and logreader is nicer
old-commit-hash: 2f2b85581c
5 years ago
Willem Melching
1d39b5a646
more generic catch in uploader and thermald
...
old-commit-hash: 891c4cabb8
5 years ago