ZwX1616
d0726d1f7d
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 >
old-commit-hash: 88430f12f426ada4691de93e0193ab1873df4eb4
2021-01-19 15:11:15 -08:00
Willem Melching
ffeee5c91b
qt ui: sync fps with camera
...
old-commit-hash: 978d0c8964fb3cc0c3c1a9241b6c4bb1fdbad5c9
2021-01-19 14:56:56 +01:00
Willem Melching
749b4ab508
visionipc connect, make sure opengl context is current
...
old-commit-hash: b67fed87baaa093dd6b82ec9b9f3733d745865f6
2021-01-19 14:49:40 +01:00
Willem Melching
b71615fc54
update pairing text
...
old-commit-hash: 7948653605a2085015bfe599da79d15babba1be7
2021-01-19 13:47:36 +01:00
Willem Melching
8e13e2976e
start timer only after ui init
...
old-commit-hash: 06b974512af7e5d5a0bead72f3c4ebe32f9d1815
2021-01-19 12:43:39 +01:00
Adeeb Shihadeh
8227270769
no vehicle was more confusing
...
old-commit-hash: 56dfb3de2dd23f56b96524aeec7fcd6943b10116
2021-01-18 15:51:32 -08:00
grekiki
0c141e45aa
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 >
old-commit-hash: 10bd761cd6fb59f8113f88cc4dc764fbc4f5abf2
2021-01-18 12:07:55 +01:00
Dean Lee
f0fce01b85
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 >
old-commit-hash: 1796f63211abfde48164bfebfcc99d35d8288e6d
2021-01-16 13:50:06 -08:00
Dean Lee
b6e19ce5ab
Remove spaces ( #19779 )
...
old-commit-hash: d7fad16c20d79120d83feeee2c18f46efa3f4279
2021-01-15 22:17:58 -08:00
Dean Lee
c3043515d8
text.c->text.cc ( #19734 )
...
old-commit-hash: c5c9b6f7123e573f6c3171c5d5843fcfc8af5dcd
2021-01-15 13:42:26 -08:00
Dean Lee
dc8a64227e
qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android ( #19765 )
...
old-commit-hash: 7a6ec83a367e1dd2bfc8dba7c17261b3cfbbe2b1
2021-01-15 11:57:26 +01:00
Dean Lee
3c9142a709
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
old-commit-hash: cc2d62a938349c2caea68510434f25aa368414d4
2021-01-15 11:41:20 +01:00
Dean Lee
a6e3036aea
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
old-commit-hash: fcfba42c59126281204e1bd5bbd27d8164eca2e4
2021-01-15 11:15:48 +01:00
Dean Lee
bc232d4346
ui.cc: rename update related functions ( #19761 )
...
* rename functions
* Trigger Build
old-commit-hash: 64d224b16c42ae7fb38e2b418304f35e72bef043
2021-01-15 11:14:18 +01:00
Adeeb Shihadeh
781accd0b3
fix camera malfunction alert ( #19757 )
...
* fix camera alert malfunction
* remove old alert
old-commit-hash: 40830a216b70e4a68c0cb1d3495dde2f8e1eaa8b
2021-01-14 16:03:16 -08:00
Dean Lee
ad696592ec
remove read_param from ui_init ( #19745 )
...
old-commit-hash: cf2585adf671c5777b8cedcf44d04614e0161845
2021-01-13 09:53:45 -08:00
Dean Lee
74dc639515
convert glutil.c to gltuil.cc & add class GLShader ( #19720 )
...
* c++ glutil
* function getUniformLocation
* rebase master
old-commit-hash: cef469cbed1d835e70e952d06e1fd8b4eabca450
2021-01-12 15:43:34 +01:00
Dean Lee
4b15f8a12d
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 >
old-commit-hash: b3107e153cca4aa98b623b80fdd13b8446f76d1c
2021-01-11 15:52:58 +01:00
Willem Melching
ab5eef3a12
ui.cc: fix driverview ( #19723 )
...
old-commit-hash: 92257e4dfff411cd981ef7bad964531813d3f37f
2021-01-11 14:51:21 +01:00
Dean Lee
aac74810a7
ui.cc: cleanup includes ( #19704 )
...
old-commit-hash: ccff89386150bd177a7ed6c85a41d2b9ee622068
2021-01-10 21:48:49 -08:00
Dean Lee
4c1919f41e
merge utilpp.h into util.h ( #19710 )
...
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Dean Lee
38443793da
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
old-commit-hash: de309b156d2e9b9c2b771ccdd84915708f64338a
2021-01-08 12:05:07 -08:00
Dean Lee
e8936467f5
refactor ui_draw_driver_view ( #19597 )
...
* refactor ui_draw_driver_view
* continue simplify
* fix gap
old-commit-hash: 4231b5b329ee778facc3139ab0f2137d5efca576
2021-01-08 11:30:37 -08:00
Willem Melching
3f950832b9
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
old-commit-hash: fb496c692a9ebdcda15069a8d4eb95734b587d68
2021-01-08 14:54:25 +01:00
Comma Device
cac209e172
qt reset and setup improvements
...
old-commit-hash: b8aa250efb1392c79fbdb218c49d4346ab493dce
2021-01-08 01:36:29 +00:00
Dean Lee
bc9074254e
sidebar.cc remove prefix for static functions ( #19683 )
...
old-commit-hash: 61cf81502e4b2c04099fc42628b5239455f1e2a6
2021-01-07 11:16:47 +01:00
ffhspa
4ef1b8910f
remove double semicolon in paint.cc ( #19684 )
...
old-commit-hash: dd9d8bba89c59164738e840609540ffc951d55e9
2021-01-07 11:15:59 +01:00
Dean Lee
4a137a3f41
remove double semicolons ( #19681 )
...
old-commit-hash: fd4ddb769a7b321ada3105ad2511c54ab08b1f63
2021-01-06 20:23:33 -08:00
Dean Lee
af4b8bb307
paint.cc car_space_to_full_frame less paramaters ( #19676 )
...
old-commit-hash: 93cd4eae55a788eb7530fe369db65c7fffc5d931
2021-01-06 16:34:29 +01:00
Willem Melching
1cc43f8d7d
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 c0703a57
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
old-commit-hash: 37cb4bec631197f6b369bf89f94786772bd05336
2021-01-06 11:34:52 +01:00
Willem Melching
b56d44bbd2
dont show speed below zero
...
old-commit-hash: d8e864e33d08c60e9740d7433067382128962f92
2021-01-06 11:25:37 +01:00
Dean Lee
ff7d537c96
fix problem with drawing path ( #19670 )
...
old-commit-hash: d0ba19fedb897443248ad0f096dc6ffdca983872
2021-01-06 11:19:10 +01:00
Dean Lee
5e557ed96d
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
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00
Dean Lee
4765ba9478
cleanup draw alert ( #19655 )
...
* cleanup
* use Rect
* Revert "use Rect"
This reverts commit 96d04339a0adc7f7f543828ae8ff8101dd9f5f60.
* remove None from static map
old-commit-hash: 20918d82b689c09c33a0fecef102fc91a65b00d5
2021-01-05 13:27:15 +01:00
Dean Lee
041db30454
refactor ui_draw_image ( #19656 )
...
old-commit-hash: 30c1164287d9ebb7ac3fb9e967d4e1d01bbb23f5
2021-01-05 13:01:32 +01:00
Dean Lee
9864456618
simplify ui_draw_vision_maxspeed ( #19642 )
...
if is_curise_set
old-commit-hash: f232f86a73dd635c2601f8da83a494100d2c3039
2021-01-04 15:55:04 +01:00
Dean Lee
9d0efaaccf
UI: simplify ui_draw_vision_speed ( #19594 )
...
* simplify draw_vision_speed
* use std::nearbyint
* use std::to_string
old-commit-hash: ba4fb80e92145d7c31003b17a758f6a9c6a633c9
2021-01-04 14:18:38 +01:00
Dean Lee
5e30b23c58
UI: reducing CPU usage from 13% to 4% when offroad ( #19575 )
...
* Accurately control the UI frequency
* helper function sleep_for
old-commit-hash: a4afc03a732ab6438a72bda22911bf4532e9e4cd
2021-01-04 13:59:23 +01:00
Dean Lee
23a52deb5b
max_idx should be initialized as -1 ( #19625 )
...
old-commit-hash: 37a43124c0c10909e7906c3fd0c124f31f11dd87
2021-01-04 11:29:31 +01:00
Willem Melching
40a74fe136
round close button
...
old-commit-hash: 493937d2d90ba6ed6512975e9821b777ffe1a65c
2021-01-04 11:28:28 +01:00
Willem Melching
17280ef5ef
offroad alerts: put back reboot button
...
old-commit-hash: 0cf3da17be09b5cb5f3d4ea2aee5e7d927be9281
2021-01-04 11:24:06 +01:00
Willem Melching
9407ec9cfb
Nicer blue/red colors offroad alert button
...
old-commit-hash: 250f285894d2dfb1cd4315e92ee4e7b3c98cfb39
2021-01-04 10:33:43 +01:00
Dean Lee
0ac1e659da
UI:shorten variable name ( #19633 )
...
old-commit-hash: 0c4e2fadc82feee5a83ca03f05a6246b544d86ea
2021-01-03 12:25:24 -08:00
Comma Device
fb17404dda
square looks better
...
old-commit-hash: 3e34b67715db285dcdb9a87113efbfd55cd4fa36
2020-12-30 18:08:18 +00:00
Adeeb Shihadeh
e580b248b6
tici: fix backlight timer interval
...
old-commit-hash: 0300eb3849609de4e8975b4c939e79ba9605b11a
2020-12-30 01:19:49 -08:00
Dean Lee
e1723d7238
ui_draw_chevron: simplify calc size ( #19616 )
...
old-commit-hash: 39bd8c7ce6e7e7f63fd4873cabf164e4c028009c
2020-12-29 14:08:49 -08:00
Adeeb Shihadeh
7dd876805f
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 >
old-commit-hash: ce48d3c91eb66924ca20c0bcbd14a74e88207997
2020-12-25 01:02:47 -08:00
Adeeb Shihadeh
6e03a66575
make wifi settings a bit nicer
...
old-commit-hash: b7adecdf59dc520f2ff9f11ae806ab7cbe17fe1c
2020-12-24 14:31:13 -08: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
Dean Lee
f8f6545143
simpilify ui_read_params ( #19585 )
...
* simpilify ui_read_params
* apply review
old-commit-hash: e3ffa91d177d5e9ec8c9735a489b582e71a96e74
2020-12-24 03:01:53 -08:00