Commit Graph

27 Commits

Author SHA1 Message Date
Adeeb Shihadeh 370a68623e minor cleanups from LGTM
old-commit-hash: 35a5b057c1ab6d3f77daae6a40d14c9bff28f08b
2020-07-17 23:34:38 -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 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 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
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
Jason Young fae70a4d99 Update realtime priority for modeld/dmonitoringd (#1675)
old-commit-hash: ec5fc0e92b5f381c5e2c464d3fa65c8db0fc3246
2020-06-10 17:40:22 -04: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
Adeeb d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Dean Lee 9d31c0194f reduce the scope of mutex (#1561)
old-commit-hash: d5858955ee5aa9c8fae7c9f26e7754e86353377a
2020-05-26 09:57:14 -07:00
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: ab5af232b243ba8137695f68c125f922fb412d44
2020-05-21 16:04:33 -07:00
Willem Melching aedf223401 remove eigen from phonelibs (#1505)
old-commit-hash: add784a7df0bd27aa1df115e38d43d5159c832f9
2020-05-13 16:41:52 -07:00
George Hotz 16cbb5e255 Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.

old-commit-hash: d5ca841b0f18d2e707eb1f73afac842ede9be7e8
2020-05-04 09:54:05 -07:00
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: b2250166281406853de9901271d69a9e64b3b74e
2020-05-01 19:21:00 -07:00
Willem Melching b5c2394ebe modeld, add cloudlogs
old-commit-hash: e171a7a047f9d5507ef650c79aee1d0981d66f5f
2020-04-19 14:00:30 -07:00
Dean Lee c69b4c17e8 modeld, cleanup visionipc when recovering from fault
old-commit-hash: 8f2858efba4ac7735c5bb237a7e88348ec4c424e
2020-04-19 13:59:36 -07:00
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: 02e474580ee90713bc3426ea512278c5eb1c6b15
2020-04-17 16:37:34 -07:00
HaraldSchafer 5d6131d711 add traffic convention (#1372)
* I think this works

* clean up
old-commit-hash: f5b28ad2d267adae0d6e6fd7816389d3f8d32200
2020-04-15 21:19:25 -07:00
HaraldSchafer cd44a6b07f Traffic b2 (#1345)
* add traffic convention

* hope this work

* no comment

* latest and gratest

* big gru model

* 1af55c7d-ee15-414a-9e98-a0cb08c3441f/75

* much later in training

* wrong temporal size

* converged

* fix lane changes
old-commit-hash: d3edc594cef776847645a6cd14e9e3ce6893bd29
2020-04-13 13:27:06 -07:00
George Hotz 510b718f0f logcatd, loggerd, mapd, modeld, proclogd
old-commit-hash: da079d47d7
2020-01-17 11:20:17 -08:00
George Hotz 81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher 99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00