Dean Lee
4e9e751ba5
paint.cc: fix indentation & code style ( #20302 )
4 years ago
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>
4 years ago
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
4 years ago
Dean Lee
ae72d34a42
move intrinsic_matrix into modeldata.h, removed duplicate definitions. ( #20051 )
...
* move intrinsic_matrix into modeldata.h
* def __cplusplus
4 years ago
Dean Lee
8db3eea6c5
UI: rename frontview to driver_view ( #20228 )
4 years ago
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>
4 years ago
HaraldSchafer
ab0456c0eb
fixup ui ( #20049 )
...
* fixup ui
* works
* new formate
* more cleanup
* works I assume we need a library somehow
* more readable
* fix lead sign
* put on road
* transformations lib
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Dean Lee
c2aefab553
UI: remove struct track_vertices_data ( #20018 )
...
* remove struct track_vertices_data
* space
* rebase master
4 years ago
Dean Lee
40919a6f48
removed margin paramater from car_space_to_full_frame ( #20017 )
4 years ago
Dean Lee
a7fe4560a6
move global SET_SPEED_NA to function that uses it ( #20026 )
4 years ago
Adeeb Shihadeh
000bd226aa
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
4 years ago
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>
4 years ago
Comma Device
75d0802804
match driverView with new model
4 years ago
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>
4 years ago
Dean Lee
8b4731ffc8
UI: cleanup draw_alerts condition ( #19875 )
4 years ago
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>
4 years ago
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>
4 years ago
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
4 years ago
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
4 years ago
Adeeb Shihadeh
40830a216b
fix camera malfunction alert ( #19757 )
...
* fix camera alert malfunction
* remove old alert
4 years ago
Dean Lee
cef469cbed
convert glutil.c to gltuil.cc & add class GLShader ( #19720 )
...
* c++ glutil
* function getUniformLocation
* rebase master
4 years ago
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>
4 years ago
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
4 years ago
Dean Lee
4231b5b329
refactor ui_draw_driver_view ( #19597 )
...
* refactor ui_draw_driver_view
* continue simplify
* fix gap
4 years ago
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
4 years ago
ffhspa
dd9d8bba89
remove double semicolon in paint.cc ( #19684 )
4 years ago
Dean Lee
93cd4eae55
paint.cc car_space_to_full_frame less paramaters ( #19676 )
4 years ago
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 901893966e
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 9816e01e6f
Author: deanlee <deanlee3@gmail.com>
Date: Wed Jan 6 04:02:08 2021 +0000
fix lead_d
commit 6fa500dbce
Author: deanlee <deanlee3@gmail.com>
Date: Tue Jan 5 13:18:20 2021 +0000
populate model data in update_socket
commit e25db7e28c
Author: deanlee <deanlee3@gmail.com>
Date: Tue Jan 5 12:59:13 2021 +0000
update model in function
commit 0834a3ffe7
Author: deanlee <deanlee3@gmail.com>
Date: Tue Jan 5 12:50:21 2021 +0000
continue
commit 95b08679c2
Author: Willem Melching <willem.melching@gmail.com>
Date: Tue Jan 5 13:26:34 2021 +0100
Update selfdrive/ui/paint.cc
commit 0eef065ae4
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 955ad9b03a
Author: deanlee <deanlee3@gmail.com>
Date: Thu Dec 31 04:45:31 2020 +0000
refactor model related functions
4 years ago
Willem Melching
d8e864e33d
dont show speed below zero
4 years ago
Dean Lee
d0ba19fedb
fix problem with drawing path ( #19670 )
4 years ago
Dean Lee
20918d82b6
cleanup draw alert ( #19655 )
...
* cleanup
* use Rect
* Revert "use Rect"
This reverts commit 96d04339a0
.
* remove None from static map
4 years ago
Dean Lee
30c1164287
refactor ui_draw_image ( #19656 )
4 years ago
Dean Lee
f232f86a73
simplify ui_draw_vision_maxspeed ( #19642 )
...
if is_curise_set
4 years ago
Dean Lee
ba4fb80e92
UI: simplify ui_draw_vision_speed ( #19594 )
...
* simplify draw_vision_speed
* use std::nearbyint
* use std::to_string
4 years ago
Dean Lee
37a43124c0
max_idx should be initialized as -1 ( #19625 )
4 years ago
Dean Lee
0c4e2fadc8
UI:shorten variable name ( #19633 )
4 years ago
Dean Lee
39bd8c7ce6
ui_draw_chevron: simplify calc size ( #19616 )
4 years ago
Mayfield
5864f566df
add start_time parameter to unlogger ( #19573 )
...
* add start_time parameter to unlogger
* fix ui crash
* fix ui build
4 years ago
Adeeb Shihadeh
a36632cc39
offroad home styling and cleanup
4 years ago
Dean Lee
1ee8287705
cleanup camera malfunction alert ( #2751 )
...
* cleanup alert
* move ui_draw_vision_alert out of ui_draw_vision
4 years ago
Willem Melching
93cc7335fc
paint.cc: lower y offset
4 years ago
Willem Melching
11fb6efba2
add optional margin to car_space_to_full_frame check
4 years ago
Willem Melching
bbc289b671
paint.cc: fix y offset
4 years ago
Dean Lee
232cb25683
small cleanup ( #2715 )
4 years ago
grekiki
3e466aa528
UI style improvements with improved keyboard ( #2710 )
...
* fix spaces and make spacebar dynamically sized
* some spaces and a comment
* more spaces
* const
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
fcb3ed727b
set y offset to zero for now
4 years ago
Willem Melching
35baefa72e
Add y offset to video ( #2694 )
...
* add y offset to video
* Also reduce zoom
4 years ago
George Hotz
6159906e5f
remove ui sidebar hint ( #2662 )
...
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
b9c14c92a7
no gl inside nvg frame
4 years ago
Harald Schafer
d409dabedd
sometimes never goes into the loop
5 years ago