Commit Graph

534 Commits

Author SHA1 Message Date
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: c4054428207c60fe2e96103554692ac7f7dcf968
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: ed3b6bd90cb882b543bfaa680c4f09f356439b65
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: b9f9e2dfdac2a5a95be376b7622337dcfdf2b020
2021-05-03 21:38:22 -07:00
Adeeb Shihadeh 532d19427c bump cereal
old-commit-hash: 8a280fbb8eb433fbfe0fc43254c9cbdaceedbab6
2021-05-03 20:47:11 -07:00
Dean Lee 9159291a09 ui/replay: file extensions to .cc and .h (#20805)
old-commit-hash: bdf4a94cd03746e498d21d8224e625135632b1c3
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: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
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: 4bb3619a0ec8d4b76698d7b86e0f224495a6f1f1
2021-05-02 16:50:14 -07:00
Comma Device eda1bcaef9 configure SSL globally on NEOS
old-commit-hash: 23faedd25eb6895c86bb890fdbf4f48889ecf4c3
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: 4781598e1228b3f8707afa7237864f4cb4df9d71
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: f01c3c649b07b7aefe9917506d094cb44927d689
2021-05-01 14:11:35 -07:00
Dean Lee 5957d8cc05 Replay: make response a const reference in parseResponse (#20787)
old-commit-hash: 228308b719a5e1fb24ce912eeaa13eaf2db0a22e
2021-05-01 09:50:32 -07:00
Dean Lee ee9280d9d3 HttpRequest: passing references in signals (#20782)
old-commit-hash: ad57cd37595919c84c7c8315222a1141d10993fa
2021-04-30 23:58:12 -07:00
Adeeb Shihadeh 8b38c339f6 trigger sidebar status widget repaints on color change
old-commit-hash: 1c89825d8607e912e974dd4609957f32674c8806
2021-04-30 14:01:49 -07:00
Comma Device ef4a479880 spinner is a qwidget
old-commit-hash: 065e2bc7d0d0e3f3e356b4f1147538c4f6417280
2021-04-30 11:11:05 -07:00
Adeeb Shihadeh 16688e2170 small UI cleanup
old-commit-hash: ebceadf08905a40f7e019c6b680111ec2ee787ef
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: 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 86a1616de9 Replay: fix crashing from trimSegment
old-commit-hash: aeafb8e00c0003f5148781070d4c2743234e5119
2021-04-27 23:32:42 -07:00
ZwX1616 6c04391277 C2 dim displays: remap in shader to avoid screen deadzone (#20757)
old-commit-hash: 2c0b0f927fc517f728b6f35feded278e4f8152ce
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: a337097b5ee515560e9f1a804b997753767d3c9a
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: a759c12c1bce473788b9321da5a49a92b2f624fa
2021-04-26 14:37:34 -07:00
iejMac 0b4949057c print error when HttpRequest fails
old-commit-hash: a8e231f8b1805f4b2f9b6692d9c3d0c2c6728087
2021-04-26 10:16:57 -07:00
Adeeb Shihadeh 21071dfa9b only build replay if tools/ exists
old-commit-hash: 01cb8d401a340462bebf788119ca9bb18b5d8093
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: 19d962cdf37b80523deba6518057f2e860f65fee
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: 0fe155b7c30e9db4bd08b61d8e7e325ec58ac24a
2021-04-23 21:24:53 -07:00
Shane Smiskol f7d726a44c infinite orange alert sound (#20723)
old-commit-hash: 858f7c0715092161b94fcb00cf8501a4f2541fe3
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: 31dd0cbd427dcf069e4677a39817d7f14df4a7ab
2021-04-20 20:45:46 -07:00
Adeeb Shihadeh 6d04f375e0 upload raw on tici
old-commit-hash: a3df0e98273a93fc460f5ac699e3cb77edfecf62
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: aaa8d937f504e4240444454a32b85de6977bf8b6
2021-04-15 00:49:34 -07:00
Adeeb Shihadeh e5be410cd5 lte toggle (#20683)
old-commit-hash: 2eac604993530fab8e10d9d546bcbb7fe0c0374c
2021-04-14 21:19:06 -07:00
Adeeb Shihadeh d1d828ad1e UI: fix initial toggle state after #20670
old-commit-hash: a60effc1123254472b16bcd6ef5fbb03a2e4a5f7
2021-04-14 21:02:34 -07:00
iejMac 5dddcac027 UI: Reset settings state when hiding panels (#20670)
* git stat

* first panel and button reset

* progress

* toggles parent + list

* check if label nullptr

* style

* fixes

* fixes

* remove line

* white space

* tabs and spaces
old-commit-hash: 928fbecec0d88fff684f3eecf1306393ef21be05
2021-04-13 13:42:13 -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
Adeeb Shihadeh 483ea36b96 Raw upload toggle (#20665)
* upload toggle

* better description

* icons
old-commit-hash: 11cc0b52ce78df785245c6bb6af7298728a4e999
2021-04-12 14:05:43 -07:00
Adeeb Shihadeh 994e25770f Revert "hide set speed for stock long (#20585)" (#20666)
This reverts commit 6f9453bdf4928410b9c7c19d503003e9da53a1eb.
old-commit-hash: aab822a352ecba400d4fc2fb9bb467751f543b84
2021-04-12 13:34:44 -07:00
Comma Device 7b818198f1 build all installers simulataneously
old-commit-hash: 242a8ba17ab013abe5dc214c0bf6da674e539165
2021-04-11 15:14:06 -07:00
Dean Lee 52d327f0ec Faster spinner, reduce cpu usage (#20618)
* Faster spinenr

* correct  path

* remove binary

* 30 fps

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8c3ec9dd31b33efd1b7e58d9cfae2e80544e7610
2021-04-10 15:06:16 -07:00
Adeeb Shihadeh bedee16223 let GPU sleep while offroad (#20640)
* better script

* let adreno sleep

* remove

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 32d317239a1804d6b8132b49d6de91646e111f63
2021-04-09 17:27:35 -07:00
Adeeb Shihadeh 7955ba0a5f enable --as-needed linking (#20619)
* only link as needed

* a few more

* need to fix order

* everywhre

* fix mac

* update spinner + text

* fix c2 build

* another fix

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 36d8c89ebf5fee583b89e48a5d2d5e1d178b5ee5
2021-04-08 11:17:07 -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
Willem Melching 8f4a445171 add putBool/getBool wrappers to cython params class (#20611)
* add putBool/getBool wrappers to cython class

* use new API

* some more puts

* fix mockparams arguments

* add get_bool to MockParams

* typo
old-commit-hash: ae094042ade44815fdba50196c15ba552bbf33d7
2021-04-07 15:36:37 +02:00
iejMac 2883bab710 close android activities when settings is closed (#20604)
* close android activities

* new line

* only if activity is launched

* fix
old-commit-hash: 27ebd334dcccbd7bbd6280ed2bb57cbad456a6c7
2021-04-06 19:35:09 -07:00
Comma Device 24c8b90e86 fix drive stats offset on home screen
old-commit-hash: 7466ad68023ee555a45431196c93a43320492e84
2021-04-06 16:16:23 -07:00
Dean Lee d33538e5f3 Qt: show current calibration values (#20455)
* show current calibration

* read calibration from capnp

* use CalStatus

* cleanup calibrationd.py

* remove import capnp

* keep json writing,remove comment

* fix test error

* cleanup

* remove test_read_saved_params

* cleanup

* write out capnp

* restore test

* clean up

* get calibration from CalibrationParams

* cleanup

* update calibration when the description is visible

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 57fe8488ac8bf02ea7f2eb61be2e256ece773cd6
2021-04-06 15:02:40 -07:00
Comma Device 7a01d56255 fix cut off qr code
old-commit-hash: 18e60751c2a1792db39731c7e0371c715a422424
2021-04-05 20:14:12 -07:00
iejMac 71f065bf19 text window starts scrolling at bottom (#20587)
* text starts scrolling at bottom

* comment
old-commit-hash: 9e4748db8bca27b6909d03bc87d2d309636b5c11
2021-04-05 14:27:14 -07:00
Adeeb Shihadeh 421e27fabd hide set speed for stock long (#20585)
old-commit-hash: e4d7ee3716bd68d4128ea13796fec5d527293012
2021-04-05 13:46:26 -07:00
Dean Lee 65a52f5163 remove memory leak in create_jwt() (#20547)
old-commit-hash: d14aba45803fa3b49c48914d0c38f2c8872286b4
2021-04-05 10:05:04 -07:00
iejMac 9238fade18 scrolling in text window (#20564)
* grid layout  + better scrollbar

* style

* style

* tabs

* scrollbar behind button fix

* alerts background color fix (#20568)

* horizontal style + more space for scrollbar

* fixes

* fixes

* fixes

* remove background on scroll bar

* fix horizontal overflow

* indent'

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 10e4d321977928a7314cd4149ba29ea08798820a
2021-04-03 01:18:26 -07:00
iejMac bcbf844dda alerts background color fix (#20568)
old-commit-hash: 86a78581e392c7205a6ba62401ad7589963a8497
2021-04-02 14:03:49 -07:00