Commit Graph

45 Commits

Author SHA1 Message Date
Dean Lee 8d2dc5b18c MainWindow: use static QSet for filter_events (#20924)
old-commit-hash: 2c73cac0a230e57138e5e9cd75e1da76a211e97f
2021-05-16 21:21:46 -07:00
Dean Lee e333e4f189 Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh 7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e62688190ab7a6db0b518a5ba77cbd0902c
2021-05-07 15:12:29 -07:00
Adeeb Shihadeh 5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f9072199571742f9e349990bb58540401a863f67
2021-05-04 23:23:00 -07:00
Dean Lee 9a827fea20 c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00
Dean Lee 309a873e7d Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
old-commit-hash: 4781598e1228b3f8707afa7237864f4cb4df9d71
2021-05-01 14:12:35 -07:00
Adeeb Shihadeh b263a8d934 UI: refactor GLWindow (#20764)
old-commit-hash: 140e6248e26cfa370ccdb13fda8edc4fae0321ca
2021-04-29 11:18:59 -07:00
iejMac 4a3e73ddb5 disable buttons when onroad (#20475)
* disables reset calib

* works for all buttons

* naming convention + final works on PC

* stylesheets + works on manager.py

* fixing stylesheet

* add that backg

* no reviewing while onroad

* better disabled hint

* little cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d63dab950a102bc69cca515b6f3ab4ffd896b4fd
2021-03-28 23:32:09 -07:00
Adeeb Shihadeh 5ef648fe02 filter out touches while in android activity (#20515)
* filter touches while in android activity

* only check after launching activity

* move to hw abstraction layer

* little cleanup

* remove print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a2084c2a601ba138c41494420f8275295357981f
2021-03-28 03:53:03 -07:00
iejMac 5f96a3407b review training guide button (#20466)
* works

* move the param deletion

* clean that up

* Revert "move the param deletion"

This reverts commit 31d8a65f004e7bcf14d29465a9c9d6db03e9dee7.

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 806226820cb76c83a33dc0f83cc4d67e8c657226
2021-03-25 17:36:44 -07:00
Adeeb Shihadeh ae0756edc6 tici touch ups (#20434)
* tici touch ups

* trim

* less squish

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 61a0129fdcecc83a0248946ccc1073356075427f
2021-03-22 13:40:08 -07:00
Adeeb Shihadeh 7ac52e2374 qt fixups (#20171)
* no outline

* disable on qcom for now

* fix qt 5.12.8

* cleanup drive stats

* widgets cleanup

* ssl test

* revert that

* disable by default

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ec8b21c261b28d62dd84c2a6fa28bef09f5c8ed0
2021-02-28 18:10:50 -08:00
grekiki 1e74eb0547 Qt-UI Close settings when screen turns off (#20117)
old-commit-hash: b8052001942cad72b3095381ce6e8e719312e35a
2021-02-23 14:40:56 +01:00
grekiki 2b6237dd4c Qt ui: close settings on onroad transition (#20114)
* need to test

* works

* reduce diff

* refactor

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dab2e1298b62991e57123972a34167a3ce62de8a
2021-02-22 10:47:33 +01:00
Adeeb Shihadeh 4d2ccb3a79 qt settings style (#19588)
* dark mode

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
old-commit-hash: 550b5e422f5ee7f7ca23d569cbd58f78bfdda9c5
2020-12-24 14:10:43 -08:00
Adeeb Shihadeh 672d0d4727 move offroad alerts to home screen (#2681)
* move offroad alerts to home screen

* offroad aletrs work, but sidebar doesn't look nice

* fix sidebar

* looks better

* cleanup

* little bigger

Co-authored-by: grekiki <gregor1234567890@gmail.com>
old-commit-hash: 8320a153fb530f973669fa1aafa693a17d4ef035
2020-12-04 15:21:55 -08:00
Adeeb Shihadeh 86dd0f5df1 Qt offroad home screen (#2672)
* some cleanup first

* home sweet home

* basic home screen

* date

* fix touch

* fix mac

* hide when onroad

* box layout didn't do what i thought
old-commit-hash: fed642c4ed2fd668360bef480da8f0b7a8559916
2020-12-02 20:47:47 -08:00
grekiki e4b5b9a297 Offroad alerts (#2664)
We now have a working offroad alerts

old-commit-hash: 744a3317e3ab608fadc9b172dd16897b8bbdc55e
2020-12-01 16:39:14 +01:00
Adeeb Shihadeh fa147c5d6e add wifi to setup (#2604)
* add wifi to setup

* wifi looks better

* move widgets

* this looks ok

* small fixups

* fix relase tests
old-commit-hash: 6a2678aae7fa353617ec111bd46181cdc422e15b
2020-11-30 22:35:17 -08:00
Adeeb Shihadeh 12e6f7a607 Qt cleanup (#2622)
* scale

* contain weston hack in one file

* rest

* no show

* missed one
old-commit-hash: efc30f4a83953363d665290f99b91c7b52652cc2
2020-11-24 22:07:03 -08:00
Willem Melching 97fe386b3a Qt ui: fix onboarding
old-commit-hash: 99ea3ef17856ea426f158e2aea1f363e2f386409
2020-11-24 13:53:15 +01:00
Willem Melching 45e99acbb6 qt ui: dont resize window on start
old-commit-hash: 899902de8f592420f4caff0f8bcaeca4f8d536c0
2020-11-24 13:36:56 +01:00
grekiki 7d0eb0f3e7 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
old-commit-hash: b147d91afc185fc2a3d86be06cc3697524e04c0a
2020-11-22 22:46:04 +01:00
grekiki 4603a9b9d3 Fix Wifi UI not working on PC (#2597)
old-commit-hash: 3a7fcc62fb5bdadab0122625114d5b5e99a3e47e
2020-11-22 00:10:00 +01:00
Adeeb Shihadeh a2ee407c2b fix small terms (#2593)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9725128331cbb35b784c0e2828f1a228201329b6
2020-11-20 22:03:01 -08:00
grekiki 1795bb236d 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>
old-commit-hash: 7478b21e2e0ba8ea1764ae6194c82505667a00b9
2020-11-20 16:29:29 +01:00
Willem Melching d7ab2ec365 Qt ui: turn off screen after inactivity (#2583)
* qt ui: turn off screen after inactivity

* handle touch events globally

* whitespace
old-commit-hash: 7f3bf2093f8a1766743a37782bb5c0105e70e2f9
2020-11-20 13:21:18 +01:00
Adeeb Shihadeh 08e1e45753 improve onboarding (#2537)
old-commit-hash: eae04fc67e3a0185b0de9a54ddaff70469775645
2020-11-12 21:37:02 -08:00
Adeeb Shihadeh 2c712a9ea2 Qt onboarding (#2465)
* terms

* clean up

* style
old-commit-hash: 9d84a835d85896f959382a2cca9e7d531bca08ea
2020-10-31 17:07:04 -07:00
Adeeb Shihadeh 89c511b32b Qt offroad (#2451)
old-commit-hash: 06400af09f23525aa2c432e21a94ca774c01c1eb
2020-10-30 17:03:51 -07: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
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 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
Adeeb Shihadeh be29b8f236 tici light sensor (#2238)
old-commit-hash: 2490be762ddb4c05d3ed8fc9c865138115d24666
2020-09-28 14:49:07 -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
Adeeb Shihadeh 64b92f49da fix stretched UI on pc
old-commit-hash: 16f40e6ff3f19af9d6d9c68fafbf142f5eb61271
2020-09-14 19:07:14 -07:00
Dean Lee 2baf5c7356 UI: simplify layout calculation (#2131)
* add Rect struct

* simplify layout calculation by using viz_rect

* fix

* add whitespace

* use the correct value for vwp_w

* correct vwp_w again

* rebase

* dd
old-commit-hash: 8417be6f40a0b1ee92524da7c1bd4e114cd32674
2020-09-12 18:35:36 -07:00
Adeeb Shihadeh 0ae5e7403e QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: acd1bde496904fbc0d97f4d89e630358c4d11f7f
2020-09-09 19:04:28 +02:00
Adeeb Shihadeh c3f623e432 UI vision refactor (#2115)
* refactor vision

* don't show slow frame message when in preview mode

* change draws to uint32_t

* set vision_seen=false after destroy

* remove vision_connect_thread

* refactor ui_update

* seelp 30ms when vision is not connected

* remove should_swap

* call ui_update_sizes before ui_draw

* rebase

* start bigger UI refactor

* don't need the touch fd

* fix qt build

* more cleanup

* more responsive

* more refactor

* fix for pc

* poll for frames

* lower CPU usage

* cleanup

* no more zmq

* undo that

* cleanup speed limit

* fix sidebar severity for athena status

* not aarch64

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 848301b091af11e129ba6873f7d297d4890c562b
2020-09-03 16:32:55 -07:00
Willem Melching 9788cf1ed3 add more opengl info on startup to pc ui
old-commit-hash: 8880ec81f258b06cda134f59a7e96d7e542b9a69
2020-09-03 14:31:31 +02:00
Willem Melching 16ef2f6a1b pc ui: print opengl version on startup
old-commit-hash: 92de562ed91594d20f10d3b9a30d499c801baeff
2020-09-02 15:46:39 +02:00
Willem Melching 473fb11d34 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e115c514521c7705112bd0cb2e4bf865b536501a
2020-08-20 17:16:44 +02:00