Commit Graph

280 Commits

Author SHA1 Message Date
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
Dean Lee de309b156d Refactor alert blinking (#19583)
* add function get_alert_alpha()

* continue simplify

* reset alpha to 1.0 if blink_rate is 0

* review

* sine wave

* rebase master

* use time

* use cos
2021-01-08 12:05:07 -08:00
Dean Lee 4231b5b329 refactor ui_draw_driver_view (#19597)
* refactor ui_draw_driver_view

* continue simplify

* fix gap
2021-01-08 11:30:37 -08:00
Willem Melching fb496c692a VisionIPC 2.0 (#19641)
* Squashed vipc

* Update release files

* Remove else

* add visionipc to release files

* use poller in vipc receive

* opencl framework instead of lib on macos

* Fix camera webcam

* Fix opencl on mac in ui

* more webcam fixes

* typo in ui sconsfile

* Use cur_yuv_buf

* visionbuf c++ class

* Camera qcom was still using visionbuf_allocate

* Turn loggerd back on

* fix snapshot

* No build needed

* update test camerad

* no more release callback

* make encoder c++

* Revert "no more release callback"

This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.

* fix exit handlers

* No need to check errno

* move release callback call

* s/VIPCBufExtra/VisionIpcBufExtra/g

* use non blocking connect

* ui use non blocking connect

* Lower condition variable wait time

* Snapshot cleanup

* bump cereal

* bump cereal
2021-01-08 14:54:25 +01:00
Comma Device b8aa250efb qt reset and setup improvements 2021-01-08 01:36:29 +00:00
Dean Lee 61cf81502e sidebar.cc remove prefix for static functions (#19683) 2021-01-07 11:16:47 +01:00
ffhspa dd9d8bba89 remove double semicolon in paint.cc (#19684) 2021-01-07 11:15:59 +01:00
Dean Lee fd4ddb769a remove double semicolons (#19681) 2021-01-06 20:23:33 -08:00
Dean Lee 93cd4eae55 paint.cc car_space_to_full_frame less paramaters (#19676) 2021-01-06 16:34:29 +01:00
Willem Melching 37cb4bec63 UI: refactor model related functions (#19657)
Squashed commit of the following:

commit 7d7fb15e4cdd0e47fa38f949f79581dc611db015
Author: Willem Melching <willem.melching@gmail.com>
Date:   Wed Jan 6 11:31:09 2021 +0100

    no extern

commit 901893966e3f908435bceb8777253dfa916a3d91
Merge: 9816e01e d8e864e3
Author: Willem Melching <willem.melching@gmail.com>
Date:   Wed Jan 6 11:27:29 2021 +0100

    Merge branch 'master' into refactor_model_draw

commit 9816e01e6ff0284521fa18b07ec15b3900577687
Author: deanlee <deanlee3@gmail.com>
Date:   Wed Jan 6 04:02:08 2021 +0000

    fix lead_d

commit 6fa500dbce26544cc3fdeb4d9b0d2d654382a40b
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 13:18:20 2021 +0000

    populate model data in update_socket

commit e25db7e28c1b543a04c3e837aa44431c42dbb5b2
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 12:59:13 2021 +0000

    update model in function

commit 0834a3ffe7eaa080671f13c32dd6475ae5392d5b
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 12:50:21 2021 +0000

    continue

commit 95b08679c2593eb0770a68b3cf1a59f1fb3b74f4
Author: Willem Melching <willem.melching@gmail.com>
Date:   Tue Jan 5 13:26:34 2021 +0100

    Update selfdrive/ui/paint.cc

commit 0eef065ae4f96c2ee5d97b4ccdfdbf0ae4945385
Author: Dean Lee <deanlee3@gmail.com>
Date:   Tue Jan 5 20:11:01 2021 +0800

    Update selfdrive/ui/paint.cc

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

commit 955ad9b03a176174b86b28d5bb6f48d6e2a09281
Author: deanlee <deanlee3@gmail.com>
Date:   Thu Dec 31 04:45:31 2020 +0000

    refactor model related functions
2021-01-06 11:34:52 +01:00
Willem Melching d8e864e33d dont show speed below zero 2021-01-06 11:25:37 +01:00
Dean Lee d0ba19fedb fix problem with drawing path (#19670) 2021-01-06 11:19:10 +01:00
Dean Lee 86fe2d1697 common exit handler (#19661)
* common signal handle

* fix typo

* rename to ExitHandler

* remove include signal.h

* remove include csignal

* rename variable exit to v

* rebase master
2021-01-05 20:19:53 -08:00
Dean Lee 20918d82b6 cleanup draw alert (#19655)
* cleanup

* use Rect

* Revert "use Rect"

This reverts commit 96d04339a0adc7f7f543828ae8ff8101dd9f5f60.

* remove None from static map
2021-01-05 13:27:15 +01:00
Dean Lee 30c1164287 refactor ui_draw_image (#19656) 2021-01-05 13:01:32 +01:00
Dean Lee f232f86a73 simplify ui_draw_vision_maxspeed (#19642)
if is_curise_set
2021-01-04 15:55:04 +01:00
Dean Lee ba4fb80e92 UI: simplify ui_draw_vision_speed (#19594)
* simplify draw_vision_speed

* use std::nearbyint

* use std::to_string
2021-01-04 14:18:38 +01:00
Dean Lee a4afc03a73 UI: reducing CPU usage from 13% to 4% when offroad (#19575)
* Accurately control the UI frequency

* helper function sleep_for
2021-01-04 13:59:23 +01:00
Dean Lee 37a43124c0 max_idx should be initialized as -1 (#19625) 2021-01-04 11:29:31 +01:00
Willem Melching 493937d2d9 round close button 2021-01-04 11:28:28 +01:00
Willem Melching 0cf3da17be offroad alerts: put back reboot button 2021-01-04 11:24:06 +01:00
Willem Melching 250f285894 Nicer blue/red colors offroad alert button 2021-01-04 10:33:43 +01:00
Dean Lee 0c4e2fadc8 UI:shorten variable name (#19633) 2021-01-03 12:25:24 -08:00
Comma Device 3e34b67715 square looks better 2020-12-30 18:08:18 +00:00
Adeeb Shihadeh 0300eb3849 tici: fix backlight timer interval 2020-12-30 01:19:49 -08:00
Dean Lee 39bd8c7ce6 ui_draw_chevron: simplify calc size (#19616) 2020-12-29 14:08:49 -08:00
Adeeb Shihadeh ce48d3c91e offroad home style (#19593)
* make drive stats look nicer

* offroad alerts style

* rest of alerts

* move that

* fix up colors

Co-authored-by: Comma Device <device@comma.ai>
2020-12-25 01:02:47 -08:00
Adeeb Shihadeh b7adecdf59 make wifi settings a bit nicer 2020-12-24 14:31:13 -08:00
Adeeb Shihadeh 550b5e422f qt settings style (#19588)
* dark mode

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
2020-12-24 14:10:43 -08:00