Adeeb Shihadeh
45b4b6007a
lidar is a scam ( #2094 )
2020-08-28 16:21:05 -07:00
Adeeb Shihadeh
82f40f6ff5
small uploader cleanup
2020-08-27 14:22:59 -07:00
robbederks
37d6472bfa
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 9233a1df7cac214fae6827cdae3a10cb3bd060d9.
* 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 >
2020-08-26 19:59:56 -07:00
ZwX1616
3014280d1a
Fix OMX error on loggerd rotation when using multiple cameras ( #1953 )
...
* cherry pick from f8745d3002afe1acd8b740c8421992f1a459b59d
* 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 >
2020-08-26 15:02:51 -07:00
Adeeb Shihadeh
7bee1dbdbf
missing two f's, loggerd should really work on pc
2020-08-26 13:48:54 -07:00
Adeeb Shihadeh
ff5d98f85f
add frame count check to loggerd rotation test
2020-08-26 13:06:32 -07:00
Willem Melching
c7152d5419
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
2020-08-26 14:57:17 +02:00
ZwX1616
521b6688ea
wait longer for tici camerad startup
2020-08-25 21:07:50 -07:00
ZwX1616
87473fbc41
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 >
2020-08-25 18:31:49 -07:00
Adeeb Shihadeh
c8f880665a
Disable raw upload while onroad ( #1894 )
...
* disable raw upload while onroad
* fix tests
2020-07-20 15:21:39 +02:00
Adeeb Shihadeh
eb1aa3d831
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 >
2020-07-09 09:25:32 -07:00
Dean Lee
3754ddf9ba
remove duplicate calls to visionstream_destroy ( #1843 )
2020-07-08 21:47:22 -07:00
Dean Lee
90d97de74d
add function read_db_bytes ( #1662 )
2020-06-09 13:46:49 -07:00
Willem Melching
f4e8df7ee6
slow down upload check when offroad ( #1634 )
2020-06-03 19:28:41 -07:00
Adeeb
ab83e48ec4
Add pre-commit hooks ( #1629 )
2020-06-03 12:54:49 -07:00
Willem Melching
843a64c72f
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
27754a277c
enable E261 in flake8: two spaces before inline comment
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
efd5dffb1e
enable flake8 E231: missing whitespace after comma
2020-05-31 12:49:11 -07:00
Adeeb
d9bf9f0a40
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
2020-05-30 20:14:58 -07:00
Willem Melching
bd06434243
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 >
2020-05-27 20:00:14 -07:00
Willem Melching
50f3f1d335
-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 >
2020-05-26 13:27:01 -07:00
Willem Melching
ab5af232b2
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 >
2020-05-21 16:04:33 -07:00
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
2020-05-08 19:39:18 -07:00
Adeeb Shihadeh
9670f8fb9f
these don't need json
2020-05-04 23:37:07 -07:00
George Hotz
d5ca841b0f
Revert "Bypass alignment related copy whenever possible ( #1443 )"
...
This reverts commit b225016628 .
2020-05-04 09:54:05 -07:00
George Hotz
1295cfe06c
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 >
2020-05-02 12:07:34 -07:00
Dean Lee
b225016628
Bypass alignment related copy whenever possible ( #1443 )
...
remove blank lines
add file messagehelp.h
remove blank line
simplify
after review
2020-05-01 19:21:00 -07:00
Willem Melching
9ad6cbbe6d
Revert "fix memory leak in encoder_close ( #1366 )"
...
This reverts commit 3b3eebb137 .
2020-04-29 16:14:51 -07:00
Comma Device
cead4c6e85
mark unuploaded
2020-04-21 11:11:43 -07:00
Dean Lee
2928c53e4f
cleanup visionipc when recovering from fault in dmonitoringd and loggerd ( #1402 )
2020-04-20 13:15:11 -07:00
Willem Melching
02e474580e
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 >
2020-04-17 16:37:34 -07:00
Dean Lee
3b3eebb137
fix memory leak in encoder_close ( #1366 )
...
* fix memory leak in encoder_close
* add &
2020-04-15 18:06:22 -07:00
Dean Lee
a4ad9d1f46
remove buggy pthread_mutex_unlock in event_handler ( #1369 )
2020-04-15 18:04:28 -07:00
Greg Hogan
337fb1a273
update tests
2020-04-10 09:46:03 -07:00
Greg Hogan
85a09b3113
handle ignored uploads more gracefully
2020-04-09 21:59:26 -07:00
Dean Lee
434a2b0658
improve loggerd error handling ( #1332 )
...
* call BZ2_bzWriteClose after fail
* set closed file handles to NULL
* move fclose after BZ2_bzWriteClose
2020-04-08 14:05:19 -07:00
George Hotz
cfcf3f9368
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 >
2020-03-31 18:25:05 -07:00
Willem Melching
3dad97a211
One more BaseException in test_uploader.py
2020-03-30 12:30:21 -07:00
Greg Hogan
13ec384ea0
uploader: allow ctrl+c
2020-03-30 12:27:39 -07:00
Greg Hogan
f21d0f325e
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
2020-03-19 18:09:26 -07:00
Shane Smiskol
6ff881f789
initialize all messages in 1 line ( #1206 )
2020-03-05 17:32:52 -08:00
George Hotz
2f2b85581c
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
2020-03-05 14:29:34 -08:00
Willem Melching
891c4cabb8
more generic catch in uploader and thermald
2020-02-21 15:02:24 -08:00
Adeeb
e8cb6ea06a
Abstract common events + event cleanup ( #1129 )
...
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
2020-02-20 16:22:25 -08:00
Willem Melching
2f33e1e0b0
Fix qlog decimation
2020-02-14 13:51:24 -08:00
Willem Melching
de6d73599b
Also keep 10% free so 64gb/128gb EON will still engage when full
2020-02-10 18:35:10 -08:00
Adeeb
0ad5715255
use services.h in loggerd ( #1056 )
...
* loggerd: use services.h
* don't need yaml-cpp anymore
* forgot that
2020-02-06 10:56:01 -08:00
Willem Melching
393c4987c8
Fix junk data in initParams
2020-01-27 17:08:57 -08:00
Willem Melching
f6835e9490
Add cloudlog for is_on_wifi fail
2020-01-20 11:25:16 -08:00
Willem Melching
6adbe24d4c
catch CalledProcessError in uploader wifi check
2020-01-20 10:57:08 -08:00