Commit Graph

381 Commits

Author SHA1 Message Date
Dean Lee 8be2e07f4f Qt: use the AbstractControl for multiple types of controls (#20417)
* class ClickableLabel

* scrollable widget

* rename to controls.cc

* rename to AbstractControl

* cleanup

* remove useless stylesheets

* change button stylesheet

* cleanup

* better margin

* cleanup

cleanup

* remove bottom line from AbstractControl

* no scrolling for now

* add those back

* style

* clean up

* don't need a function for that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-21 23:53:56 -07:00
Adeeb Shihadeh ce5d93da44 remove redundant update available title 2021-03-21 21:06:34 -07:00
Dean Lee ddde7efb4b Qt: update developer page when it's visible (#20396)
* simplify&cleanup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-21 21:02:00 -07:00
Dean Lee 00dcc94ae6 cleanup ui_draw_vision_event (#20386) 2021-03-21 20:27:16 -07:00
Dean Lee d34e414a65 SettingsWindow: use list instead of map to preserve insertion order for sidebar items. (#20424)
* use a list instead of map to preserve insertion order

* unused signal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-21 19:08:12 -07:00
Comma Device 7954256a09 fix margin after setting DPI 2021-03-20 22:00:25 -07:00
iejMac 6a9afd8460 terms fixups (#20392)
* accept

* accept at end + env variables

* better

* testing some settings

* bottom margin

* nothing

* doesnt work

* don't need anymore

* clean up

* fix

* unused

* more prime widget cleanup

* Revert "more prime widget cleanup"

This reverts commit d44651ee8c501be61099dc4cd40fa0467bc315a3.

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-20 21:26:05 -07:00
Adeeb Shihadeh 0b16ed9dc9 Qt UI: offroad home touchups (#20416)
* brand

* fix overlap

* touchup prime widget

* more prime widget cleanup

* don't need background layout

* fix overlap again

* more prime

* looks pretty good

Co-authored-by: Comma Device <device@comma.ai>
2021-03-20 21:18:07 -07:00
Dean Lee c9ac15bb96 OffroadAlert: read alert keys in constructor (#20408) 2021-03-19 13:30:51 -07:00
Dean Lee bf3c7e6afa qt: faster training guide (#20407) 2021-03-19 13:07:59 -07:00
Adeeb Shihadeh b60cd8d0a0 record front lock (#20400)
* record front lock

* only if set

* add to internal installer

* move that

* change that bck

Co-authored-by: Comma Device <device@comma.ai>
2021-03-18 20:15:51 -07:00
Dean Lee 90da15778c QT: click outside of confirmation dialog to dismiss (#20394) 2021-03-18 17:39:38 -07:00
Adeeb Shihadeh 4097fe150a fix reboot button in offroad alerts 2021-03-15 20:14:19 -07:00
Adeeb Shihadeh 7ba5399c29 Qt UI: simplify terms (#20349)
* remove web stuff from onboarding

* fix up scrolling

* fix up style

* fix tici

Co-authored-by: Comma Device <device@comma.ai>
2021-03-15 15:06:00 -07:00
Willem Melching 8e14e17020 Improve screen brightness by also using camera gain (#20357) 2021-03-15 20:07:49 +01:00
Dean Lee fb5873bb6d ui.cc: fix update_lead segfault (#20351)
* fix update_lead crash

* Check for empty list in update_lead

* use rcv_frame

* update 2 leads in update_leads

* use std::optional
2021-03-15 13:53:22 +01:00
Dean Lee 980f8774ba ui/update_model: cleanup (#20313)
* cleanup

* fix ident
2021-03-11 16:59:40 +01:00
Willem Melching 1f24b1eb0f ui.cc: lane lines have different x values 2021-03-11 15:39:37 +01:00
Adeeb Shihadeh d45550c424 UI HW Abstraction layer (#20301)
* start cpp hw abstraction layer

* cleanup

* only set brightness on change

* confirmation dialogs

* add to release files

* fix tici brightness

* using percentage now

Co-authored-by: Comma Device <device@comma.ai>
2021-03-10 22:51:50 -08:00
Dean Lee 4e9e751ba5 paint.cc: fix indentation & code style (#20302) 2021-03-10 20:52:01 -08:00
Willem Melching 026a580ee3 Use exposure for screen brightness (#20290)
* use camera to set screen brightness

* leave default

* lower default

* fix offroad

* increase offroad brightness

* ifdef ifndef

* fix qcomgp
2021-03-09 17:58:26 +01:00
Adeeb Shihadeh 614808f384 qt_sound: lower volume 2021-03-08 22:10:48 -08:00
Willem Melching a94ba4fb8b Add watchdog check to manager (#20277)
* this should work but doesnt

* Only offroad

* works

* make it work offorad

* reduce diff

* cleanup

* need util

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-08 19:17:46 -08:00
Dean Lee cdc46ffbab ui/update_line_data: use max_idx as paramater instead of max_distance (#20256) 2021-03-08 10:16:46 +01:00
Dean Lee 90310042cb ui: remove unused roadCameraState from SubMaster (#20245) 2021-03-04 20:18:54 -08:00
Adeeb Shihadeh 0fc98355d0 UI touchups (#20243)
* do that automatically

* move that

* catch failures in factory reset

Co-authored-by: Comma Device <device@comma.ai>
2021-03-04 17:12:56 -08:00
Willem Melching 1b5c4d9089 ui: check sensor list size 2021-03-04 14:40:16 +01:00
Willem Melching 0d02e85873 set brightness, catch exceptions 2021-03-04 13:19:30 +01:00
Dean Lee dd603a89f6 UI: Move the variables need to be updated by socket to UIScene (#19783)
* move variables into UIScene

* rebase master

* rebase master

* rebase master

* rebase master

* rebase master

* rebase master

* fix build error

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-03-03 17:40:50 +01:00
Dean Lee a1b2bdb844 move function calib_frame_to_full_frame to ui.cc (#20230)
* move calib_frame_to_full_frame to ui.cc

* cleaup includes
2021-03-03 13:10:17 +01:00
Dean Lee ae72d34a42 move intrinsic_matrix into modeldata.h, removed duplicate definitions. (#20051)
* move intrinsic_matrix into modeldata.h

* def __cplusplus
2021-03-03 11:47:48 +01:00
Dean Lee 8db3eea6c5 UI: rename frontview to driver_view (#20228) 2021-03-03 11:38:41 +01:00
Comma Device f96e8f2f17 fix typo 2021-03-02 20:59:46 -08:00
Adeeb Shihadeh 60a9443b61 fix SSL errors in Qt UI on NEOS (#20225)
Co-authored-by: Comma Device <device@comma.ai>
2021-03-02 20:46:46 -08:00
ZwX1616 2a9e775bb9 tici driverview support (#20223)
* add tici support and clean up

* not exactly 4/3

* keep c2 style

Co-authored-by: Comma Device <device@comma.ai>
2021-03-02 19:42:45 -08:00
Adeeb Shihadeh 4c84a33d01 fix rotation on input dialog 2021-03-02 17:14:32 -08:00
Adeeb Shihadeh 07ab081a42 oneplus cleanup (#20200)
* start cleanup

* cleanup camerad

* remove unused

* little more

Co-authored-by: Comma Device <device@comma.ai>
2021-03-01 17:14:03 -08:00
Willem Melching a0987cb098 Qt ui: fix minimum pass length 2021-03-01 13:55:48 +01:00
Adeeb Shihadeh d8418f2abe qt confirmation dialogs (#20202)
* confirmation dialog widget

* looks pretty good

* fix qcom2

Co-authored-by: Comma Device <device@comma.ai>
2021-02-28 20:44:00 -08:00
Adeeb Shihadeh ec8b21c261 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>
2021-02-28 18:10:50 -08:00
grekiki 069532eb18 Qt standalone wifi chooser (#20141)
* qt wifiManager remove qDebugs

* wifi widget

* 50% done

* Update SConscript

* backgrounds work

* backgrounds work

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-02-26 14:21:06 +01:00
grekiki c60cc0310c Qt-UI Cleanup SSH and Tethering password (#20169)
Co-authored-by: Comma Device <device@comma.ai>
2021-02-26 14:08:26 +01:00
Adeeb Shihadeh c7dd344f2e neos networking (#20165)
* neos networking

* tethering

* cleanup

* stretch

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-02-25 22:19:53 -08:00
grekiki 4c99d83474 Qt-UI fix ssh username (#20159)
* Fix SSH username. Squased Gregor's commits.

* revert keyboard size

* reduce diff

* fix build

* whitespace

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-02-25 18:27:00 +01:00
grekiki a53c361bd4 Qt-UI add driver monitoring view in offroad (#20148)
* should work, need to test onroad

* reduce diff

* Update home.cc

Co-authored-by: Comma Device <device@comma.ai>
2021-02-25 16:14:25 +01:00
Adeeb Shihadeh 1c369a9009 Qt on NEOS (#20153)
* qt on neos

* cleanup

* check arch

* fix pc

* fix mac

* base libs

Co-authored-by: Comma Device <device@comma.ai>
2021-02-25 01:03:37 -08:00
Adeeb Shihadeh 1ef7d4a4c8 Revert "fix some refactor commits that weren't tested (#20140)"
This reverts commit 9e29d5621c.
2021-02-24 12:09:19 -08:00
grekiki 9e29d5621c fix some refactor commits that weren't tested (#20140)
Co-authored-by: Comma Device <device@comma.ai>
2021-02-24 17:52:37 +01:00
grekiki 04cbed3989 Qt-UI fix escaping all wifi access points (#20147)
* fix wifi escaping

* less code

Co-authored-by: Comma Device <device@comma.ai>
2021-02-24 15:40:34 +01:00
grekiki b805200194 Qt-UI Close settings when screen turns off (#20117) 2021-02-23 14:40:56 +01:00