Commit Graph

129 Commits

Author SHA1 Message Date
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
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 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
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