Commit Graph

1459 Commits

Author SHA1 Message Date
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
Dean Lee
d8a55de166 ui: remove lupdate warnings: "Qualifying with unknown namespace" (#27616) 2023-03-17 16:14:43 -07:00
Adeeb Shihadeh
9a6bcba741 UI: remove spammy CameraView log 2023-03-15 14:34:33 -07:00
Dean Lee
d5375af2f5 ui: auto detect available streams (#27470)
* auto detect available streams

* no switch if wide cam not available

* clear frames before getAvailableStreams

* warning

* clear at same time

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-03-14 13:59:22 -07:00
Harald Schäfer
d75ee19def Only trust locationd for nav (#27579)
* Only trust locationd for nav

* unused var
2023-03-14 09:25:09 -07:00
protonchang
dc5a65049e Update CHT translation (#27530)
* Update zh-CHT translation

* Update zh-CHT translation

* Update zh-CHT Translation

* Update to resolve translation consistency issue

* Update zh-CHT translation
2023-03-10 15:39:16 -08:00
AlexandreSato
572eba78a6 Multilanguage: update pt-BR translations (#27546)
update pt-BR translations
2023-03-09 17:17:22 -08:00
Harald Schäfer
f17ac166a3 Enable dmoji crosshairs in gray when not enabled (#27491)
* try

* add fade back

---------

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
2023-03-03 17:48:51 -08:00
Iamz
9ce26b2011 Add missing Thai translations and remove obsolete messages. (#27469)
Update Thai translations
2023-03-01 15:35:28 -08:00
Lee Jong Mun
dc39a87543 Multilang: kor translation update (#27445) 2023-02-27 15:50:32 -08:00
ZwX1616
c995acda7c driverview: use static icon (#27448)
* fix alpha

* prerender
2023-02-28 03:01:55 +08:00
Cameron Clough
f64fa07b0a setup: set download timeout (#27441) 2023-02-23 19:46:06 -08:00
Cameron Clough
79e6910106 setup: detailed error messages (#27429)
* setup: specific error state for non-executable file

* Result -> DownloadResult

* complete -> finished

* rename widgets to be more consistent

* fix typos

* fix setCurrentIndex

This appears to have different behaviour on device than on PC (off by
one)

* load fonts

* copy

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

* Revert "load fonts"

This reverts commit e8756598ed99aea39ef5721453e97920a494051c.

* font family

* undo

* less widgets more better

* font size

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-23 19:45:48 -08:00
Cameron Clough
90db46e775 setup: write installer URL to tmpfile (#27426)
* setup: write installer URL to tmpfile

* missed ptr type
2023-02-22 17:26:37 -08:00
Adeeb Shihadeh
72539fa177 AGNOS system reset: handle ABL reset (#27418)
* AGNOS system reset: handle ABL reset

* no more tapping

* eta
2023-02-21 21:34:02 -08:00
Dean Lee
8e3cb0fb20 cabana: add qrc resource file (#27386)
* add qrc resource file

* remove export
2023-02-19 15:14:13 -08:00
Harald Schäfer
eb8bdc0026 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
2023-02-17 19:58:30 -08:00
Adeeb Shihadeh
1f85f84027 UI: fix old frame shown on startup (#27283)
Co-authored-by: Comma Device <device@comma.ai>
2023-02-09 20:44:29 -08:00
ZwX1616
955c1dff45 ui: dmoji (#27070)
* will draw

* gradient

* bg

* add sense of depth

* refactor

* cleanup

* fix endpoint

* clean up

* use array

* 1 matmul

* lives in modeldata

* standstill only

* remove bad pts

* do less math

* smooth

* kind

* fix d

* lineswidth

* fade in and out

* hide

* quick

* gray out

* fix joints

* offset

* rest icon

* clean up

* circle as state

* longlat

* new design

* gap and g

* scaledown, fix jts and unlock not standstill

* width

* different

* intermediate

* sand

* motion effect

* vis

* fix bg

* clean up

* t

* btn_size

* small speedup

* sligh

* clean up

* facelift

* match .2

* .4 is good

* size

* no ss

* rhd compat

* less filt

* more line

* engaged

* not white

* drop prop

* this is fine

* independent falg

* sg

* dont look like hitman

* cleanup

* little more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-02-08 19:06:59 -08:00
Cameron Clough
1a0a638740 setup: replace software selection widget with input dialog (#27236)
* setup: replace software selection widget with input dialog

* revert

3f7047651c
2023-02-07 11:37:25 -08:00
Cameron Clough
074e74ad08 setup: check installer is elf (#27241) 2023-02-07 11:37:03 -08:00