Commit Graph

1479 Commits

Author SHA1 Message Date
Harald Schäfer da3003ee41 Alpha long control no longer called experimental (#28437)
* Fix words

* vanish

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-06-14 21:51:55 -07:00
Cameron Clough 22ebd4fa8f UI: consider border when setting map width (#28488) 2023-06-10 22:09:48 -07:00
Jason Wen f0eef38dc0 offroad ui: remove irrelevant comment (#28485) 2023-06-10 13:01:16 -07:00
Cameron Clough f7f5537af7 MapPanel cleanup (#28474) 2023-06-09 17:08:57 -07:00
Lee Jong Mun b2288b3666 kor translation update (#28469) 2023-06-09 10:54:39 -07:00
Dean Lee 9295aca8ea ui: disable longitudinal personality settings when using stock long (#28443)
* disable longitdinal personality settings

* disable title label

* Revert "disable title label"

This reverts commit ef315ac2770191f1309f774185266e0cd9fe54b0.

* gray checked button on disable
2023-06-08 16:03:18 -07:00
AlexandreSato a250e1cb2f Multilang: Fix text overlap in pt-BR translation (#28450)
* update pt-BR translations

* fix some cutoff texts

* update pt-BR translations

* Include the new relaxed explanation

* fix text overlaps
2023-06-08 12:54:23 -07:00
AlexandreSato 80430435bb Multilang: update pt-BR translations (#28431)
* update pt-BR translations

* fix some cutoff texts

* update pt-BR translations

* Include the new relaxed explanation
2023-06-07 12:09:25 -07:00
Shane Smiskol a92cd659ce ButtonParamControl: minimum button width (#28442)
* min width

* param
2023-06-07 01:11:41 -07:00
eFini 42eb7c527e Multilang: add missing Chinese (Traditional) translations (#28427)
update chinese tranditional translations
2023-06-06 23:58:48 -07:00
Harald Schäfer d6cfbd0097 Driving personality setting: add description (#28422)
* Driving personality setting: add description

* Missing word
2023-06-06 11:07:31 -07:00
Dean Lee 7f41047178 ui: refactor ButtonParamControl (#28425)
* refactor ButtonParamControl

* add pressed style

* connect to buttonToggled

* typo
2023-06-06 01:18:17 -07:00
Lee Jong Mun f97b2bb9d7 kor translation update (#28420) 2023-06-05 23:11:21 -07:00
Harald Schäfer 205c900742 Driving Personality setting (also changes follow distance) (#24742)
* Skeleton

* Adjustable follow parameter

* fix rebase

* long planner

* typo

* Add ui toggle

* Fix icon

* Improve text

* Better toggle position

* Im a UX engineer now

* add param reader

* CHange jerk to have same crash test performance

* Try reading param

* Unused comment

* translate ui text

* std stoi

* Parametrized buttons

* Empty strings are ints

* Move to generic

* Update translations

* Fix translation diffs

* Release notes

* update refs

* tweaks

* Misc fixes

* No param is standard
2023-06-05 22:17:41 -07:00
Shane Smiskol aa4bbcefd3 ui: wrap missing updater text (#28417)
* wrap more

* wrap more

* and that

* update
2023-06-05 17:27:34 -07:00
Lee Jong Mun 90d31b9db4 kor translation update (#28401) 2023-06-04 16:52:25 -07:00
AlexandreSato 8bfc78c265 update pt-BR translations (#28393) 2023-06-03 17:15:39 -07:00
Cameron Clough 4f815db141 UI: connect to wifi prompt (#28273)
* OffroadHome: move experimental mode button to right column

* OffroadHome: replace DriveStats with PrimeAd when no prime

* SetupWidget: remove PrimeAd

* SetupWidget: tweaks to fit smaller space

* UI: add WiFiPromptWidget

* WiFiPrompt: update using network type

* add WiFiPromptWidget to offroad home

* reduce spacing to fit vertical space

* WiFiPromptWidget: open Wi-Fi settings

* no longer necessary

* cleanup

* shrink PrimeUser widget and increase Setup Wi-Fi font size

* correctly resize widget when stack index changes

* layout tweaks

* debug

* spacing

* slightly improved style

* helps -> help

* .
2023-06-02 23:24:38 -07:00
Harald Schäfer e0c95f7ad9 Toggles: Reorganize in descending importance for driving (#28364)
Reorganize toggles in descending importance for driving
2023-06-01 21:39:30 -07:00
Cameron Clough 15ac8c041b UI snapshot tool (#28356)
* UI: snapshot testing tool

* gitignore

* cleanup

* remove prime type arg

* rename

* add script

* commit snapshots

* use base setup

* updates

* always run base

* echo

* use imagemagick

* test_snapshots

* fixes

* update

* set language

* revert

* default arg

* just remove translations

* formatting

* output arg

* improved help

* fix assets

* change dir back before saving snapshot

* unused imports

* simpler

* add default to description

* use uiUpdate signal
2023-05-31 23:04:30 -07:00
Cameron Clough e875bcfaee UI: remove comma points (#28303)
* UI: remove comma points

* remove param
2023-05-30 18:18:47 -07:00
Shane Smiskol 21f88f997d Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit 26064196d0.
2023-05-25 19:23:50 -07:00
Cameron Clough 13cf695738 UI: PrimeUserWidget cleanup (#28300)
* cleanup

* setMargin is obsolete

* more
2023-05-25 16:40:40 -07:00
Cameron Clough 387e865793 UI: update "Finish Setup" widget style (#28287)
* UI: update SetupWidget registration design

* SetupWidget: add icon

* Revert "SetupWidget: add icon"

This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
2023-05-25 13:01:51 -07:00
Cameron Clough 488975f06e UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
2023-05-24 22:44:10 -07:00
Dean Lee 634280ca51 ui: update DM icon at every frame (#28226) 2023-05-24 20:46:27 -07:00
Dean Lee 2c44c8980c ui/MainWindow: use switch in eventFilter (#28276) 2023-05-24 20:45:58 -07:00
Shane Smiskol 26064196d0 ui: smooth wide cam transition (#28277)
* horribly messy

* bit simpler

* is this right?

* simpler and should work?

* used to be int/frames, but added easing so treat as float

* end slow (start fast)

* little faster

* clean up

* not needed

* try ease in/ease out and fix

* remove debugging print

* fix

* revert to previous curve

* based on speed

* not right

* fix

* fix

* this kinda works

* Revert zoom by speed

Revert "this kinda works"

This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.

Revert "fix"

This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.

Revert "fix"

This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.

Revert "not right"

This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.

Revert "based on speed"

This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.

Revert "Revert "not right""

This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.

* better curve

* revert

* use constants and fixes

* up here too

* feels more intuitive to make zoom_transition=1 be zoomed in

* rm line

* fix

* cmt

* better handling

* better name

* zoom if ANY other stream is requested

* Update selfdrive/ui/qt/widgets/cameraview.cc
2023-05-24 17:28:33 -07:00
Cameron Clough d659243648 UI: cleanup OffroadHome layout (#28284) 2023-05-24 15:41:14 -07:00
Cameron Clough 94937e0694 UI: reduce margin around software version (#28283) 2023-05-24 15:00:17 -07:00
Dean Lee 781a6fcc5f ui/settings: fixed button overlap in sidebar. (#28220)
fix button overlap
2023-05-17 20:16:39 -07:00
Dean Lee fe6ce429c5 ui/drawDriverState: don't draw circle bg twice (#28168)
do not draw circle bg twice
2023-05-16 14:01:06 -07:00
Dean Lee 8ca3be9788 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
2023-05-15 13:08:21 -07:00
Harald Schäfer 598343aad1 Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-15 09:29:57 -07:00
Adeeb Shihadeh 432f316e8d ui: catch silent EGL failure (#28169)
Co-authored-by: Comma Device <device@comma.ai>
2023-05-11 15:22:09 -07:00
Cameron Clough 3ba60a6a96 training guide: higher quality image (#28152)
* use better image

* update touch area bounding box
2023-05-09 20:32:47 -07:00
Dean Lee 2ec14c2065 ui/drawLaneLines: read the accel from the submaster outside of the loop (#28145)
* read the accel from the submaster outside of the loop.

* const max_idx

* remove data copy and converting from list to vector

* correct name is len

* fix drawing last point

* add comment, remove right_points

* fix

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-05-09 20:25:53 -07:00
Shane Smiskol e780cca8b6 seldrive: use common sig handler (#28127)
* Update main.cc

* Update util.h

* same for navd
2023-05-08 14:27:04 -07:00
Shane Smiskol 884e36bc9d ui: more granular accel gradient in experimental mode (#27391)
* add accel

* debugging

* use uiPlan for acceleration

* draw on same frame, ui color enhancements

* adjustments

* not needed

* add back alerts and wide cam

* use linear accel -> saturation (red -> green transition is more gradual, should be easier to understand)

* 1.5x was good from the non-linear previous commit

* fix crash?

* revert draw on same frame

* bump lightness add lightness mod with comment for future use (reverting in next commit)

* revert (but keep lightness bump)

* max accel isn't blueish (#3DFF3D)

* clean up

* revert lightness

* remove experiment

* try a different domain

* doesn't work

This reverts commit 7a398b03920d6d2d2c804d1290803bc533051fc1.

* clean that up

* actually should be 0.75

* some clean up

* debug timing

* fix

* debug

* round

* revert wide

* not used

* clean up

* remove slow qDebug

* this too

* draw max constant points, ensure we draw first and last

* clean up

* more clean up

* draft

* Revert "draft"

This reverts commit 59db097611dc633f397c509bf95490eb0614b7f0.

* Revert "Revert "draft""

This reverts commit ee86c385b39dbe36430effd58fc5c41ede51f9f0.

* simplify

* clean that up

* and all that

* and more

* aaaand that

* aaaand that

* track vert is created in update_line_data, it us the sum of two equal
len lists

* keep debugging stuff around

* keep debugging stuff around

* remove prints

* rm that

* moreee

* use existing helper 😄

* clean up

* make it const

* F

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-05 16:11:16 -07:00
Willem Melching 7a31bd12af qt/util.c: clearLayout, support QFormLayout (#28105) 2023-05-04 10:59:37 -07:00
Cameron Clough cae43511dc UI: cleanup old training guide coords (#28091) 2023-05-04 00:08:50 +00:00
Adeeb Shihadeh 38b99b5461 UI: cleanup old training guide assets (#27973)
* UI: cleanup old training guide assets

* rm that
2023-04-19 11:10:50 -07:00
Angus Gratton fbcd0821c9 cabana/cameraview: Scale the glViewPort by devicePixelRatio() (#27941)
* cameraview: Scale the glViewPort by devicePixelRatio()

This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.

On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)

Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios

... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.

* Update selfdrive/ui/qt/widgets/cameraview.cc

* Update selfdrive/ui/qt/widgets/cameraview.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-19 11:06:54 -07:00
Willem Melching 475903e244 cabana: enable Hi-DPI support on MacOS (#27965) 2023-04-19 10:48:36 -07:00
AlexandreSato 852f67dc88 Multilang: update pt-BR translations (#27767) 2023-03-31 11:29:08 -07:00
Lee Jong Mun 2c13bfac74 Multilang: kor translation update (#27756) 2023-03-30 17:34:39 -07:00
royjr c2d13e5292 ui: experimental -> alpha OP long toggle (#27725)
* swap locations

* remove experimental from toggle name

* revert

* alpha

* revert that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-30 14:27:05 -07:00
Jason Wen 8e3ed8f10b torqued: reset LiveTorqueParameters on calibration reset (#27737)
* torqued: reset LiveTorqueParameters on calibration reset

* gotta have this
2023-03-29 14:30:27 -07:00
Vivek Aithal 46069738d6 Revert "torqued: reset LiveTorqueParameters on calibration reset" (#27736)
Revert "torqued: reset LiveTorqueParameters on calibration reset (#27732)"

This reverts commit 18253982db.
2023-03-29 14:01:22 -07:00
Jason Wen 18253982db torqued: reset LiveTorqueParameters on calibration reset (#27732) 2023-03-29 13:56:45 -07:00