Commit Graph

1068 Commits

Author SHA1 Message Date
Cameron Clough 08903fb4e0 MapPanel: provide QObject::connect context (#29731) 2023-08-31 11:44:48 +01:00
Shane Smiskol d9fedaa0a4 Revert "ui/driverview: inherit from CameraWidget" (#29718)
Revert "ui/driverview: inherit from CameraWidget (#29661)"

This reverts commit 6c73a924fa.
2023-08-30 14:49:02 -07:00
Dean Lee 6c73a924fa ui/driverview: inherit from CameraWidget (#29661) 2023-08-30 16:41:58 +01:00
Dean Lee a49dfa2969 ui/networkmanager: add #pragma once (#29678)
#pragma once
2023-08-28 11:40:51 -07:00
Dean Lee c36774dfba ui: rename QDialogBase to DialogBase (#29675)
rename QDialogBase to DialogBase
2023-08-28 01:57:49 -07:00
Dean Lee 125bd2cd9e ui/network: move to selfdrive/ui/qt/network/ (#29656)
* move to ui/qt/network

* wifimanager->wifi_manager
2023-08-27 15:23:19 -07:00
Dean Lee 3a46a853cb ui/driverview: use common SubMaster (#29660) 2023-08-27 10:57:31 -07:00
Cameron Clough 3d1a6f6146 ui/NavManager: parse location timestamp from API (#29665) 2023-08-27 16:18:42 +01:00
Dean Lee 12073c07af ui/MapSettings: sort destinations by recent activity (#29079) 2023-08-27 15:13:43 +01:00
Dean Lee 0767a6dee5 AGNOS setup: multi-lang support (#25680)
* multilang

* update translations

* Specifies dependency

* load lang from json file

* update translations

* fix white border

* remove stretch

* update translations

* fix tr

* no default language

* update translations

* rm main_en.qm

* cleanup

* cleanup

* add language files

* remove type=unfinish

* build languages before assets

* depends lrelease
2023-08-26 08:17:07 -07:00
Dean Lee b6b255c103 ui/driverview: hide on interactive timeout (#29464)
* hide on interactiveTimeout

* cleanup

* requestDone->closeView

* dont reset timeout on hideEvent

---------

Co-authored-by: sshane <shane@smiskol.com>
2023-08-26 07:47:18 -07:00
Shane Smiskol 74a0a8f7b7 Revert "ui/network: don't refresh on connect (#29651)" (#29653)
This reverts commit 6ea564b33e.

Revert "ui/network: refresh IP address on connect"

This reverts commit 46c32613fc.
2023-08-26 05:23:20 -07:00
Shane Smiskol 46c32613fc ui/network: refresh IP address on connect 2023-08-26 05:15:05 -07:00
Shane Smiskol 6ea564b33e ui/network: don't refresh on connect (#29651)
* don't refresh when showing connected status

* fix

* fix

* can remove that nowe
2023-08-26 04:13:19 -07:00
Dean Lee 9fe3df5d75 ui/networking: show "connecting" immediately after clicking on a network (#29378)
* fix connecting not show

* clear connect state

* pass network by value

* add comment

* move pass by value to anoter pr

* should always use function to set connecting_to_network

* remove connecting when forgetting

* out here

* can't do this :(

* Revert "can't do this :("

This reverts commit e06145202de34142e74667c876dc22442eb30796.

Revert "out here"

This reverts commit 8ca7b47a28854a92d95fcb5c5fc435e140f9af2c.

Revert "remove connecting when forgetting"

This reverts commit 671db0b5e76b6266a48f20bf4a1fd40cad4f90a4.

Revert "should always use function to set connecting_to_network"

This reverts commit a220b518fa2a4103046f9522afada80db76ae90d.

* makes sense to keep this the same

* not in between slots

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-26 03:54:19 -07:00
Dean Lee 547f69f5f3 ui/networking: fix icon label alignment issue (#29650)
fix align issue
2023-08-26 03:19:30 -07:00
Shane Smiskol 6bb97c416f wifiManager: empty path helper (#29648)
empty helper
2023-08-26 01:50:18 -07:00
Dean Lee 17bfff8e10 ui: add translation files to assets.qrc (#29597)
* move translation files to assets.qrc

* cleanup

* add main_en

* dynamically add

* not sure if required

* revert to master

* move translations above assets

* add translations to qrc file

* comment

* now add translations_assets_src to assets sources

* this is built

* add to .gitignore

* consistent name

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-25 19:05:35 -07:00
Justin Newberry 1ee6ed4b16 Linter: remove pylint (#29611)
remove pylint
2023-08-24 16:30:54 -07:00
Shane Smiskol b8fb260558 ui/map: clip vehicle speed to min of 10 m/s (#29601)
* all the changes I want to make

* Revert "all the changes I want to make"

This reverts commit c18132b73eb9bba4d7871631d7cd4155eb7efcd0.

* add initialized

* clip to 10 m/s

* fix bug

* rm

* here?
2023-08-24 15:09:30 -07:00
Shane Smiskol b9d77afd7e ui/map: initialize speed filter with current speed (#29605)
fix map starting from 0 zoom
2023-08-24 14:53:47 -07:00
Dean Lee b234cb0223 ui: remove Q_PROPERTY from AnnotatedCameraWidget (#28745) 2023-08-24 11:09:26 -07:00
Dean Lee 7bfd3dac81 cpplint: add filter whitespace/comma (#29595) 2023-08-24 10:42:06 -07:00
Dean Lee 792ad7d816 ui/map: delete map after unsubscribing from prime (#29136)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-24 16:51:53 +01:00
Dean Lee 21da5a216f cpplint: add filter build/include_subdir (#29585) 2023-08-24 15:42:17 +01:00
Cameron Clough 05e91c074d ui: hasPrime/primeChanged helper (#29590) 2023-08-24 12:47:22 +01:00
Dean Lee 99279b8eef ui: use enum PrimeType for prime_type (#29491) 2023-08-24 12:26:45 +01:00
Dean Lee 4ea7833060 ui/map_instructions: restore padding (#29548)
* restore padding

* fixes

* fix left and right margins

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 23:32:01 -07:00
Dean Lee ac93902983 cpplint: add filter whitespace/forcolon (#29582)
whitespace/forcolon
2023-08-23 22:46:02 -07:00
pencilpusher 472151b6a0 ui/map: keep the car icon aligned to its bearing (#29482)
* rotate icon with current bearing

When user is rotating the map, the car icon should stay fixed on the cars bearing, not the map.

* spacing

* comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 17:33:58 -07:00
Dean Lee 5fcb7e9038 ui/PrimeUserWidget: cleanup layout (#29492)
cleanup layout

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-23 16:34:18 -07:00
Dean Lee 5480d32bb5 cpplint: add filter whitespace/parens (#29565) 2023-08-23 14:25:05 -07:00
Dean Lee 2d99521e75 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-23 13:25:17 -07:00
Dean Lee 363740a497 cpplint: add readability/braces filter (#29554) 2023-08-23 10:13:46 -07:00
Dean Lee 5765c1d978 ui/settings: Don't apply styles to more elements than needed. (#29463) 2023-08-22 14:00:01 -07:00
Adeeb Shihadeh 952d720b6e add cpplint (#26855)
* setup cpplint

* only start that

* check line length

* check these

* rm exceptions
2023-08-22 13:55:23 -07:00
Adeeb Shihadeh a9626f95b6 add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
2023-08-20 20:49:55 -07:00
Dean Lee 9ea2cd8d0b ui/map_instructions: center lanes (#29465)
* center lanes

* test

* similar spacing and no need for stretchj

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 01:23:42 -07:00
pencilpusher f2d22075eb ui/map: interactive counter fix (#29470)
* use interactive_counter instead of separate zoom and pan counters

* use interaction_counter instead of separate zoom and pan counters

* same styling

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-19 00:07:52 -07:00
Dean Lee efefcfdca5 ui/map: better rounding for distances (#29151)
* round distance

* use same format in ETA

* remove vanish

* restore translate

* use nearbyint

* update translations

* mark finished

* consistent style

* we don't include this anywhere in ui, needed?

* fix missing std

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 22:58:18 -07:00
Shane Smiskol d827cd6a83 map eta: use pair (#29460)
use pair
2023-08-17 22:42:12 -07:00
Shane Smiskol 6d2922b8e6 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
2023-08-17 20:51:52 -07:00
Dean Lee b8b1e17a21 ui/networking: do not skip the connected network (#29396)
* do not skip connected network

* simplify

* revert

* revert

* no implicit

* ifwt

* fix missing ssid

* makes more sense to only update security_type once (first vs. last)

* better comment

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 14:43:40 -07:00
Dean Lee 1887d9197a ui/networking: pass network by value (#29448) 2023-08-17 11:37:42 -07:00
Dean Lee 202b2f2113 ui/map: hide icon if no maneuver type (#29084)
hide icon if no maneuver type
2023-08-17 02:05:19 -07:00
Dean Lee 3a277f1b81 ui/map: show map on destination set/change (#29327)
* show map on dest set/change

* check for rcv_frame

* clear current_nav_dest

* restore allow_open

* use requestShow

* cleanup

* one check

* revert behavior changes

* Update selfdrive/ui/qt/maps/map.cc

* more obvious

* Update selfdrive/ui/qt/maps/map.cc

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-17 01:32:22 -07:00
Shane Smiskol da38aed483 map: set destination marker visibility once (#29444)
set visibility once
2023-08-17 01:02:59 -07:00
Dean Lee f1568b960a ui: longer screen timeout for driver view (#27457)
* longer driverview timeout

* Update ui.cc

* reset timeout

* do cleanup

* Apply suggestions from code review

* Update selfdrive/ui/ui.cc

* reset to default timeout on hidden

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-08-16 22:22:39 -07:00
Dean Lee 613bbb7e6d ui/map: assign the return value to last_position (#29341)
assign the return value directly to last_position
2023-08-14 16:39:43 -07:00
Dean Lee 29f2389cce ui/networking: bolding the connected network (#29385) 2023-08-14 15:18:41 +01:00