Commit Graph

194 Commits

Author SHA1 Message Date
Adeeb Shihadeh c01e2df2c0 setup rest of installers 2020-12-01 11:36:18 -08:00
grekiki a5132e44f9 small UI improvements (#2669)
* small UI improvements

* style improvements

* code style

* remove the padding

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-12-01 11:12:54 -08:00
grekiki 744a3317e3 Offroad alerts (#2664)
We now have a working offroad alerts
2020-12-01 16:39:14 +01:00
Adeeb Shihadeh b3ba65d6a4 fix setup installer download 2020-11-30 23:32:08 -08:00
Adeeb Shihadeh 8de4adac61 qt setup keyboard (#2663)
* add keyboard for custom url

* it works

* cleanup
2020-11-30 23:21:40 -08:00
Adeeb Shihadeh 6a2678aae7 add wifi to setup (#2604)
* add wifi to setup

* wifi looks better

* move widgets

* this looks ok

* small fixups

* fix relase tests
2020-11-30 22:35:17 -08:00
Adeeb Shihadeh d00f1692b7 move that to two init 2020-11-30 17:02:24 -08:00
Adeeb Shihadeh 7560e67b3d add user agent to installer 2020-11-30 16:57:41 -08:00
Adeeb Shihadeh ff91d30b16 more margin 2020-11-30 16:55:56 -08:00
George Hotz 6159906e5f remove ui sidebar hint (#2662)
Co-authored-by: Comma Device <device@comma.ai>
2020-11-30 16:22:42 -08:00
Adeeb Shihadeh b9c14c92a7 no gl inside nvg frame 2020-11-27 14:25:52 -08:00
Adeeb Shihadeh f66fac1a0b quick toggles cleanup 2020-11-27 09:33:52 -08:00
grekiki 61884d2c50 Qt ui: improve toggle buttons (#2639)
* works, but is still a bit ugly

* works

* looks much better now

* fix compile error

* reduce diff

* write to params

* cleanup
2020-11-27 17:55:07 +01:00
grekiki c52e3dfb08 wider keyboard (#2629)
The keyboard now signals when it wants to open. By subscribing to this signal we can close the sidebar to make the keyboard larger. We also increase the key size to make it easier to type on.
2020-11-26 16:22:14 +01:00
grekiki 54afae7147 pad vlayout (#2626) 2020-11-26 11:52:27 +01:00
grekiki 7d37793434 Wifi improvements (#2618)
We now detect wrong passwrods and request the correct password from the user. We also write "CONNECTING" if we are actively connecting to a network.

For a tiny usability upgrade, we now display "Refreshing networks" text, while loading the wifi networks available around us.
2020-11-25 20:32:52 +01:00
grekiki 3abc3aadcb didn't build on device 2020-11-25 14:27:28 +01:00
Adeeb Shihadeh c8ab38a8a8 small onboarding cleanup 2020-11-25 00:01:05 -08:00
Adeeb Shihadeh 394dc66a19 stacked widget 2020-11-24 23:49:20 -08:00
Adeeb Shihadeh 696c3cd58c new and improved text window 2020-11-24 23:30:36 -08:00
Adeeb Shihadeh efc30f4a83 Qt cleanup (#2622)
* scale

* contain weston hack in one file

* rest

* no show

* missed one
2020-11-24 22:07:03 -08:00
Willem Melching 97f9277ba6 Qt ui: make sure ui_state is initialzed to 0 2020-11-24 13:59:26 +01:00
Willem Melching 99ea3ef178 Qt ui: fix onboarding 2020-11-24 13:53:15 +01:00
Willem Melching 899902de8f qt ui: dont resize window on start 2020-11-24 13:36:56 +01:00
grekiki f6ed146e8f Make next and prev buttons (#2598)
* Make next and prev buttons

* cleanup

* reduce diff

* Revert previous commit

* change scaling
2020-11-23 22:56:56 +01:00
Comma Device eadead80d8 show os version in qt settings 2020-11-22 23:57:33 +00:00
Adeeb Shihadeh 770ec8ad20 Qt setup improvements (#2591) 2020-11-22 15:37:13 -08:00
grekiki b147d91afc new wifi strength icon (#2601)
* make wifi usable in apartments with lots of access points

* remove unused thing I added a few days ago...

* use a different image

* simpl. and correct scaling
2020-11-22 22:46:04 +01:00
grekiki 3a7fcc62fb Fix Wifi UI not working on PC (#2597) 2020-11-22 00:10:00 +01:00
Adeeb Shihadeh 45eccc842a Qt wifi cleanup (#2594)
* cleanup wifi

* spacing

* cleanup

* little more

* wifi manager

* typo
2020-11-20 22:24:07 -08:00
Adeeb Shihadeh 9725128331 fix small terms (#2593)
Co-authored-by: Comma Device <device@comma.ai>
2020-11-20 22:03:01 -08:00
grekiki 119cb1e0ff Improve on-screen keyboard (#2587) 2020-11-20 13:29:22 -08:00
grekiki 7478b21e2e Qt keyboard (#2381)
* add keyboard

* put widget in settings

* port a keyboard

* forgot git add

* reduce diff

* submodules

* fix macOS and reduce diff

* cleanup

* little more cleanup

* test input

* not working yet

* compiles now

* add stuff

* add keyboard on panel 3

* works now

* small layout improvements

* cleanup

* styling

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-20 16:29:29 +01:00
Willem Melching 7f3bf2093f Qt ui: turn off screen after inactivity (#2583)
* qt ui: turn off screen after inactivity

* handle touch events globally

* whitespace
2020-11-20 13:21:18 +01:00
Willem Melching 1e48b2458e Qt ui: only stop repeat sounds (#2577) 2020-11-19 21:04:14 +01:00
Willem Melching f93bca98ae 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>
2020-11-19 16:51:48 +01:00
Harald Schafer d409dabedd sometimes never goes into the loop 2020-11-17 10:19:12 -08:00
Adeeb Shihadeh 62fd824553 fix spinner and text diff 2020-11-14 18:19:06 -08:00
Adeeb Shihadeh 12bddb985d nicer spinner 2020-11-14 17:54:05 -08:00
Adeeb Shihadeh ff6dac7dd3 fix setup for new weston build 2020-11-14 15:50:11 -08:00
Adeeb Shihadeh eae04fc67e improve onboarding (#2537) 2020-11-12 21:37:02 -08:00
Adeeb Shihadeh 5c0bfe9f10 larch64 text window 2020-11-12 19:57:46 -08:00
Adeeb Shihadeh 51cc8a6b84 larch64 spinner 2020-11-12 19:56:55 -08:00
robbederks c5c875bad9 Tici Focal (#2459)
* fix i2c

* fix libi2c (again?)

* qt 5.12.8

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

* setup screens

* cleanupg

* url input

* installer

* setup

* installer
2020-11-12 11:31:02 -08:00
Dean Lee 91f79acac3 remove std::clamp (#2530) 2020-11-12 11:30:04 -08:00
HaraldSchafer 08846b5c0e 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>
2020-11-11 20:31:46 -08:00
Willem Melching 8896b7a791 paint.cc: fix drawing lane lines on sidebar 2020-11-11 02:12:55 -08:00
Adeeb Shihadeh 6c86afee16 Qt spinner (#2494)
* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
2020-11-06 18:44:04 -08:00
Adeeb Shihadeh 68ba1649b9 Qt text window (#2489)
* qt text window

* auto size

* real text

* this is cleaner

* fix android build

* exit on pc

* tici fixes
2020-11-06 12:05:24 -08:00