Commit Graph

308 Commits

Author SHA1 Message Date
Dean Lee c22d6e315d UI: mv sidebar_collapsed&viz_rect to struct UIState (#19782)
* mv sidebar_collapsed&viz_rect to struct UIState

* rebase master

* rebase master

* rebase master

* revert that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-01 16:10:15 -08:00
grekiki cc1308c7df Multithreaded ssh activation (#19988)
No more lag on SSH enable/disable
2021-02-01 19:46:03 +01:00
Dean Lee f54ecc2779 UI: function update_status (#19679)
* update_status

* reformat switch

* set s->started in update_status

* space

* rebase master
2021-01-30 18:21:54 -08:00
Adeeb Shihadeh 4a03d1cb64 blue bg in training guide 2021-01-29 13:41:48 -08:00
Adeeb Shihadeh d3756bc475 cleanup training guide 2021-01-29 13:21:10 -08:00
grekiki c5762456e1 Qt training guide (#19953)
* initial commit

* background kind of works

* checkpoint

* temp

* add images

* all works

* remove some files

* rename

* enable restart

* remove first

* lfs try1

* refactor labels

* remove nonneeded code

* centered

* more centering

* don't hardcode the training version

Co-authored-by: Comma Device <device@comma.ai>
2021-01-29 17:54:00 +01:00
grekiki 82b894c645 Wifi correct ip (#19961) 2021-01-29 16:22:35 +01:00
Comma Device 75d0802804 match driverView with new model 2021-01-28 13:44:12 -08:00
Dean Lee a48ab6130c keyboard.cc: get value by reference in ranged based loop (#19950) 2021-01-28 11:35:38 -08:00
Dean Lee 6bd9e5ca6a draw lead indicator in 3D (#19793)
* lead indicator in 3D

* more

* Update selfdrive/ui/ui.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-28 15:53:24 +01:00
Dean Lee 6583206ed4 convert framebuffer to class (#19800)
* class FrameBuffer

* fix build error

* remove bootlog
2021-01-28 14:47:05 +01:00
Adeeb Shihadeh b2bc9dcc1e fix qt UI after #19762 2021-01-27 23:00:14 -08:00
Dean Lee af4ac70cb8 UI: handle alert in function update_alert (#19762)
* handle alert in function update_alert

* use sm->updated

* typo
2021-01-27 14:16:51 -08:00
Comma Device e0b38c0278 wifi connecting is not hidden any more 2021-01-27 12:56:11 +00:00
grekiki ea642aa0cb minor wifi improvements (#19938)
Co-authored-by: Comma Device <device@comma.ai>
2021-01-27 13:43:28 +01:00
grekiki 7408569c1b Add Github SSH keys (#19879) 2021-01-27 12:07:17 +01:00
Willem Melching b80b33a941 qt: default token validity 1 hour 2021-01-25 16:14:19 +01:00
Adeeb Shihadeh 406ceb2ab2 fix qt onboarding text color 2021-01-22 13:34:27 -08:00
Dean Lee 8b4731ffc8 UI: cleanup draw_alerts condition (#19875) 2021-01-22 12:16:45 -08:00
Dean Lee 9efc499ed9 ui: remove satelliteCount (#19878) 2021-01-22 15:40:53 +01:00
Willem Melching c9aa9b0178 qt ui: remove line between poweroff/reboot 2021-01-22 14:38:16 +01:00
grekiki 621a6c16a4 qt ui: don't refresh wifi widget if it is not visible (#19876)
Co-authored-by: Comma Device <device@comma.ai>
2021-01-22 14:36:42 +01:00
Willem Melching cafb19d375 qt ui: fix segfault if networkmanager is not running 2021-01-22 14:34:49 +01:00
Willem Melching e11b677e01 qt ui: slow frame warning 2021-01-22 14:26:35 +01:00
grekiki 2eb81aa1d3 Qt parents3 (#19870)
Not just parents, we also made the UI look nicer.
2021-01-22 13:51:26 +01:00
Adeeb Shihadeh e54db636f7 move Qr code lib to phonelibs (#19871) 2021-01-21 11:17:21 -08:00
grekiki 24356b4a1e Hotspot password (#19854)
Now there is a possibility of changing a tethering password. The WiFi UI was also modified, so it should look nicer now.
2021-01-21 13:00:03 +01:00
grekiki efe8c54a2e fix LGTM issues (#19868)
Co-authored-by: Comma Device <device@comma.ai>
2021-01-21 12:02:29 +01:00
Adeeb Shihadeh 1d98ec8ef9 remove sidebar gps text, we have alerts for this 2021-01-19 15:55:09 -08:00
ZwX1616 88430f12f4 face icon reflects DM policy (#19842)
* send that

* draw icon based on whether active

* Update selfdrive/monitoring/dmonitoringd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-19 15:11:15 -08:00
Willem Melching 978d0c8964 qt ui: sync fps with camera 2021-01-19 14:56:56 +01:00
Willem Melching b67fed87ba visionipc connect, make sure opengl context is current 2021-01-19 14:49:40 +01:00
Willem Melching 7948653605 update pairing text 2021-01-19 13:47:36 +01:00
Willem Melching 06b974512a start timer only after ui init 2021-01-19 12:43:39 +01:00
Adeeb Shihadeh 56dfb3de2d no vehicle was more confusing 2021-01-18 15:51:32 -08:00
grekiki 10bd761cd6 Qt offroad: pairing (#19675)
* kind of works now

* QR code is now on screen

* testing is needed

* works, waiting for server update

* reduce diff

* refactoring part1

* refactor part2

* refactor part3

* works on PC

* fix build, annoying bug though...

* git is annoying

* more classes, still crashes after a while

* better style

* clearer qr code

* less code and test new ssh key

* no more AA

* rename and collect garbage

* no pairing widget without the internet connection

* No network connection

* more logs

* refactor the network calls

* no more leaking

* works

* cleanup

* spaces

* works on device

* fix merge

* don't run if screen is off

* always initialized

* stats updating, not running without scrren

* formatting

* nicer QR code

* ensure the registration

* no qr code if no IMEI or no HWSerial

* all works

* refactor

* better networking

* all functionality seems to work

* small cleanup

* get serial once

* Small cleanup

* No internet text

* Don't crash if private key not found

* no network should say so

* new qr code every 30 minutes

* 20FPS sidebar

* more responsive networking and QR

* more logs

* no log spam

* fix merge

* no running onroad

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-18 12:07:55 +01:00
Dean Lee 1796f63211 use std::map for images (#19768)
* use std::map for fonts&images

* rebase master

* use std::string

* remove cmp_str

* Update selfdrive/ui/paint.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-16 13:50:06 -08:00
Dean Lee d7fad16c20 Remove spaces (#19779) 2021-01-15 22:17:58 -08:00
Dean Lee c5c9b6f712 text.c->text.cc (#19734) 2021-01-15 13:42:26 -08:00
Dean Lee 7a6ec83a36 qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android (#19765) 2021-01-15 11:57:26 +01:00
Dean Lee cc2d62a938 UI: refactor transform (#19658)
* refactor transform

* always draw chevron if there is a lead

* remove nvgSave&nvgRestore

* keep one point outside the screen

* zoom chevron

* more size

* still use margin

* still use margin
2021-01-15 11:41:20 +01:00
Dean Lee fcfba42c59 Use Rect as the parameter of draw_rect (#19696)
* Use rect as the parameter of draw_rect

* add function ui_fill_rect

* simplify

* rebase master

* apply review
2021-01-15 11:15:48 +01:00
Dean Lee 64d224b16c ui.cc: rename update related functions (#19761)
* rename functions

* Trigger Build
2021-01-15 11:14:18 +01:00
Adeeb Shihadeh 40830a216b fix camera malfunction alert (#19757)
* fix camera alert malfunction

* remove old alert
2021-01-14 16:03:16 -08:00
Dean Lee cf2585adf6 remove read_param from ui_init (#19745) 2021-01-13 09:53:45 -08:00
Dean Lee cef469cbed convert glutil.c to gltuil.cc & add class GLShader (#19720)
* c++ glutil

* function getUniformLocation

* rebase master
2021-01-12 15:43:34 +01:00
Dean Lee b3107e153c Refactor image texture stuff into class (#19719)
* Refactor image texture stuff into class

* cleanup

* Update selfdrive/common/visionimg.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-11 15:52:58 +01:00
Willem Melching 92257e4dff ui.cc: fix driverview (#19723) 2021-01-11 14:51:21 +01:00
Dean Lee ccff893861 ui.cc: cleanup includes (#19704) 2021-01-10 21:48:49 -08:00
Dean Lee 595830135b merge utilpp.h into util.h (#19710) 2021-01-10 14:57:32 -08:00