Commit Graph

1104 Commits

Author SHA1 Message Date
Dean Lee 1c61ba82b6 CameraView: sync pbo with glFence instead of calling glFinish (#23293)
* Sync pbo with fence

* use std::unique_ptr
old-commit-hash: 5dbdad3276cef90b2466bea8e857ff4918b84717
2022-01-04 14:14:38 +01:00
Dean Lee 336d37e95c UI: run set_brightness in QtConcurrent (#23326)
* use QFuture

* update at 10 hz

* don't change frequency
old-commit-hash: cd9813ab6a160d7da2e86ce2bb6daa69e7e2adad
2022-01-04 14:03:27 +01:00
Robbe Derks db09713cb7 MUI should be a status bar (#23287)
old-commit-hash: a1e201ef5a8f0dec22e75b94c31e5fed1e4d9743
2022-01-04 12:15:18 +01:00
Dean Lee 84481c134b replay/logreader: handle abort in load (#23321)
* handle abort

* handle abort in decompressBZ2
old-commit-hash: 937a0df57bd0469af49b7bb4f44ca5ea3c4ae881
2022-01-04 12:06:23 +01:00
Dean Lee b756c89d38 ui/get_path_length_idx: line_x[i] shoud be less than or equal to path_height (#23336)
* start loop index from 1

* use  islessequal

* use build in <=
old-commit-hash: 9295066dac926c9f804bcb07b535bfec9a06cf11
2022-01-04 12:04:52 +01:00
Dean Lee 36b506c880 ui/update_model: do not recalculate the max_idx If there is no lead (#23356)
old-commit-hash: f561d84c627273537d1e30f66d48fa39ec014950
2022-01-04 11:39:18 +01:00
Dean Lee fef9d05507 replay tests: retry on network failure (#23383)
old-commit-hash: 8dd8b1905bec171995f1eab331e69969bae444df
2022-01-03 20:10:57 -08:00
Dean Lee 2701743349 ui: emit offroadTransition in UIState::updateStatus (#23265)
old-commit-hash: 21ee6d25c7f84be810a6ed31cc2cf5aa94a89c11
2022-01-03 17:35:05 -08:00
Dean Lee 64ba111cbb ui: update lead's z position if modelV2 has been updated after startup. (#23355)
* model frame >= started_frame

* remove optional
old-commit-hash: 2a99bc6ddefaa050bf4f82640e3097ef230102e8
2022-01-03 14:37:36 -08:00
Dean Lee 2a3a9e0bef replay: add flag to disable video (#23353)
old-commit-hash: 1e309a51f53a7678f42f40010fb0371b20c2f213
2022-01-02 11:54:49 -08:00
Dean Lee ed55910aa9 replay/segment: pass member function pointer to QtConcurrent::run (#23312)
old-commit-hash: 58a363e07d640938e74f938d14dfc5beb6fa1036
2021-12-28 11:38:31 +01:00
Dean Lee 9191452120 replay: add flag REPLAY_FLAG_FULL_SPEED to play at full speed (#23324)
* add flag REPLAY_FLAG_FULL_SPEED

* use hasFlag
old-commit-hash: de6126ba06fc27978237a70049e444412ed22fce
2021-12-28 11:37:33 +01:00
Dean Lee 70b297f5db ui: set the bg color of controllerUnresponsivePermanent to blue (#23308)
* fix bg color

* blue
old-commit-hash: 5fe809b34471470b79e436d071d8278297b15a3c
2021-12-27 23:50:24 -08:00
Dean Lee 1860d9c18c replay/util: initialize curl at startup (#23314)
old-commit-hash: 21fc9d537548f7694177f8bb3a1e31cb94995624
2021-12-27 13:22:42 -08:00
Dean Lee 446e59d10f replay: fix segfault or hanging on quit (#23323)
old-commit-hash: c9da1403bcb4491db0fd9ee9e2e921c630ad96a9
2021-12-27 13:02:18 -08:00
Ewout ter Hoeven f206ebd054 Pyupgrade 3.6: Update syntax with Python 3.6+ features (#23305)
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default

Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>

Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a8241fba9459cb70c76840b9670e6993a
2021-12-24 11:18:39 -08:00
Dean Lee 7c71bc1b98 replay/camera: use existing YUV_BUFFER_COUNT (#23297)
old-commit-hash: 94e435cededb90ff9215e1ecd9d0fa0dcfaf365e
2021-12-22 20:36:16 -08:00
Dean Lee d30f82421d OnroadHud: use function loadPixmap (#23292)
old-commit-hash: bf4d875c5af226224f6d4e826c3d03d6765b89a4
2021-12-22 10:10:24 -08:00
cydia2020 af8143a333 use km/h in settings.cc (#23290)
old-commit-hash: db6c477373913d1ac67ffa863c3b1dc1a93e9611
2021-12-22 09:37:33 -08:00
Adeeb Shihadeh 2296b5727e make that consistent with other labels
old-commit-hash: 6aeb54275083cb4b13d3d6f77583797deb0d2678
2021-12-21 16:38:18 -08:00
Dean Lee 54a3a91628 UI: call map::offroadTransition after creating map (#23283)
old-commit-hash: 50cce27e34aaed9ee5029031447b36a8fa328851
2021-12-21 11:06:45 -08:00
Adeeb Shihadeh 487f8cdeaf UI: less harsh controls unresponsive when not engaged
old-commit-hash: 2d8578545ffdaa7c40527aaeb68819515f7f2039
2021-12-20 23:56:25 -08:00
Adeeb Shihadeh 7d4c84dcaf repeat immediate warning sound
old-commit-hash: f3e67e0ec211331471830a0ada9eebc2eaea48d3
2021-12-20 23:16:16 -08:00
George Hotz 6bac4f1c4a build for mac (#23048)
old-commit-hash: 16dd7ce1fe2a2b0537fefd5ad131d1494d0d09ad
2021-12-18 22:00:09 -08:00
Adeeb Shihadeh 02aafc42c3 mui
old-commit-hash: 646fe7de4b48901ed1be4998fcd5848997c9740e
2021-12-18 15:11:29 -08:00
Dean Lee 9321e1bb6c ui: remove variable world_objects_visible, use rcv_frame (#23264)
old-commit-hash: e4de82f90636a551a2490ccda1abc30a9b7f30b1
2021-12-17 21:37:29 -08:00
Dean Lee 20c50f8f51 framereader: use the same alignement as visionbuf (#23208)
* aligned rgb buffer

* fix yuv stride
old-commit-hash: 768cfdb92a70f30435cf4c4ab1de083d8fbe6491
2021-12-15 16:19:07 -08:00
Dean Lee d5e9c7ecf1 UI: always clear CameraView background (#23231)
* fix background

* gate that with Hardware::EON

* always call glclear
old-commit-hash: 5810583d573af004120e6339a5597bf39cd6d331
2021-12-15 11:13:50 -08:00
Adeeb Shihadeh 85ff2fe9cb Revert "Qt/SetingWindow: faster initialization and painting (#21764)"
This reverts commit 720e3a73e7befe597bb94f93e41f8f294431ba65.

old-commit-hash: 472177e2a8a1d002e56f9096326fd2dff62e54f9
2021-12-15 09:58:25 -08:00
Dean Lee f0eb7a5402 qt/util: new function scaledPixmap (#23103)
* new function scaledPixmap

* rename to loadpixmap
old-commit-hash: 75687169eb978a7a49f15fb086df87cc959a871a
2021-12-14 22:58:47 -08:00
Dean Lee 1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5dd7ad586a92b62b2ef5bc8f9094f262
2021-12-14 22:28:12 -08:00
Shane Smiskol c413152da3 seems to be flipped (#23213)
old-commit-hash: c84310c94ccab023e36d02e9b85430ad7d878868
2021-12-14 12:17:02 -08:00
Dean Lee 31bf68c622 C2: display ip address in network panel (#23215)
* display ipv4 address

* refactor to class

* only display ip address
old-commit-hash: 084ef394891360d05b272f502029f9e7e23886db
2021-12-14 12:14:51 +01:00
Dean Lee c031c1a8d4 UI: add timeout to close settings window while onroad (#22980)
* refactor updateWakefulness

* don't hide sidebar

* rename reset->reset_timeout

* move related variables and functions into class Device

* reset timeout in ctor

* set timeout to 10s if ignition is on

* cleanup

* remove unused QTimer *timer

* check getTimestamp

* keep socket reading in update_state

* keep filtering

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c5dbee4e58aad2efca6d91baa4c7c4171ee8953f
2021-12-14 11:22:16 +01:00
Dean Lee b462e5584f move LayoutWidget,ClickableWidget to controls (#23207)
old-commit-hash: d4b8cba0f6614138a7a836559712baeb894f7163
2021-12-14 11:00:01 +01:00
Adeeb Shihadeh 0bcb3936ad add small minimum time between taps to onboarding (#23212)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: df5b374033cd89a7cffaddb12a7650c895f84cea
2021-12-13 17:38:19 -08:00
Dean Lee b7e08ff8fd Qt/SetingWindow: faster initialization and painting (#21764)
* reduce init time from ~520ms to ~350ms

* faster init toggle

setfixedheight in ctor

delay init TogglesPanel,reduce init time to ~180ms

cleanup

* precise style, reduce to ~100ms

* revert 'faster toggle

* fix horizontal_line

* fix background

* cleanup
old-commit-hash: f482354e4e2ce5d96f5b0c96f7ba923611dc199d
2021-12-13 15:57:04 +01:00
Dean Lee 066528dc2b replay: use std::unique_ptr to manage memory, reuse events buffer. (#23049)
* reuse events buffer

* Trigger Build
old-commit-hash: 8a84263c2d20484d83c30f1928c0312d7fa8a350
2021-12-13 15:22:31 +01:00
Adeeb Shihadeh e3e9a6402b Revert "soundd: use setLoopCount(0) to stop repeating sound (#23076)"
This reverts commit 27bcef8a3846acc7664a26e30a1284abb9fd8752.

old-commit-hash: d28622f8d34dbcf242e2ba0ed2f5d1e831775f48
2021-12-11 14:32:38 -08:00
Dean Lee 22a334b224 limit style scope (#23181)
old-commit-hash: 2335a2058489bff8f7a930dec81fdd4000876478
2021-12-09 11:37:59 -08:00
Willem Melching bc267926ce dmonitoring/DriverView: get crop_rect & transform by video size (#23169)
* dmonitoring/DriverView: get crop_rect & transform by video size (#23014)

* keep rounding the same

Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: f93d89b888f790269729d7fa10b98a5f27f13909
2021-12-09 16:20:50 +01:00
Adeeb Shihadeh 2063ff2d71 UI: remove burn in prevention (#23173)
old-commit-hash: 755ec71c051b20238185039a0d85272a7c9a66d6
2021-12-08 13:58:06 -08:00
Willem Melching f44ac2a806 Revert "dmonitoring/DriverView: get crop_rect & transform by video size (#23014)"
This reverts commit e312313d5c75a3914cdabc6e1382df602b005c84.

old-commit-hash: b5fdf646ff0ef3e81333e2f051237e4427ea7608
2021-12-08 19:13:38 +01:00
Dean Lee 1e45fe1ee7 dmonitoring/DriverView: get crop_rect & transform by video size (#23014)
old-commit-hash: 1af715d6a20a1a7c5d11e85bf9420b2dab2334cc
2021-12-08 17:51:56 +01:00
Adeeb Shihadeh 9c702c779e whole new family (#23157)
* family two

* more volume

* repeating dm sound

* update tests
old-commit-hash: 1501c2e3768bc3469b56a9eca846db9f971ec81d
2021-12-07 13:45:49 -08:00
Jason Shuler cabd6c6b95 ui.h: add missing optional header include (#23160)
old-commit-hash: af275af38f2ac2eb031d2b7275765abcfd2f146a
2021-12-07 13:44:58 -08:00
Dean Lee 1b8be22a4c DevicePanel: fix dangling reference to params (#23154)
old-commit-hash: 6e25ae9798bbdad55259333194b6f3c33679c475
2021-12-07 10:41:41 -08:00
Willem Melching e7bf88f29f Remove Raw Upload toggle (#23143)
* Remove Raw Upload toggle

* fix tests
old-commit-hash: 2e0c73fc0cbac64e442085390dd22e6b408d0478
2021-12-07 11:25:40 +01:00
Comma Device aef1cbd1f8 fix UI build on comma two
old-commit-hash: 20dc4df0240caf32b720976093928ead1c587b3c
2021-12-06 14:34:20 -08:00
Dean Lee 88ebf835bb UI: move rest of NVG to Qt (#23133)
* move ui_draw_world to qt

* draw world if world_objects_visible is true

* cleanup

* cleanup includes

* continue

* cleanup

* cleanup

* enable  multisampling on all devices
old-commit-hash: 20f571db3c37c6d009ca3d9a646874769aa07acd
2021-12-06 14:02:39 -08:00