Commit Graph

554 Commits

Author SHA1 Message Date
Dean Lee 8d2dc5b18c MainWindow: use static QSet for filter_events (#20924)
old-commit-hash: 2c73cac0a2
2021-05-16 21:21:46 -07:00
iejMac f786b284d5 Replay: seeking functionality (#20763)
old-commit-hash: f0d0b82b8d
2021-05-15 17:06:30 -07:00
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: 533bc30c2e
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh f1d4b920bc fix reverse gear alert text cutoff (#20888)
* fix reverse gear alert text cutoff

* offset removed
old-commit-hash: ff16145f4d
2021-05-12 18:18:06 -07:00
Adeeb Shihadeh 4f29e600a7 prime ad: comma connect -> explorer
old-commit-hash: ace5ee9d46
2021-05-11 14:50:48 -07:00
Adeeb Shihadeh 8002b848b6 offroad alert for unregistered devices (#20870)
* offroad alert for unregistered devices

* update tests

* add param

* fix stretch
old-commit-hash: b93ccc465d
2021-05-11 03:18:45 -07:00
Adeeb Shihadeh 7410c4a2d7 onroad UI optimizations (#20871)
* onroad UI optimizations

* remove that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5f5bbd64f2
2021-05-10 23:19:32 -07:00
Adeeb Shihadeh 494860c201 remove offset from full screen onroad alerts
old-commit-hash: 38741b2e08
2021-05-10 22:39:28 -07:00
Adeeb Shihadeh eb79a7214e match nvg onroad alerts (#20854)
old-commit-hash: e06f9828ea
2021-05-10 22:09:36 -07:00
grekiki d05c5df569 Qt ui: show open panel on startup (#20859)
* should work

* spaces
old-commit-hash: 95e8c75ebd
2021-05-08 22:24:22 -07:00
Dean Lee cd50782410 OffroadAlert: add stretch at the bottom (#20856)
old-commit-hash: b0e2374635
2021-05-08 22:21:00 -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: 7222d0f20d
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh 7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e6268
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: ab319d4f54
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: 3a95d3ccaa
2021-05-06 12:29:30 +02:00
Willem Melching f8608d2e7b Revert "Fixes after ifdef clenaup (#20842)"
This reverts commit 59c31bac9a340f120ff40ed541ee377c31e7e85e.

old-commit-hash: d34647bbf7
2021-05-06 12:29:19 +02:00
Willem Melching 3cc799ecd8 Fixes after ifdef clenaup (#20842)
old-commit-hash: fd7c2b4adf
2021-05-06 11:58:35 +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: 757d2923d2
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh 5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f907219957
2021-05-04 23:23:00 -07:00
Dean Lee 03f823a3fc SshControl: use HttpRequest to get ssh keys (#20784)
* use HttpRequest

* remove eventloop

* rebase master

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 00aa20f55a
2021-05-04 22:28:41 -07:00
Dean Lee 175bdf8773 Sidebar: update text and color in one place (#20777)
* do not set text&color in ctor

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c405442820
2021-05-04 11:30:50 -07:00
Adeeb Shihadeh 2fb8b563eb UI: fast startup (#20781)
* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed3b6bd90c
2021-05-04 10:05:23 -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: b9f9e2dfda
2021-05-03 21:38:22 -07:00
Adeeb Shihadeh 532d19427c bump cereal
old-commit-hash: 8a280fbb8e
2021-05-03 20:47:11 -07:00
Dean Lee 9159291a09 ui/replay: file extensions to .cc and .h (#20805)
old-commit-hash: bdf4a94cd0
2021-05-03 20:22:32 -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: 81491dc57f
2021-05-03 11:53:11 +02:00
Dean Lee 7d042b746f Fix build errors in qt/setup (#20795)
* fix build error

* remove line

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4bb3619a0e
2021-05-02 16:50:14 -07:00
Comma Device eda1bcaef9 configure SSL globally on NEOS
old-commit-hash: 23faedd25e
2021-05-02 16:29:02 -07:00
Dean Lee 309a873e7d Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
old-commit-hash: 4781598e12
2021-05-01 14:12:35 -07:00
Dean Lee f3cc81721f CommaApi: passing arguments by reference (#20786)
* passing arguments by reference

* remove unused networkAccessManager

* ref
old-commit-hash: f01c3c649b
2021-05-01 14:11:35 -07:00
Dean Lee 5957d8cc05 Replay: make response a const reference in parseResponse (#20787)
old-commit-hash: 228308b719
2021-05-01 09:50:32 -07:00
Dean Lee ee9280d9d3 HttpRequest: passing references in signals (#20782)
old-commit-hash: ad57cd3759
2021-04-30 23:58:12 -07:00
Adeeb Shihadeh 8b38c339f6 trigger sidebar status widget repaints on color change
old-commit-hash: 1c89825d86
2021-04-30 14:01:49 -07:00
Comma Device ef4a479880 spinner is a qwidget
old-commit-hash: 065e2bc7d0
2021-04-30 11:11:05 -07:00
Adeeb Shihadeh 16688e2170 small UI cleanup
old-commit-hash: ebceadf089
2021-04-29 15:21:40 -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: db9319405b
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh b263a8d934 UI: refactor GLWindow (#20764)
old-commit-hash: 140e6248e2
2021-04-29 11:18:59 -07:00
iejMac 86a1616de9 Replay: fix crashing from trimSegment
old-commit-hash: aeafb8e00c
2021-04-27 23:32:42 -07:00
ZwX1616 6c04391277 C2 dim displays: remap in shader to avoid screen deadzone (#20757)
old-commit-hash: 2c0b0f927f
2021-04-27 17:41:59 -07:00
iejMac d991de5d30 CommaApi: use auth.py for request authentication when on PC (#20755)
* CommaApi: use auth.py for request authentication when on PC

* whitespace

* only when replay

* nicer way to do this

* tabs

* use bool

* tabs

* tabs

* prefer this to just be state

* initialize with stdString

* tabs

* include order

* fix order + ifdef fix

* whitespace'
old-commit-hash: a337097b5e
2021-04-26 17:25:22 -07:00
iejMac 0af28bba44 Replay: print timestamp every 5 seconds (#20752)
* Replay: print timestamp every 5 seconds

* include abs

* rename last_print
old-commit-hash: a759c12c1b
2021-04-26 14:37:34 -07:00
iejMac 0b4949057c print error when HttpRequest fails
old-commit-hash: a8e231f8b1
2021-04-26 10:16:57 -07:00
Adeeb Shihadeh 21071dfa9b only build replay if tools/ exists
old-commit-hash: 01cb8d401a
2021-04-24 09:59:10 -07:00
iejMac ff2138d905 qt replay (#20602)
* initial commit, works

* remove nui

* working again

* visionipc

* cleanup

* cleanup

* moving VisionIpcServer to Unlogger class

* works

* tab cleanup

* headless mode

* headless mode works

* working headless mode

* gitignore update

* small unlogger refactor

* refactor param in UIState

* works, very slow, hacks

* cleanup

* works

* cleanup

* cleanup

* unused

* works for whole route

* nicer

* a little nicer

* different threshold

* maintains 1 segment window

* works with public api

* comments

* networkTimer works

* cleanup

* unified HttpRequest

* tabs

* tabs

* comments'

* gitignore

* gitignore

* only on PC

* same line else

* no changes in home.cc

* scons

* update scons

* works

* revert mainc.c

* revert home

* else

* just api + problem with api send

* works

* include cleanup

* general json fail

* whitespace

* remove active

* adding request repeater

* removing comments

* tabs

* update comment

* cereal

* fix

* trailing new lines

* grammar

* if whitespace

* indentation

* Update selfdrive/ui/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/ui/qt/request_repeater.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* works

* sort by dir

* no blockSignal

* replay is now QOBject

* cant take const char

* rename inner it

* get width and height from frame readeR

* resolve TODO

* seek in next pr

* spaces

* ui stuff

* fix CI

* remove comments

* no repalce

* trim segment fix

* remove seek from stream

* no cache key

* final changes'

* fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 19d962cdf3
2021-04-24 00:59:09 -07:00
iejMac fbe27337ca UI: close dialogs on settings close (#20541)
* this works

* fix

* fix

* fix

* blacklist

* style

* tabs

* tabs

* temporary

* hideEvent

* fix

* changes

* dont need this

* works

* no signal

* Merge branch 'master' of github.com:commaai/openpilot into ui_close_after_timeout

* works

* cleanup

* little more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0fe155b7c3
2021-04-23 21:24:53 -07:00
Shane Smiskol f7d726a44c infinite orange alert sound (#20723)
old-commit-hash: 858f7c0715
2021-04-21 14:37:27 -07:00
Adeeb Shihadeh 8c72eac7fb set display power + brightness in spinner and text window (#20719)
* set display power + brightness in spinner and text window

* update aarch64

* update larch

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 31dd0cbd42
2021-04-20 20:45:46 -07:00
Adeeb Shihadeh 6d04f375e0 upload raw on tici
old-commit-hash: a3df0e9827
2021-04-15 21:36:09 -07:00
Adeeb Shihadeh 5a7167aaaf GL spinner fix (#20684)
* GL spinner fix

* update larch spinner

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: aaa8d937f5
2021-04-15 00:49:34 -07:00
Adeeb Shihadeh e5be410cd5 lte toggle (#20683)
old-commit-hash: 2eac604993
2021-04-14 21:19:06 -07:00