Commit Graph

682 Commits

Author SHA1 Message Date
royjr 388ae5e59e UI: remove redundant condition (#23918)
old-commit-hash: 82bc052dc631512f3cf871c1dc4b5c2be1cab052
2022-03-07 09:57:32 -08:00
Willem Melching 7e12817e02 MacOS: ensure 1:1 rendering on HiDPI screens (#23860)
old-commit-hash: ca8d4e417e53e5869ad77e8bfd5da62a78a88de3
2022-02-25 14:36:27 +01:00
Adeeb Shihadeh 6ca0269f47 same check
old-commit-hash: 95da47079510afc91665263619e5939126da637c
2022-02-15 16:44:13 -08:00
Adeeb Shihadeh b695ffbfdb UI: fix power buttons disable logic (#23774)
old-commit-hash: 00d469dbc9d5ab8237247f7036892fe74c5e3c8a
2022-02-15 16:18:09 -08:00
Willem Melching 3de449a993 nav: set settings stack based on uiState.prime_type (#23770)
* nav: set settings stack based on uiState.prime_type

* also show on success
old-commit-hash: f8c81103fc1dc98b0403a89c549947a9777f87ce
2022-02-15 16:39:10 +01:00
Willem Melching 06add8928d nav: handle route responses with duplicate points (#23769)
old-commit-hash: 14f7a7825151ab55975a24f53e4178fb7a595bea
2022-02-15 16:14:57 +01:00
Willem Melching 5d55924fac ui: fix onroad transition with active nav (#23757)
old-commit-hash: e76ef93a833396dba4e3478966f9b48894c08638
2022-02-14 13:55:30 +01:00
Lee Jong Mun c5e11d7491 missing optional include (#23749)
old-commit-hash: ab9fb0541df1d3455060a24c3093f463a752951e
2022-02-11 12:08:09 +01:00
Willem Melching 30a0b40b5d ui: configure tethering based on prime type (#23733)
* Store prime type in param

* set tethering metric based on prime type

* update existing connections

* returning zero is fine

* always set

* add callback on activate

* call systemctl

* match server enum

* add delay

* assume field is there

* snake case
old-commit-hash: 4e4cb07297485eac378058c6b4e60901e10cbd15
2022-02-09 20:27:58 +01:00
Dean Lee fab73e6e9f remove trailing whitespaces (#23716)
old-commit-hash: 786152f0f125f9c78dc129cab8f24a98d93f36a1
2022-02-06 10:42:41 -08:00
Dean Lee d76c70cb2f WifiManager: fix crash if no wifi device found (#23701)
old-commit-hash: 4e0c08c0a6b700d2532e80e6c35e208fca86c5b6
2022-02-03 15:33:29 -08:00
Jason Wen e2b296f0ae UI: hide power off button on C3 while onroad (#23689)
* Grey out power button while onroad - comma three only

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4715510e918ce31f07170965aebc32ee41c263fc
2022-02-03 15:32:57 -08:00
Adeeb Shihadeh c491f3fc2c for those who want to live in the moment
old-commit-hash: e6d8a845782e1b902b2966edb3c39c882e735b97
2022-01-31 14:30:40 -08:00
Adeeb Shihadeh 9b9d6ce772 setup: add OS version to user agent (#23656)
old-commit-hash: e9cd0a059c0985e16bdd64eeffb1791c1001088c
2022-01-28 14:21:37 -08:00
Adeeb Shihadeh 70f1418256 remove community features toggle (#23214)
* remove community features toggle

* bump cereal

* little more

* update refs
old-commit-hash: 3e9cb7fa12b5f686fdcf6122ef5979d01c41f0a3
2022-01-24 14:49:47 -08:00
Dean Lee 0d468d6253 ui/setup: check http status code (#23597)
* check resp code

* always cleanup curl and close file

* curl_global_init

* space

* cleaner

* Revert "curl_global_init"

This reverts commit c3f1a7cee87804993ce8f5fd5939570a8e9ffd3a.
old-commit-hash: 1e906366f8439e3ef3f4f8fc01e2f2ec0f951a86
2022-01-22 13:49:03 -08:00
Dean Lee e3cc66beff ui: fix lead vertex coordinates (#23550)
old-commit-hash: bca92a95cc9fe3b83ead7ed604ad2f6fd3f8b0c1
2022-01-21 15:14:18 -08:00
Dean Lee a317526771 ui/networking: async dbus calls (#23535)
* async dbus calls

* simplify get ip address

* Revert "simplify get ip address"

This reverts commit 7ade7ec57dd0bb76cb3194f94f039498fdcd8881.

* cleanup getConnectionPath()

* remove unused functions

* cleanup

* rename to getIp4Address

* clenup class definition
old-commit-hash: f7932f874de7831b033e41a569cce0e4b3ad129f
2022-01-17 12:12:58 -08:00
Dean Lee bbb691238a ui/networking: simplify dbus calls with a helper function (#23531)
* simplify d-bus calls

* move template function to source file
old-commit-hash: 43a2674ffc2e9177126cf2733a62afdb911fbf2d
2022-01-14 11:46:45 -08:00
Dean Lee a2caf11b9f ui/networking: combine connect functions into one (#23522)
old-commit-hash: 39d904d2aa4bff1ecbbe5952851177fbdc0125e8
2022-01-14 08:42:29 -08:00
Dean Lee 47d5114c1f ui/WifiManager: inherit from QObject instead of QWidget (#23523)
old-commit-hash: 75be1223f80d32ba4bfc6b725240b416fc10c9aa
2022-01-14 08:40:39 -08:00
Dean Lee 77b0d4363c MainWindow::eventFilter: add static keyword for evts (#23521)
old-commit-hash: 785180d234ddc5d095175b5b270140cd558d1095
2022-01-14 15:28:38 +01:00
Dean Lee d8f55a81ab UI: reset interactivity timeout on PC (#23508)
* reset interactive timeout on pc

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6dbae9593eae4d2bc55aa34fdde428fbd2933ccf
2022-01-13 19:20:22 -08:00
HaraldSchafer 5aa495c85f update comment (#23495)
old-commit-hash: 85dcfbbf360705fc40b048cb256158d89c7dcf98
2022-01-11 18:49:53 -08:00
Willem Melching c8cb5abfbb CameraView: sync pbo with glFence instead of calling glFinish (#23409)
* CameraView: sync pbo with glFence instead of calling glFinish (#23293)

* Sync pbo with fence

* use std::unique_ptr

* cameraview.cc: call glFlush after creating fence

Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: d77782ea931b9fa3e7e2a31628f6ec1d35a47884
2022-01-07 15:24:20 +01:00
Willem Melching 8c1fe7647a catch gl_buffer->map() returning nullptr (#23411)
old-commit-hash: 8d80c0107f5d1cd2ba2b5a37f297d3ae8e3b02f3
2022-01-05 14:23:57 +01:00
Adeeb Shihadeh 097110ba41 Revert "CameraView: sync pbo with glFence instead of calling glFinish (#23293)"
This reverts commit 7fcde6809582c5b8ddfe5a60723d70f9eae1d5de.

old-commit-hash: 25f51470fc66f741a2448910ad57e17f9a643a8d
2022-01-04 20:16:52 -08:00
Adeeb Shihadeh 7c960e6a94 Revert "cameraview.cc: call glFlush after creating fence"
This reverts commit eac4c3cab90890e39b4a6009c59d023fb21997b8.

old-commit-hash: 34926dfab58b6119cd2bf6cbf4fb83a937b22d18
2022-01-04 20:16:42 -08:00
Willem Melching 0c24902e05 cameraview.cc: call glFlush after creating fence
old-commit-hash: 8655f6df6bd9eff27bb6600aa0e19bba8af0198c
2022-01-04 15:55:28 +01:00
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 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
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 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
George Hotz 6bac4f1c4a build for mac (#23048)
old-commit-hash: 16dd7ce1fe2a2b0537fefd5ad131d1494d0d09ad
2021-12-18 22:00:09 -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 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 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