Dean Lee
ebe3a39909
UI: remove duplicate capnp readers ( #20855 )
...
* refactor submaster
* rebase master
* CAPNP best pratice
* zero initialize
* vwp_w has not been initialized before UIState()
* no static
* rebase master
* Minimize refactoring
* cleanup
* remove gpsOk
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 533bc30c2e4ecac5e022f2ba4f3919842dfa0a1a
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh
eb79a7214e
match nvg onroad alerts ( #20854 )
...
old-commit-hash: e06f9828eaf93fcbd9b0cdfbebc54b4197565fc5
2021-05-10 22:09:36 -07:00
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
7b8f164793
match nvg sidebar ( #20847 )
...
old-commit-hash: e1a58e62688190ab7a6db0b518a5ba77cbd0902c
2021-05-07 15:12:29 -07:00
Willem Melching
78bf4f5867
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com >
old-commit-hash: ab319d4f54a53e1a0aa1c2c0d94d56a9acef8362
2021-05-06 14:39:05 +02:00
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaae7168073410cd7d392a9564d9d45ba
2021-05-06 12:29:30 +02:00
Dean Lee
e0282ced49
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
old-commit-hash: 757d2923d2bfcda620b252e21a348ac3f87f3a63
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh
5d82a760db
Qt onroad alerts ( #20776 )
...
old-commit-hash: f9072199571742f9e349990bb58540401a863f67
2021-05-04 23:23:00 -07:00
Adeeb Shihadeh
201e0777aa
fix double DM sounds ( #20811 )
...
* fix double DM sounds
* debug script
* bool
* cleanup
* inf
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: b9f9e2dfdac2a5a95be376b7622337dcfdf2b020
2021-05-03 21:38:22 -07:00
Dean Lee
9a827fea20
c++ cleanup: standardize file extensions to .cc and .h ( #20800 )
...
* c++ cleanup: standardize file extensions to .cc and .h
* cleanup files_common
old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00
Dean Lee
309a873e7d
Qt: use new signal slot syntax ( #20783 )
...
* new signal slot syntax
continue
* continue
old-commit-hash: 4781598e1228b3f8707afa7237864f4cb4df9d71
2021-05-01 14:12:35 -07:00
Adeeb Shihadeh
f5e6a0c9a0
Qt Sidebar ( #20775 )
...
* revive #19877
* looks like a sidebar
* more like a sidebar
* cleanup
* fix qcom2
* style
* that's the sidebar
* more space
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: db9319405b5a650627a45de78a81afaed4ae2128
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh
b263a8d934
UI: refactor GLWindow ( #20764 )
...
old-commit-hash: 140e6248e26cfa370ccdb13fda8edc4fae0321ca
2021-04-29 11:18:59 -07:00
iejMac
79b165ba7e
ui update_sockets refactor ( #20625 )
...
* separate updates
* update
* no if
* no return
* fix
old-commit-hash: e6d210d5264a9bc6f3ebd459043262327887776c
2021-04-12 16:08:38 -07:00
Willem Melching
00b19b6351
ecam toggle ( #20597 )
...
* use ecam in ui
* needs reboot
* use in modeld
* typo
* effective FL is longer in center
* normalize zoom by focal dist
* read param before init
* make 2x as wide
* review comments
* more explicit
* fix camera offset
Co-authored-by: ZwX1616 <zwx1616@gmail.com >
old-commit-hash: 1fc7bcca43e9ef75d95ae8689e3b1cd8c4f8041e
2021-04-07 19:12:35 +02:00
Dean Lee
405df8b165
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
2021-03-30 12:54:59 +02:00
Dean Lee
8c09067b27
faster driverview start ( #20507 )
...
old-commit-hash: 32c4cf00c2d6bac059516cc44494808cf5a408ca
2021-03-30 11:51:18 +02:00
Adeeb Shihadeh
30f036680b
Qt touchups ( #20465 )
...
* reduce minimum size
* clean that up
* consistent
* feels pretty good
* cleanup
* less laggy toggle
* openpilot
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 7f56991b41c40a765125635919a91bca55815bd6
2021-03-24 21:18:12 -07:00
HaraldSchafer
eae1fa481c
New KL model + laneless toggle ( #20454 )
...
* New model: 0bf38240-6b55-42b0-bcfb-da08ff5cd0b9/650
* laneless baby
* hardcode model difference for now
* kale toggle
* kale emoji
* sensible description
* make clear it is not just for ui
* emojis dont work yet
* 9671a8fe-539f-4a04-a163-54571df21139/650
* new model
* only read param on rising edge of ignition
* update toggle text
* fix that
* update refs
Co-authored-by: mitchell <mitchellgoffpc@gmail.com >
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
old-commit-hash: 7ee79c99236f749d02a6779b006ee1ab187e0612
2021-03-24 01:10:31 -07:00
Willem Melching
a8f562d8c3
Improve screen brightness by also using camera gain ( #20357 )
...
old-commit-hash: 8e14e17020d5cd55ab6f6f6178769ccb86c5bf80
2021-03-15 20:07:49 +01:00
Dean Lee
6a9fe9d0c5
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
old-commit-hash: fb5873bb6d00b4f625e9ee0cd1767fe8805b2476
2021-03-15 13:53:22 +01:00
Dean Lee
3c98506939
ui/update_model: cleanup ( #20313 )
...
* cleanup
* fix ident
old-commit-hash: 980f8774ba1107ded67702d2b4b1a3e066945c67
2021-03-11 16:59:40 +01:00
Willem Melching
4ddc18145b
ui.cc: lane lines have different x values
...
old-commit-hash: 1f24b1eb0f6c6b671d79744ec18168de81f46164
2021-03-11 15:39:37 +01:00
Adeeb Shihadeh
1c930d1e9e
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 >
old-commit-hash: d45550c4246aa2ad12082767e68326bf4015bd75
2021-03-10 22:51:50 -08:00
Willem Melching
37db5ca9df
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
old-commit-hash: 026a580ee3919e38de000837ca2e47f3ee115a85
2021-03-09 17:58:26 +01:00
Dean Lee
43a8ac2b73
ui/update_line_data: use max_idx as paramater instead of max_distance ( #20256 )
...
old-commit-hash: cdc46ffbabf9fb9627a44ce8260ce4be7481f32f
2021-03-08 10:16:46 +01:00
Dean Lee
e64a35bbff
ui: remove unused roadCameraState from SubMaster ( #20245 )
...
old-commit-hash: 90310042cbfcc105604385439b5736de60174e02
2021-03-04 20:18:54 -08:00
Willem Melching
6ec00afa0f
ui: check sensor list size
...
old-commit-hash: 1b5c4d908947da2721167f60b43563dcb4844d1e
2021-03-04 14:40:16 +01:00
Dean Lee
0818f7166d
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 >
old-commit-hash: dd603a89f642ea73d2c9b0def94d228adf9d52df
2021-03-03 17:40:50 +01:00
Dean Lee
2c8696ddac
move function calib_frame_to_full_frame to ui.cc ( #20230 )
...
* move calib_frame_to_full_frame to ui.cc
* cleaup includes
old-commit-hash: a1b2bdb844432b7cf59de412c57e9ee7f27fa650
2021-03-03 13:10:17 +01:00
Dean Lee
4fd0fe80f0
UI: rename frontview to driver_view ( #20228 )
...
old-commit-hash: 8db3eea6c5e25516445bb8345fe13f0a2b7e6348
2021-03-03 11:38:41 +01:00
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Willem Melching
037d108627
ui: log visionipc receive timeout
...
old-commit-hash: 0a6d500a4a99572f2b1e81de891a46ab8f87e1bd
2021-02-16 17:16:08 +01:00
Adeeb Shihadeh
2950af53b5
use gpsOK flag from locationd
...
old-commit-hash: b3cf60cd0bf502b11a3fb6c24bd3ae2324198c2e
2021-02-09 19:31:30 -08:00
HaraldSchafer
8bb63abe4f
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 >
old-commit-hash: ab0456c0eb41090fd9292d8643975e93983ae85e
2021-02-09 17:23:46 -08:00
Willem Melching
c73523efc9
ui.cc: fix divide by zero
...
old-commit-hash: 2fc1104e8b0158b1dfe43b8788ab2313bb263b41
2021-02-09 16:31:54 +01:00
Dean Lee
0aa14e0b72
ui.cc: replace s->scene with scene ( #20045 )
...
old-commit-hash: 204add695267a45ebf883b9cfa8441912759b943
2021-02-09 11:42:11 +01:00
Dean Lee
99f19b5da6
UI: remove struct track_vertices_data ( #20018 )
...
* remove struct track_vertices_data
* space
* rebase master
old-commit-hash: c2aefab55349df15613675acec6b68c8377245f5
2021-02-08 12:06:14 +01:00
Dean Lee
766302fabe
removed margin paramater from car_space_to_full_frame ( #20017 )
...
old-commit-hash: 40919a6f484042fc486c5da7d30b2fcc1d778e60
2021-02-07 18:00:56 -08:00
Adeeb Shihadeh
434e5f0454
UI: make onroad/offroad transition more robust ( #20030 )
...
* make onroad/offroad transition more robust
* fix up driver view
* check other started
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 3dc45554d7709b277ac1f8d350391d780ea23a3d
2021-02-05 22:13:32 -08:00
Adeeb Shihadeh
9168fa6d93
show sat count in sidebar ( #20028 )
...
* show sat count in sidebar
* fix
* revert that
Co-authored-by: Comma Device <device@comma.ai >
old-commit-hash: 54b59783cb3ad0e3d8c3c59bfa723ba41e09352a
2021-02-05 14:15:02 -08:00
Adeeb Shihadeh
966945880b
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa9902da01e6010bf26762fca2c20df0
2021-02-03 19:57:30 -08:00
Dean Lee
58cf6b8a80
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 >
old-commit-hash: c22d6e315d532bd802fd8dcf62105a1fee35afa6
2021-02-01 16:10:15 -08:00
Dean Lee
ab859c30de
UI: function update_status ( #19679 )
...
* update_status
* reformat switch
* set s->started in update_status
* space
* rebase master
old-commit-hash: f54ecc277930b204d492c896f465cffbb0826aeb
2021-01-30 18:21:54 -08:00
Dean Lee
34952f246e
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 >
old-commit-hash: 6bd9e5ca6a67c73be68bbfd38a370f615ce6239a
2021-01-28 15:53:24 +01:00
Dean Lee
7a086b3f3d
convert framebuffer to class ( #19800 )
...
* class FrameBuffer
* fix build error
* remove bootlog
old-commit-hash: 6583206ed41c9277bb7509bcb66b7d5e058ea5fe
2021-01-28 14:47:05 +01:00
Adeeb Shihadeh
c221eff09c
fix qt UI after #19762
...
old-commit-hash: b2bc9dcc1eee885afff4c339c8a37ad5f80fb88c
2021-01-27 23:00:14 -08:00
Dean Lee
acc39a8c5f
UI: handle alert in function update_alert ( #19762 )
...
* handle alert in function update_alert
* use sm->updated
* typo
old-commit-hash: af4ac70cb823214aa02863a0b5d7202dc4bc9912
2021-01-27 14:16:51 -08:00
Dean Lee
f920e1cd33
ui: remove satelliteCount ( #19878 )
...
old-commit-hash: 9efc499ed9a7e72e17cabd76ca95bab57733c596
2021-01-22 15:40:53 +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