Commit Graph

212 Commits

Author SHA1 Message Date
Willem Melching ba77d62542 Qt ui: only stop repeat sounds (#2577)
old-commit-hash: 1e48b2458e2799bcfeded9e42996da605b66561f
2020-11-19 21:04:14 +01:00
Willem Melching aadc6815eb QT UI: Wifi chooser (#2062)
* qt wifi

Squashed commit of the following:

commit bec029c7b906c1df5324a8dbb0a58b8980c313ab
Author: grekiki <gregor1234567890@gmail.com>
Date:   Mon Nov 2 19:31:30 2020 +0100

    try to collect security type

commit e1e4d97f48a293392d33fe607936bbe94415c846
Author: grekiki <gregor1234567890@gmail.com>
Date:   Mon Nov 2 16:06:55 2020 +0100

    add a function for refresh

commit 52bd7d0937040bd1d5c582f324fdb60f33677014
Author: grekiki <gregor1234567890@gmail.com>
Date:   Fri Oct 30 11:14:23 2020 +0100

    allow compilation

commit 1b91e1057cca564d6b021a579d97940a8f2b9328
Author: Gregor Kikelj <gregor1234567890@gmail.com>
Date:   Wed Oct 21 14:12:05 2020 +0200

    dont build keyboard

commit cc8bad2ddd668d1397a9003a518699c3f706cca8
Author: Gregor Kikelj <gregor1234567890@gmail.com>
Date:   Tue Oct 20 18:22:07 2020 +0200

    kind of works

commit ce3a9b6d96a1985ba5b9a2f17c15530cb8f93ca8
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Oct 19 11:22:55 2020 +0200

    remove button and text field

commit 2db3d11bdb8e69098c34c04a1341ea707ce1ed6a
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 15:31:26 2020 +0200

    try lineedit

commit d045c302dcec612c8d2ff14ba256af06c7df9ebb
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 15:01:18 2020 +0200

    add dialog test button

commit 21fa63e33b12b0bcdad441e778b2cf6c42b113e4
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 12:36:10 2020 +0200

    Only show one if both 2.4 and 5 Ghz found

commit dfb9ca4173adc05264663a3658298899eea2c619
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 12:24:16 2020 +0200

    Sort networks by strength

commit e57fe68f7972f955fc4da7054af676df8581b003
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:59:39 2020 +0200

    Handle currently connected AP

commit a5e80e122176f39a9bccfb8056b0886d210fdf24
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:38:18 2020 +0200

    Add todo

commit 98a1bc6e7a1f38b0ff7cb810b7d63a133552dfcc
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:37:35 2020 +0200

    Implement scan method

commit 9a774a509b1665371d9fd51b40550ad2388d58bc
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:29:03 2020 +0200

    show list of wifi networks

* add to settings

* no wifi on pc

* refactor get_property

* refactor WiFi, split between UI and network manager stuff

* renaming

* refresh works

* refactor

* forgot to git add

* connecting works again

* print connection error on weird networks

* extract adapter path

* found networks

* Deleting existing connections to SSID we are trying to connect to

* have paths of active connections

* mvp

* fix review

* qt wifi

Squashed commit of the following:

commit bec029c7b906c1df5324a8dbb0a58b8980c313ab
Author: grekiki <gregor1234567890@gmail.com>
Date:   Mon Nov 2 19:31:30 2020 +0100

    try to collect security type

commit e1e4d97f48a293392d33fe607936bbe94415c846
Author: grekiki <gregor1234567890@gmail.com>
Date:   Mon Nov 2 16:06:55 2020 +0100

    add a function for refresh

commit 52bd7d0937040bd1d5c582f324fdb60f33677014
Author: grekiki <gregor1234567890@gmail.com>
Date:   Fri Oct 30 11:14:23 2020 +0100

    allow compilation

commit 1b91e1057cca564d6b021a579d97940a8f2b9328
Author: Gregor Kikelj <gregor1234567890@gmail.com>
Date:   Wed Oct 21 14:12:05 2020 +0200

    dont build keyboard

commit cc8bad2ddd668d1397a9003a518699c3f706cca8
Author: Gregor Kikelj <gregor1234567890@gmail.com>
Date:   Tue Oct 20 18:22:07 2020 +0200

    kind of works

commit ce3a9b6d96a1985ba5b9a2f17c15530cb8f93ca8
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Oct 19 11:22:55 2020 +0200

    remove button and text field

commit 2db3d11bdb8e69098c34c04a1341ea707ce1ed6a
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 15:31:26 2020 +0200

    try lineedit

commit d045c302dcec612c8d2ff14ba256af06c7df9ebb
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 15:01:18 2020 +0200

    add dialog test button

commit 21fa63e33b12b0bcdad441e778b2cf6c42b113e4
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 12:36:10 2020 +0200

    Only show one if both 2.4 and 5 Ghz found

commit dfb9ca4173adc05264663a3658298899eea2c619
Author: Willem Melching <willem.melching@gmail.com>
Date:   Mon Aug 24 12:24:16 2020 +0200

    Sort networks by strength

commit e57fe68f7972f955fc4da7054af676df8581b003
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:59:39 2020 +0200

    Handle currently connected AP

commit a5e80e122176f39a9bccfb8056b0886d210fdf24
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:38:18 2020 +0200

    Add todo

commit 98a1bc6e7a1f38b0ff7cb810b7d63a133552dfcc
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:37:35 2020 +0200

    Implement scan method

commit 9a774a509b1665371d9fd51b40550ad2388d58bc
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sun Aug 23 13:29:03 2020 +0200

    show list of wifi networks

* add to settings

* no wifi on pc

* refactor get_property

* refactor WiFi, split between UI and network manager stuff

* renaming

* refresh works

* refactor

* forgot to git add

* connecting works again

* print connection error on weird networks

* extract adapter path

* found networks

* Deleting existing connections to SSID we are trying to connect to

* have paths of active connections

* mvp

* fix review

* fix bugs

* fix text color

* colors

* wider button

* show connected network first

* fix sorting

* remove hack

* sorting

* auto refresh

* only refresh when widget is visible

* scan once on startup

* dont open dialog on qcom2

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: grekiki <gregor1234567890@gmail.com>
old-commit-hash: f93bca98ae8470ff61c98a11fdcaba8d549a964f
2020-11-19 16:51:48 +01:00
Harald Schafer 4a4fb376b9 sometimes never goes into the loop
old-commit-hash: d409dabedd7a783d5f1577eaa571fd8d2423d4e6
2020-11-17 10:19:12 -08:00
Adeeb Shihadeh be55621d6b fix spinner and text diff
old-commit-hash: 62fd824553c299c0126348fbc8b71a6925dffbbb
2020-11-14 18:19:06 -08:00
Adeeb Shihadeh 6a6bab9917 nicer spinner
old-commit-hash: 12bddb985d32a5efe460224fef55a47f92ecaae3
2020-11-14 17:54:05 -08:00
Adeeb Shihadeh b5f01a713b fix setup for new weston build
old-commit-hash: ff6dac7dd3c125443a2d2459c479747e7d4f0234
2020-11-14 15:50:11 -08:00
Adeeb Shihadeh 08e1e45753 improve onboarding (#2537)
old-commit-hash: eae04fc67e3a0185b0de9a54ddaff70469775645
2020-11-12 21:37:02 -08:00
Adeeb Shihadeh 7ba5da6a7d larch64 text window
old-commit-hash: 5c0bfe9f10b7025e52bbfc73d10825c5698d8e7d
2020-11-12 19:57:46 -08:00
Adeeb Shihadeh 75f3d1a875 larch64 spinner
old-commit-hash: 51cc8a6b8461091f2c14c930387f273b6bf30c4b
2020-11-12 19:56:55 -08:00
robbederks 394a3f4d86 Tici Focal (#2459)
* fix i2c

* fix libi2c (again?)

* qt 5.12.8

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c5c875bad990475a48dd01ec7dad0ff6a83010d3
2020-11-12 17:09:36 -08:00
Adeeb Shihadeh be77d9c02f Qt setup + installer (#2511)
* getting started

* setup screens

* cleanupg

* url input

* installer

* setup

* installer
old-commit-hash: 7b72bbe9f3743a16edf31c44506c7f62a43b081b
2020-11-12 11:31:02 -08:00
Dean Lee ed4c4cd8b3 remove std::clamp (#2530)
old-commit-hash: 91f79acac3ef63d28d5884bf2947eb7b692666cc
2020-11-12 11:30:04 -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
Willem Melching 2e3337d654 paint.cc: fix drawing lane lines on sidebar
old-commit-hash: 8896b7a7911b5d6cb856aeeb1f8f04e4e15c2584
2020-11-11 02:12:55 -08:00
Adeeb Shihadeh 3a05f06ced Qt spinner (#2494)
* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
old-commit-hash: 6c86afee16c706a3c8e787d576ead509373e6b55
2020-11-06 18:44:04 -08:00
Adeeb Shihadeh 57de41eae5 Qt text window (#2489)
* qt text window

* auto size

* real text

* this is cleaner

* fix android build

* exit on pc

* tici fixes
old-commit-hash: 68ba1649b91984c106491cf1894c3f44f21a34df
2020-11-06 12:05:24 -08:00
Adeeb Shihadeh 435d16ab87 qt sound cleanup
old-commit-hash: 1690fd62c2c93add43da8951867fdeae46092683
2020-11-04 11:48:34 -08:00
Adeeb Shihadeh b251e323b0 qt cleanup (#2476)
old-commit-hash: b00cb389efa4e197eb2d9f7bf45d973f9f9dc97c
2020-11-04 11:16:34 -08:00
Christo Mitov ac75ea342b switch build flags to use opengl framework rather than gl library for OSX (#2467)
* switch build flags to use opengl framework rather than library for OSX

* little cleaner

* arch

Co-authored-by: thatsaboi <thatsa@boi.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 029be4901217ba4aada3a24b5b3d113aee359369
2020-11-03 19:54:29 -08:00
Comma Device 1f7c4600ef lower volume
old-commit-hash: ccecd375545ed083a72c5424baf5ad22f730febe
2020-11-01 04:21:22 +00:00
Adeeb Shihadeh a5e5f21d47 qt settings touchups
old-commit-hash: d8437a58b5601dcef3cd6bc43aea3d9a526f5ab8
2020-10-31 20:24:22 -07:00
Adeeb Shihadeh 2c712a9ea2 Qt onboarding (#2465)
* terms

* clean up

* style
old-commit-hash: 9d84a835d85896f959382a2cca9e7d531bca08ea
2020-10-31 17:07:04 -07:00
Comma Device faef2563ff big button
old-commit-hash: e8587520acac6cd7fd316acb5468cf58fc853d2e
2020-10-31 03:06:38 +00:00
Adeeb Shihadeh 89c511b32b Qt offroad (#2451)
old-commit-hash: 06400af09f23525aa2c432e21a94ca774c01c1eb
2020-10-30 17:03:51 -07:00
Adeeb Shihadeh 2403db7084 stop sounds after going offroad
old-commit-hash: ffbd5e9f2d2660f6527219e4b4f2dc37aa475919
2020-10-27 14:05:13 -07:00
Adeeb Shihadeh 53cfb51c28 enable event processing in UI
old-commit-hash: 9807361ef21e2d9a338ab1e858597b90fb8d9071
2020-10-26 20:27:52 -07:00
Willem Melching 004e903972 simplify settings a bit (#2384)
old-commit-hash: 118faa71e55bb708b239fd54485a467643c18fd4
2020-10-22 17:11:52 +02:00
Willem Melching 2aaf09da79 improve Qt ui smoothess (#2380)
* improve ui smoothess

* fix backlight filter

* More default brightness

* write backlight in real background thread

* immediate repaint
old-commit-hash: b73e8ab324716f2e622df205b440201e57cd2a1b
2020-10-21 15:15:21 +02: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
George Hotz 16e2bbf536 std::async has nodiscard in 20.04, i believe that function won't return until the async completes
old-commit-hash: cb3ade51efa4131bf78f96c052e49b2a414b83e5
2020-10-20 15:38:07 -07:00
Willem Melching 65b397460e UI: get video aspect ratio from camera intrinsics (#2351)
* UI: get video aspect ratio from camera intrinsics

* cleanup video rect definition

* const zoom

* Match zoom level

* Fix comment

* Zoom out more
old-commit-hash: 9d0b89394429e6ee9f8f9c2849dd19b11fb9b0ce
2020-10-20 12:14:19 +02:00
Adeeb Shihadeh 05fca52169 explicitly turn display on in updater (#2362)
* explicitly turn display on

* clean that up

* update binary

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2fd5ab782bdfbee15d66bd8b155a05246d90d31c
2020-10-19 20:16:27 -07:00
Adeeb Shihadeh 53b2a39a90 tap to wake with accelerometer (#2267)
old-commit-hash: 9e03c2e9293eadd6853382b1b5c7e853ddc808f1
2020-10-18 19:03:41 -07:00
Adeeb Shihadeh a0845d8301 NEOS 15 (#2084)
* doze

* need a new apk

* new build

* neos 15 part 1

* new build to re-enable display control for ft8716

* production image
old-commit-hash: f9a5f71bf50fb3d8b2032203c571011569784406
2020-10-18 17:03:28 -07:00
Willem Melching 651d4ce031 --std=c++17 (#2330)
* switch to c++17

* more 17

* 1z

* use std::clamp

* Fix types in clamp

* bump submodules

* bump laika

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb1e8ca73aeb1f0066a23b0933706ae5
2020-10-17 13:33:12 -07:00
Willem Melching 0db7cd7571 tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
old-commit-hash: 442f2543e326b6dccdadb71a89fe36e4b6587f92
2020-10-15 20:48:05 +02:00
Willem Melching 498ecbdf3c Params refactor, simplified (#2300)
* always c++

* Create C++ params class

* get works

* tests hang now

* passes tests

* cleanup string formatting

* handle interrupt in blocking read

* fix memory leak

* remove unused constructor

* Use delete_db_value directly

* Rename put -> write_db_value

* filename cleanup

* no semicolons in cython

* Update common/SConscript

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

* add std::string version of delete_db_value

* This is handled

* cleanup encoding

* Add clear method to clear all

* add persistent params

* fix android build

* Should be called clear_all

* only import params when needed

* set params path on manager import

* recusrively create directories

* Fix function order

* cleanup mkdirp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2e182e5c574ea1468678b5fd8d0597e34ed5898d
2020-10-13 16:23:23 +02:00
Willem Melching a331861873 Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

* Add include for usleep
old-commit-hash: a4ccfcffe8247bf467bddfb0e6c5b3eb8851e21a
2020-10-13 16:01:07 +02:00
Adeeb Shihadeh 51d59aefca UI cleanup + startup time improvement (#2295)
old-commit-hash: 671183184bd177d697285d397bce10c51afd5395
2020-10-08 19:29:56 -07:00
Adeeb Shihadeh f27bdfbee7 UI: refactor light sensor (#2129)
* refactor light thread

* qcom low power mode

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 06cb2f963ddd3a1e25d592ac4d2d25358e69c94a
2020-10-03 20:58:46 -07:00
Adeeb Shihadeh be29b8f236 tici light sensor (#2238)
old-commit-hash: 2490be762ddb4c05d3ed8fc9c865138115d24666
2020-09-28 14:49:07 -07:00
Willem Melching f275d06ff2 tici: fix ui rotation (#2222)
* fix rotation using wayland

* put back intrinsic matrix fix
old-commit-hash: 53e71f44ceec181e40c4cbd3f14a403798bca7bb
2020-09-23 23:16:55 +02:00
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: 0e5a5efffce15cc507d8104aceb58c132689d7c8
2020-09-21 18:17:35 +02:00
Comma Device 4f622a1dbb Fix makefiles after read_file() helper
old-commit-hash: 4be0e23ca588f110056917863a725f164996ca49
2020-09-21 08:03:36 -07:00
Adeeb Shihadeh 864f32ce1b quick lgtm fixes
old-commit-hash: 4acc82604d456dc5280e62f946f3fdd1e0ce5810
2020-09-19 12:53:36 -07:00
Adeeb Shihadeh 98135d4482 tici: set volume at 90%
old-commit-hash: 002e0065cb7a57b03eddc346ef6986de1be0532c
2020-09-18 14:54:12 -07:00
ZwX1616 e8cbf6cf11 revert tici ui rotate
old-commit-hash: b3fad609d9886e55696529290acdc70263e59fff
2020-09-18 14:12:03 -07:00
Willem Melching 3ff821f18c tici: offroad ui powersave (#2191)
* ui powersaving

* Lower brightness even more
old-commit-hash: 9330070bb5b4afd424841cd97c3c9bf5cb8d33fb
2020-09-17 15:50:09 +02:00
Comma Device c6cfa6e30f fix tici ui lag
old-commit-hash: 45c58f561aa516da55b4e6371c32e675193ee164
2020-09-17 00:13:54 +00:00
Willem Melching 47b5b1516d tici: fix ui rotation (#2184)
* rotate ui 90 degree

* put rotation behind ifdef

* Also ifdef that

* ui intrinsic_matrix

* that doesnt do anything

* Keep parent on non qcom
old-commit-hash: 9bbb1663033776918a33846879bad0b22c33d2fc
2020-09-16 17:46:08 +02:00