Adeeb Shihadeh
91ac4efab2
driver monitoring cleanup ( #2101 )
...
* read rhd from param
* don't need that anymore
* fix build
* bump cereal
* read param from camerad too
* add read_db_bool helper
* bump model replay ref commit, IsRHD wasn't set
old-commit-hash: 349040d9580bf7c9b98273dd2745fc4b147d3254
2020-08-29 17:16:00 -07:00
ZwX1616
323b66731c
need no divided by 2
...
old-commit-hash: b7bc342cc8079e017c24c920d3a91364894ba177
2020-08-28 12:20:36 -07:00
Adeeb Shihadeh
cc2c6180f9
Sound stability test ( #2089 )
...
* play sound
* clean this up
* no cereal
* fix module issue
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 685340d57897b8a0db4aa1c754c1760c59b92ead
2020-08-27 15:50:48 -07:00
Willem Melching
139301e00f
make sure snpe can find libopencl
...
old-commit-hash: 3517d4580224d6d74ea91d46bc4fe081c8e02a2f
2020-08-27 11:35:52 +00:00
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 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 >
old-commit-hash: 37d6472bfa1c0ef9f1f8353162b97444ca66e45c
2020-08-26 19:59:56 -07:00
Willem Melching
9b489c5d3c
larch64 dmonitoringmodeld fixes
...
old-commit-hash: a7be2b090d39fe360eab1c9cca32a3c4d3bb0f13
2020-08-26 17:49:20 +00:00
Willem Melching
81333a9c9e
larch64 modeld fixes ( #2086 )
...
old-commit-hash: cd6ec8211cebc502ef072ea8ebc0e03eab07f358
2020-08-26 17:18:05 +02:00
Dean Lee
aa41930178
remove device_id&context from ModelFrame ( #2064 )
...
old-commit-hash: 727055e0a077ceb4ea9ff55de9fd795cf675b48a
2020-08-24 14:04:52 +02:00
Dean Lee
eb4d487000
move matmul3 into live_thread ( #2069 )
...
old-commit-hash: de7b901dc1518bf6e1dff0534f02be223d0e175f
2020-08-24 14:00:00 +02:00
Dean Lee
ebd4f68cba
ui: refactor model related functions ( #2026 )
...
* remove read_model
* remove structs for c-capnp
* remove duplicate #define from modeld
* add function fill_path_points
* fix Indentation
* use MODEL_PATH_DISTANCE instead of 192
* fix type
use validLen
* rename left_path_points&right_path_points to xxx_lane_points
old-commit-hash: f8ab6bd009410a9f7ab9c30ce7b72a82c6d2507b
2020-08-18 15:26:43 +02:00
Dean Lee
bf750511a1
add function cl_get_device_id ( #1948 )
...
* add func cl_get_device_id
cleanup
* add fix from review
old-commit-hash: d1588376171d8ba1d2ec1b670e085d6e15bd26c1
2020-08-17 11:24:39 +02:00
Dean Lee
681a50640e
init and destroy transform_lock ( #2003 )
...
old-commit-hash: 36801a70eb8f599baee8e07aed0ec9c3b6385595
2020-08-16 16:31:53 -07:00
Dean Lee
735f84089c
fix bug that visionstream_destroy may be called twice ( #1999 )
...
old-commit-hash: cccb63229d9b6d953bfa62b57327d345403c85b2
2020-08-08 15:50:36 -07:00
Dean Lee
1bc3801c9b
Make sure memory is released by using unique_ptr ( #1958 )
...
old-commit-hash: ef435ef2ac14dd7f842d4f59909330ba57f6d177
2020-08-05 12:27:56 +02:00
Dean Lee
046dd61d3b
modeld: read frame_id if sm.update(0)>0 ( #1947 )
...
* read frameid if sm.update(0)>0
* move postion
same line
old-commit-hash: f80acad519d5edb8dc7bbcf881490f6f2e0f72fc
2020-08-01 11:01:43 -07:00
ZwX1616
a55099ac2a
EfficientNet driver monitoring ( #1907 )
...
* e96f9be6
* bump cereal
* filter sunglasses
* fix unittest
* update refs
* udpate refs
* update refs
* add tolerance for dmonitoringd
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 2cfa0edb4ccc0f17fd926835de8fb966dd4d9fc3
2020-07-27 20:22:06 -07:00
Adeeb Shihadeh
cd317b0780
Fix most remaining LGTM alerts ( #1893 )
...
* fixups from LGTM
* short globals
* fix spinner and textwindow
* total ordering
* no spinner/text window when import from manager
* not android
old-commit-hash: 5db81f60ca8fbc0ef28924b7e93f25a1d4bb3764
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh
370a68623e
minor cleanups from LGTM
...
old-commit-hash: 35a5b057c1ab6d3f77daae6a40d14c9bff28f08b
2020-07-17 23:34:38 -07:00
ZwX1616
556752a77b
Revert "EfficientNet driver monitoring ( #1866 )"
...
This reverts commit 0bc9d737dde1a50937d421f7a417260732f90480.
Need to fix test
old-commit-hash: c2be31c10be18893fbb1f45b37e34f291fa6b97d
2020-07-17 18:20:04 -07:00
ZwX1616
7a8bf9d7de
EfficientNet driver monitoring ( #1866 )
...
* e96f9be6
* bump cereal
* filter sunglasses
* fix unittest
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 2d0e994674dcd1965bb28158d49428fb43df8902
2020-07-17 15:34:02 -07:00
Adeeb Shihadeh
c374f03187
Revert modeld vipc conflate behavior and alert on dropped frame percent ( #1877 )
...
* Revert "Fix modeld dropping frames if processing takes over 50 ms"
This reverts commit fb908877a50d72e20a047bd4138316b12c8a30cc.
* track frame drop
* fix unused
* alert on frame drop perc
* reduce thresholds
* posenet is invalid on non-consecutive frames
* Refactor filter time constant
* Use vipc_dropped_frames for posenet valid check
* Actually set frame drop percentage
* Add explicit cast just to be sure
* Prevent frames dropped to go up to quickly on startup
* bump cereal
* reduce soft disable threshold to 1%
Co-authored-by: Willem Melching <willem.melching@gmail.com >
old-commit-hash: 58c3b5ba84f6c3da3c660770148cea98c708fce5
2020-07-14 14:23:27 -07:00
Adeeb Shihadeh
ef00c30f3a
small scons cleanup ( #1858 )
...
old-commit-hash: 704bc1b8834d3f98e0be1d37e72911e449d7dd6c
2020-07-10 15:26:16 -07:00
Adeeb Shihadeh
4d9200f307
only check frame age for posenet too
...
old-commit-hash: c8f3ff8913ce7e18d755ae8015a27af3365029e9
2020-07-09 20:55:56 -07:00
Adeeb Shihadeh
c8a9fb9321
only check frame age for model validity
...
old-commit-hash: 587bdf593799f9c6612c26703ffcfcd031f98f92
2020-07-09 20:37:28 -07:00
Adeeb Shihadeh
a1dbb38a0c
Alert when modeld is lagging by more than a frame ( #1823 )
...
* alert when modeld is lagging by more than 1 frame
* log frameAge in modelData
* set posenet valid
* compute frame_age once
old-commit-hash: 03e824a4b558daa15191408e88b73fee7ab1792f
2020-07-09 17:02:21 -07:00
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: eb1aa3d831fd0d7fffd9aacec1accb0a5bdb0304
2020-07-09 09:25:32 -07:00
Willem Melching
2e056ae2a3
Fix unsigned overflow in modeld frame age computation
...
old-commit-hash: 5e10efead11073279f7119f07df2825713f033c4
2020-06-22 19:31:57 -07:00
Willem Melching
b772d12f87
Make model packets invalid when frames are too old ( #1759 )
...
* make model packets invalid when frames are too old
* add frame numbers to cloudlog
old-commit-hash: 88f92663780665b27fafdb5ab86ad501cad4cbcf
2020-06-22 14:27:58 -07:00
Willem Melching
f9cae2aa8f
Fix modeld dropping frames if processing takes over 50 ms
...
old-commit-hash: a8e7a187ca115a5fe5f3a04923dbe50bd00871c7
2020-06-19 16:57:28 -07:00
George Hotz
83f6ec221f
c++ify thneed to remove memory leaks ( #1737 )
...
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 01a486308d7fbcd661d8f8786c140222703f659a
2020-06-19 15:53:48 -07:00
Dean Lee
e04a272892
release resources in modeld ( #1700 )
...
old-commit-hash: c8082190a07b6534dffcd7c88945af8b26b241c0
2020-06-19 11:38:39 -07:00
Jason Young
266130770f
modeld process time logging to DEBUG ( #1720 )
...
Co-authored-by: Jason Young <jason@comma.ai >
old-commit-hash: 80101b350b1f3de13d546bc0a45874e8132de2db
2020-06-16 10:36:04 -07:00
Willem Melching
725c5e742f
Modeld: loop over platforms to find CPU/GPU ( #1710 )
...
* Modeld: loop over platforms to find gpu
* Remove prints
* PC needs CPU
* Keep default for qcom
* Update error message
old-commit-hash: 4ca8283d739ab31e2fdbd2aeb658cb4f0d2e1bcc
2020-06-15 15:58:12 -07:00
George Hotz
5d069eb8c3
Fixups for Mac, and a bunch for PC ( #1654 )
...
* fix mac nui
* fix cereal
* builds on mac without warnings
* ui swap shouldn't be instant on pc
* camerad builds on mac
* modeld, and now everything, builds on mac
* ui draws pictures on mac now
* fix camerad shutdown
* support ui looping on pc
* python3 on that
* SCNu64 should be cross platform
* bump cereal and new apk
* clean up
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 344a9a369983f58fe1e71f84478ded5c766e0d1b
2020-06-11 18:21:59 -07:00
Jason Young
fae70a4d99
Update realtime priority for modeld/dmonitoringd ( #1675 )
...
old-commit-hash: ec5fc0e92b5f381c5e2c464d3fa65c8db0fc3246
2020-06-10 17:40:22 -04:00
Dean Lee
5fb85ede56
add function read_db_bytes ( #1662 )
...
old-commit-hash: 90d97de74ddc4672b35a5186e868794468a44345
2020-06-09 13:46:49 -07:00
George Hotz
4b6c80336b
Getting PC openpilot working again ( #1650 )
...
* fixup keras_runner to work and be nicer
* truncate the lane lines based on the valid len
old-commit-hash: 7770041f9201c4f84717435b7a585fd70a937923
2020-06-05 17:40:56 -07:00
Dean Lee
bbafa5a72d
pass DMonitoringResult as referer ( #1639 )
...
old-commit-hash: c7ff6dd194b48629dbd05a2cc87afd328fffa3a5
2020-06-05 12:42:01 -07:00
Adeeb
9027018368
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai >
old-commit-hash: 367155168a0c9fb698c8248a5c28c66c2987ae65
2020-06-03 16:13:34 -07:00
George Hotz
669977eb1f
save valid_len
...
old-commit-hash: 4e7fe3a9ec4fddd517ea470af3b7eb3a6fd415e3
2020-06-03 14:18:42 -07:00
Adeeb
d035394ce7
Add pre-commit hooks ( #1629 )
...
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Willem Melching
a56e2b01f8
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Dean Lee
dbc8ca1d26
dmonitoring : use memory cache to avoid malloc/free on every frame ( #1599 )
...
* use memory cache
* use template function to return buffer
* inline function
* const size_t
* use std::vector instead of kj::array
old-commit-hash: cdb48cc180bd22fbad75785d07a7f47da959880c
2020-06-01 14:00:43 -07:00
Adeeb Shihadeh
9823f1164c
enable flake8 E303: too many blank lines
...
old-commit-hash: f3dcf861c73b47c52b5dd77a8f1f8858005ae18b
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
68a3061c9d
enable E261 in flake8: two spaces before inline comment
...
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
be0b43f339
enable flake8 E231: missing whitespace after comma
...
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Dean Lee
b72fcb69e2
driving.cc: Pass ModelDataRaw by reference ( #1600 )
...
* pass ModelDataRaw by reference
* pass NVGpaint by refer
old-commit-hash: af36aa28abeb55a4445cbc1ff13ac55993d989d9
2020-05-30 10:08:44 -07:00
Willem Melching
2ac27def5a
Running pre-commit in CI ( #1590 )
...
* Running pre-commit in CI
* fix dockerfile syntax
* dont run on submodule repo folders
* Fix some import errors in ci
* more stuff
* That should be the last one
old-commit-hash: ba2ac1207a554d277e01af5b9514de4500d4f66a
2020-05-28 15:40:48 -07:00
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: 50f3f1d3357b356c5b1144c518f35375f5bb9924
2020-05-26 13:27:01 -07:00
Dean Lee
9d31c0194f
reduce the scope of mutex ( #1561 )
...
old-commit-hash: d5858955ee5aa9c8fae7c9f26e7754e86353377a
2020-05-26 09:57:14 -07:00