Commit Graph

205 Commits

Author SHA1 Message Date
Harald Schafer a8f5a9834a update comments
old-commit-hash: 69077145100242a72d9725e04b3d7808300f8abb
2020-11-12 10:21:27 -08:00
HaraldSchafer 008f37c749 Torch model (#2452)
* refactor draw model

* rebase master

* correct valid_len

* rename function

* rename variables

* white space

* rebase to master

* e16c13ac-927d-455e-ae0a-81b482a2c787

* start rewriting

* save proress

* compiles!

* oops

* many fixes

* seems to work

* fix desires

* finally cleaned

* wrong std for ll

* dont pulse none

* compiles!

* ready to test

* WIP does not compile

* compiles

* various fixes

* does something!

* full 3d

* not needed

* draw up to 100m

* fix segfault

* wrong sign

* fix flicker

* add road edges

* finish v2 packet

* Added pytorch supercombo

* fix rebase

* no more keras

* Hacky solution to the NCHW/NHWC incompatibility between SNPE and our frame data

* dont break dmonitoringd, final model 229e3ce1-7259-412b-85e6-cc646d70f1d8/430

* fix hack

* Revert "fix hack"

This reverts commit 5550fc01a7881d065a5eddbbb42dac55ef7ec36c.

* Removed axis permutation hack

* Folded padding layers into conv layers

* Removed the last pad layer from the dlc

* Revert "Removed the last pad layer from the dlc"

This reverts commit b85f24b9e1d04abf64e85901a7ff49e00d82020a.

* Revert "Folded padding layers into conv layers"

This reverts commit b8d1773e4e76dea481acebbfad6a6235fbb58463.

* vision model: 5034ac8b-5703-4a49-948b-11c064d10880/780  temporal model: 229e3ce1-7259-412b-85e6-cc646d70f1d8/430  with permute + pool opt

* fix ui drawing with clips

* ./compile_torch.py 5034ac8b-5703-4a49-948b-11c064d10880/780 dfcd2375-81d8-49df-95bf-1d2d6ad86010/450 with variable history length

* std::clamp

* not sure how this compiled before

* 2895ace6-a296-47ac-86e6-17ea800a74e5/550

* db090195-8810-42de-ab38-bb835d775d87/601

* 5m is very little

* onnx runner

* add onnxruntime to pipfile

* run in real time without using the whole CPU

* bump cereal;

* add stds

* set road edge opacity based on stddev

* don't access the model packet in paint

* convert mat.h to a c++ header file (#2499)

* update tests

* safety first

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: mitchell <mitchell@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: George Hotz <george@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 08846b5c0ec3a5299c8cb73904da15a18d3aaccf
2020-11-11 20:31:46 -08:00
HaraldSchafer b7ae2e9e85 Fix lane width (#2520)
* use prob modifiers in lane width calc

* update ref

* update ref
old-commit-hash: f7d1ace8836e02689d344561586e966758e99d23
2020-11-10 21:12:36 -08:00
HaraldSchafer 902d107af1 cleanup planner (#2519)
* no reason for external function

* dont need d_poly for this test

* dont copy float

* typo
old-commit-hash: 39f27f9d6a0d486e9d965fb2f3eb28caa12476a0
2020-11-10 14:42:43 -08:00
Shane Smiskol a600b9c0e2 some laneplanner updates (#2505)
old-commit-hash: dca6f61db94705e4d15db93d5fa26e359f41ac57
2020-11-09 01:15:29 -08:00
HaraldSchafer 4bd3ffa94b No uncertain ll (#2495)
* initial, needs tune

* support metrics

* a little more

* wrong type

* fixup

* update refs
old-commit-hash: 26583b1b85cfe496300ab61310c3489b542ecead
2020-11-06 21:01:16 -08:00
HaraldSchafer fcb995e19c set y too (#2448)
* set y too

* new ref
old-commit-hash: e6668625fa8c0dec0277a87ce3d5bfad4a1a55a6
2020-11-04 19:52:05 -08:00
Adeeb Shihadeh f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f598639307994392e96f4d9293b295c7
2020-11-03 19:56:25 -08:00
Adeeb Shihadeh 48e5211f23 grey panda deprecation (#2406)
old-commit-hash: d92ec9642e49f4e4681006c71e7d90cfc8bd7d1d
2020-10-26 23:09:06 -07:00
Adeeb Shihadeh b7c4c26012 camera malfunction alert (#2391)
* camera malfunction alert

* bump cereal

* fix process replay

* ugh, needs refactor
old-commit-hash: 88b956528e614dc7429d525d5d7e09b5431d7b38
2020-10-22 16:28:54 -07:00
ZwX1616 e9d58939d2 infinite sound (#2372)
* make sound infinite loopable

* Update selfdrive/ui/android/sl_sound.cc

* fix loop

* fix test threshold

* more fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 53bd3050ee90ca18445ddc41b837f5f927cc0c6a
2020-10-20 17:42:19 -07:00
Shane Smiskol 1468b3bb49 matrix subclass not recommended way to represent matrices (#2348)
old-commit-hash: 5bcac27d98fe45aa5237c4d9cd1a04bc8d7bd279
2020-10-20 12:12:23 +02:00
Adeeb Shihadeh aea2faaa98 Alert cleanup (#2274)
* no more focus recover active

* consistency

* more permanent

* dm alerts

* sanity check test

* no please

* clean that up

* update refs

* one more

* bump cereal
old-commit-hash: ae4b4bd1256c11153035e4236cd801738f135c51
2020-10-14 15:56:18 -07:00
Adeeb Shihadeh 5dc58abbbe clear irrelevant alerts on state transition (#2318)
* cleanup

* clear warnings

* more types

* needs refactor

* update refs

* update refs
old-commit-hash: 1c6905cac1c5b4528e60dac3279357959c2e2bc3
2020-10-14 14:08:15 -07:00
Willem Melching 94a947e59a Fix lane change when blinker is turned off early (#2324)
old-commit-hash: ce85e402f4a7141d8ee739006c20a5492c06a2ea
2020-10-13 17:42:29 +02:00
Shane Smiskol 09aad99228 Use math instead of numpy for calculating TTC, on average 80% faster (#2293)
* Use math instead of numpy, on average 80% faster

* whoops
old-commit-hash: 6133f603f046bb08c8e3493c3092c796156b8930
2020-10-08 14:23:53 +02:00
Logan Lasiter dd0c9d0796 Present alert if fan isn't spinning (#2258)
* Present alert if fan isn't spinning

* allow entry

* Small updates

Moving to fan malfunction event

Only trigger event for uno or dos

* Changed checking fanSpeed > 50%

* Update text for fan malfunction alert.

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Alert if fan isn't spinning for 5 sec

* Alert edit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 1a2efdc139868f3588a4a35505e8833eacee735d
2020-10-07 12:15:09 +02:00
Adeeb Shihadeh aff01412d3 cleanup duplicate function
old-commit-hash: bd4a1f291df99e237d73ff0b3743d9ffcd88eb93
2020-10-06 23:59:16 -07:00
Adeeb Shihadeh 69946508db bump cereal
old-commit-hash: 70bc935210c8b948ab20f1d72fd2c6a6884d4cfd
2020-10-05 18:43:21 -07:00
cydia2020 ca29e033e9 add 1 second delay to acc pedal alert (#2221)
So that the screen wouldn't appear to "flicker" when openpilot is engaged while the acc pedal is being released
old-commit-hash: 6d5b2af3f2290d9cf99c4eee3eb9c412a069fbb4
2020-09-28 16:17:21 -07:00
qadmus b48d1823e9 remove unused globals, use self.reset() (#2220)
Co-authored-by: user <email@web.com>
old-commit-hash: 254814cc793dc4668ea9fd25f092b0712fb5b8a0
2020-09-24 11:39:47 +02:00
Adeeb Shihadeh 6f96ed3c59 remove unused alert
old-commit-hash: cdcf2350252059e937b032ea2448584ff3c512a9
2020-09-22 13:47:30 -07:00
qadmus c613f8dfcc cleanup long planner, mpc: unused globals and arguments (#2211)
Co-authored-by: user <email@web.com>
old-commit-hash: 72e0ac2de1087760822b8a552c569ab3a859e2a5
2020-09-21 11:43:28 +02:00
Willem Melching 2b95a9fec2 Revert "tici: take into account frame timestamp (#2199)"
This reverts commit 58dc2982af6593d7a31464342d80190fa365287e.

old-commit-hash: 65e5032a97cba8c294e0763eeaaa430d4803a4d6
2020-09-21 10:31:01 +02:00
Adeeb Shihadeh 69c45af274 alertmanager type hints (#2201)
* alertmanager types

* clean that up

* more cleanup

* little more

* space
old-commit-hash: 15e4048318c2bf2e3e064c3f1e7e288edb9f902c
2020-09-19 10:53:14 -07:00
Willem Melching 5d817c4f46 tici: take into account frame timestamp (#2199)
* compensate for frame processing time

* add rolling shutter time

* Add max frame delay of 250ms

* only delay on tici
old-commit-hash: 3a494e144bd85166fe347cf3c0b8bfbf22d8e462
2020-09-18 17:42:29 +02:00
Adeeb Shihadeh 8221c26fab type hints for alerts and fix community feature alert (#2196)
* fix startup alert for community features

* type hints for alerts

* more type hints

* fix dashcam only alerts

* more type hints
old-commit-hash: a81a18205e85ac576a5cf5e330e3f7b99fcb4152
2020-09-17 22:06:31 -07:00
ZwX1616 6f3c2fba6e Cut down unnecessary DM uncertain alerts (#2157)
* cut down high std alerts

* clean comments

* uncertain curve tune

* update test gt

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a2adfdb155f2293d9a2e7be11e81af8c020f011b
2020-09-14 10:43:19 -07:00
Adeeb Shihadeh 6dbfe6fb9e prevent reversing alert from showing while changing gears
old-commit-hash: a4a4e28c1a9948297d36f562aad6343294380d47
2020-09-12 17:21:30 -07:00
Adeeb Shihadeh 64a9728f2e Reduce paramsd and calibrationd CPU usage (#2119)
* reduce paramsd cpu

* reduce calibrationd cpu usage

* calibration_helpers was mostly unused

* more calibration cleanup

* update refs

* fix thresholds in CPU test
old-commit-hash: e0004d09810d9c3bcb8681bca110bf5bbd09445a
2020-09-10 12:16:29 -07:00
Adeeb Shihadeh 5b9466a76e hide camera view when in reverse (#2144)
* partially hide camera view when in reverse

* lowest priority

* update ref commit

* fix type

* update refs
old-commit-hash: 9cd88526b513250aae592761a4d554a0eae4acc0
2020-09-09 00:11:12 -07:00
Adeeb Shihadeh e17575f36d make calibrationInvalid a permanent alert
old-commit-hash: 86f4d86cd7ae704d97efea1638f1a510d950c9bc
2020-09-04 13:20:48 -07:00
ZwX1616 fca076b982 not show soft recover alerts
old-commit-hash: 9731e7a0d7af7aec44097e0028c10427681d4e8c
2020-08-27 17:59:26 -07:00
Chris 42538fd54b Kilometers per hour now displayed as km/h (#2032)
Fixes #2031

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
old-commit-hash: 1b52930a52828b1423c59c677c9b42a5ff76125c
2020-08-17 11:16:52 +02:00
Adeeb Shihadeh c2b1d97b20 NEOS background updater (#1892)
old-commit-hash: cb5a2996e75658ac61f057fb729c229a554c551e
2020-08-12 11:39:21 -07:00
Adeeb Shihadeh 017b084154 Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
old-commit-hash: 8e63f065400ea1868f077560ae89b2c17f5523f8
2020-08-11 16:23:57 -07:00
Adeeb Shihadeh 944759717e fix missing negative limit in pid controller (#2001)
old-commit-hash: ee99b59bade8d3b5057a5b3f22ad8b3edd102c78
2020-08-08 11:49:13 -07:00
HaraldSchafer 122118ccd4 add fall filter and less FP on posenet (#1971)
* add fall filter and less FP on posenet

* add alert

* list

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 490ee5268712c38f738161cab939c02573581ebf
2020-08-03 15:51:56 -07:00
HaraldSchafer bc3b340694 Misc locationd improvements (#1714)
* I like this more

* rewind less

* bump rednose

* falling off windshield detectopr

* adjust thresholds

* this is a soft disable now

* move that

* process replay fixes

* update refs

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8e2d344135b9a1102503432d651e6bf599d9fa42
2020-07-30 15:33:22 -07:00
Shane Smiskol 3454f1e033 Fix hard deceleration after user accelerates above set cruise speed (#1880)
* Fix hard deceleration after user accelerates above set cruise speed

* 2nd required change
old-commit-hash: ebadb39e42d8a39eaf3bc969157777d596e42012
2020-07-20 17:04:05 +02: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 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
Greg Hogan bcf7edf595 k-line 5 init fault type (#1821)
* k-line 5 baud fault type

* update name

* bump cereal

* fix name

* add missing event
old-commit-hash: c458f5a5d3587d0eb87abbebd86c4f399e28c63d
2020-07-06 09:33:16 -07:00
Adeeb Shihadeh 8b2ae9319a fix blindspot detection
old-commit-hash: 64aeb80dcc651de9836d46db08c2b4a17af364f0
2020-06-30 13:44:56 -07:00
robbederks 4b2775add9 Dos (#1795)
old-commit-hash: df86c476c76f53d385d3c8df63d27588dde3dccd
2020-06-29 12:47:48 +02:00
Adeeb Shihadeh 17fc7e2bec Add alert while in preEnabled state (#1791)
old-commit-hash: ce80684f7ec6a61d8e4f08471611a30562707154
2020-06-28 20:29:42 -07:00
Willem Melching 5f97bf6056 fix wrong car mode alert
old-commit-hash: 5e254da8b39bff7b2710652b5a3c5ec0d96abb95
2020-06-24 18:20:30 -07:00
Adeeb Shihadeh 55225dcd56 Block lane change start on blindspot detection (#1712)
* use BSM to block lane change start

* remove duplicate entry

* add approaching
old-commit-hash: c4a3d7afb0a190ea0abcf3deb0ec754b31de2cb3
2020-06-24 17:31:09 -07:00
ZwX1616 9bca4bfb20 recover EON/C2 AF (#1665)
old-commit-hash: 3aa99a01d7a29c69f1b767b3fca30d18a6047425
2020-06-23 14:33:32 -07:00
Adeeb Shihadeh ab66589a46 fix engage/disengage sounds
old-commit-hash: 51b7dc0e385945faf0341c52b14555e75e804d04
2020-06-23 10:50:24 -07:00