Commit Graph

1510 Commits

Author SHA1 Message Date
Shane Smiskol afe7825130 Revert "ui: smooth wide cam transition" (#28298)
Revert "ui: smooth wide cam transition (#28277)"

This reverts commit ee6df0ef025d95c495248e46d53de2842363058e.
old-commit-hash: 21f88f997d80430dac16513c9dafb358ce3494ae
2023-05-25 19:23:50 -07:00
Cameron Clough 7db6687227 UI: PrimeUserWidget cleanup (#28300)
* cleanup

* setMargin is obsolete

* more
old-commit-hash: 13cf6957384f0ce620c6f74f87f77d04e19800c3
2023-05-25 16:40:40 -07:00
Cameron Clough 36a72433c7 UI: update "Finish Setup" widget style (#28287)
* UI: update SetupWidget registration design

* SetupWidget: add icon

* Revert "SetupWidget: add icon"

This reverts commit 325d2d390496f287953beb1634b229ff4ff31717.
old-commit-hash: 387e865793a72011a6dfa096557987601c816809
2023-05-25 13:01:51 -07:00
Cameron Clough 397665d45c UI: add missing QPushButton pressed styles (#28289)
* UI: add missing QPushButton pressed styles

* keyboard is special
old-commit-hash: 488975f06ec6a282e023dbd5db9e265299458f4c
2023-05-24 22:44:10 -07:00
Dean Lee 7be85a4550 ui: update DM icon at every frame (#28226)
old-commit-hash: 634280ca5117a014cc7f2620e94ebc62c050d70e
2023-05-24 20:46:27 -07:00
Dean Lee cdd5958ab7 ui/MainWindow: use switch in eventFilter (#28276)
old-commit-hash: 2c44c8980c3893c01453049dd06a396e6f2358ad
2023-05-24 20:45:58 -07:00
Shane Smiskol 33ddd8eb44 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
old-commit-hash: 26064196d0362d7719ce7b1ee835eb2193a3dc57
2023-05-24 17:28:33 -07:00
Cameron Clough 5560082d37 UI: cleanup OffroadHome layout (#28284)
old-commit-hash: d6592436481e448933e8124541a8d5654a3b3d34
2023-05-24 15:41:14 -07:00
Cameron Clough a02f688db2 UI: reduce margin around software version (#28283)
old-commit-hash: 94937e0694d600bf15c4180452acf1a2029bf81c
2023-05-24 15:00:17 -07:00
Dean Lee b6fe3eac41 ui/settings: fixed button overlap in sidebar. (#28220)
fix button overlap
old-commit-hash: 781a6fcc5fcdc8b73040e16c1994f655ee79593d
2023-05-17 20:16:39 -07:00
Dean Lee 8f2084089d ui/drawDriverState: don't draw circle bg twice (#28168)
do not draw circle bg twice
old-commit-hash: fe6ce429c5e05a918f8838665a49ab442a483dc6
2023-05-16 14:01:06 -07:00
Dean Lee 9858839db0 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
old-commit-hash: 8ca3be97880cfddb230f02924017d9a2edeb7a89
2023-05-15 13:08:21 -07:00
Harald Schäfer 5ddceb553d 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>
old-commit-hash: 598343aad18a7896c6b65ff6e19f9e27ba19cc10
2023-05-15 09:29:57 -07:00
Adeeb Shihadeh 472a1cf63b ui: catch silent EGL failure (#28169)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 432f316e8df9fd614f784f0b5b3b445d14cc5f8e
2023-05-11 15:22:09 -07:00
Cameron Clough f655f6ca59 training guide: higher quality image (#28152)
* use better image

* update touch area bounding box
old-commit-hash: 3ba60a6a96db5a36ece78d555c5c1e377342fe77
2023-05-09 20:32:47 -07:00
Dean Lee 688bc0337e 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>
old-commit-hash: 2ec14c2065dfee6f624e592eff2f9d96b784ad61
2023-05-09 20:25:53 -07:00
Shane Smiskol 3af7b02a26 seldrive: use common sig handler (#28127)
* Update main.cc

* Update util.h

* same for navd
old-commit-hash: e780cca8b63987776d6408c3e1f64fb4c292a78f
2023-05-08 14:27:04 -07:00
Shane Smiskol 4f88c90d83 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>
old-commit-hash: 884e36bc9dfae0f5d374e41feee4f222e2cb62f7
2023-05-05 16:11:16 -07:00
Willem Melching 075df3ec20 qt/util.c: clearLayout, support QFormLayout (#28105)
old-commit-hash: 7a31bd12af859b44ad40315aafa791a1c2eab3f6
2023-05-04 10:59:37 -07:00
Cameron Clough 0cdfb86dd4 UI: cleanup old training guide coords (#28091)
old-commit-hash: cae43511dc547aac56a47f2d4e0705a7efda70c3
2023-05-04 00:08:50 +00:00
Adeeb Shihadeh cdbf69f724 UI: cleanup old training guide assets (#27973)
* UI: cleanup old training guide assets

* rm that
old-commit-hash: 38b99b5461f98b24d9a73c17aa5b6833f0c0e419
2023-04-19 11:10:50 -07:00
Angus Gratton f1e674f30c 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>
old-commit-hash: fbcd0821c92af58137e5b34f0cfe37ffd1c08642
2023-04-19 11:06:54 -07:00
Willem Melching d4cea1f024 cabana: enable Hi-DPI support on MacOS (#27965)
old-commit-hash: 475903e24486be0a5be2bb935db221832c9cd239
2023-04-19 10:48:36 -07:00
AlexandreSato d1147b4e6d Multilang: update pt-BR translations (#27767)
old-commit-hash: 852f67dc8818abe011aa7ad4f2e425fc1d9f81e8
2023-03-31 11:29:08 -07:00
Lee Jong Mun 18f13cd66e Multilang: kor translation update (#27756)
old-commit-hash: 2c13bfac7498adb17d526c5472228f4bf4b09780
2023-03-30 17:34:39 -07:00
royjr 52cb1ca0f1 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>
old-commit-hash: c2d13e529219422b942cbedcc3a496e2c936dd9b
2023-03-30 14:27:05 -07:00
Jason Wen fe5fee6931 torqued: reset LiveTorqueParameters on calibration reset (#27737)
* torqued: reset LiveTorqueParameters on calibration reset

* gotta have this
old-commit-hash: 8e3ed8f10b5e9eae52b1374a81d46dcd022e3598
2023-03-29 14:30:27 -07:00
Vivek Aithal 467040bbd0 Revert "torqued: reset LiveTorqueParameters on calibration reset" (#27736)
Revert "torqued: reset LiveTorqueParameters on calibration reset (#27732)"

This reverts commit 61bcfed6d92a13d994e56c1360d96f6026f40f7e.
old-commit-hash: 46069738d6f4a5c40e4aededbba797b38f8d4bcb
2023-03-29 14:01:22 -07:00
Jason Wen 1187234757 torqued: reset LiveTorqueParameters on calibration reset (#27732)
old-commit-hash: 18253982db08434f42a660689144a1d4eafd1a1b
2023-03-29 13:56:45 -07:00
Dean Lee 13aad29d76 ui: remove lupdate warnings: "Qualifying with unknown namespace" (#27616)
old-commit-hash: d8a55de1669704e7a847c346f715d0659d54e9ca
2023-03-17 16:14:43 -07:00
Adeeb Shihadeh 09e9ae012b UI: remove spammy CameraView log
old-commit-hash: 9a6bcba7416b9e3f4dcf527131f4ca7250bb0f35
2023-03-15 14:34:33 -07:00
Dean Lee 2936d72386 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>
old-commit-hash: d5375af2f5c9f74cb88ffa1ab52feb9fef77a43c
2023-03-14 13:59:22 -07:00
Harald Schäfer f05cf4cdf1 Only trust locationd for nav (#27579)
* Only trust locationd for nav

* unused var
old-commit-hash: d75ee19defc279837f64fd62a0dbe2db4acd1a2d
2023-03-14 09:25:09 -07:00
protonchang 70170f9c41 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
old-commit-hash: dc5a65049ef93cd0c342d32cc5eecef32e0bb145
2023-03-10 15:39:16 -08:00
AlexandreSato 9c27549946 Multilanguage: update pt-BR translations (#27546)
update pt-BR translations
old-commit-hash: 572eba78a675836e036456afc6e1bb2f14e9a3d6
2023-03-09 17:17:22 -08:00
Harald Schäfer 080ac41ce0 Enable dmoji crosshairs in gray when not enabled (#27491)
* try

* add fade back

---------

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

* prerender
old-commit-hash: c995acda7c502bc14fff431ba4832faa9dbaec18
2023-02-28 03:01:55 +08:00
Cameron Clough b7b61c1faa setup: set download timeout (#27441)
old-commit-hash: f64fa07b0a42bb04d036f1280953dbbd27de41a0
2023-02-23 19:46:06 -08:00
Cameron Clough 8491b5db66 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>
old-commit-hash: 79e6910106de6ae25127613728332e8b743d962a
2023-02-23 19:45:48 -08:00
Cameron Clough d35ed17e63 setup: write installer URL to tmpfile (#27426)
* setup: write installer URL to tmpfile

* missed ptr type
old-commit-hash: 90db46e7756e2eb6d61b1ff23f7cb4a7b356abb9
2023-02-22 17:26:37 -08:00
Adeeb Shihadeh d372fb4c3d AGNOS system reset: handle ABL reset (#27418)
* AGNOS system reset: handle ABL reset

* no more tapping

* eta
old-commit-hash: 72539fa177a4e3f320daf3257038ef3f2e4893ac
2023-02-21 21:34:02 -08:00
Dean Lee 7cd3e178c1 cabana: add qrc resource file (#27386)
* add qrc resource file

* remove export
old-commit-hash: 8e3cb0fb2075cc0e21f0362dad467cd992291c3a
2023-02-19 15:14:13 -08:00
Harald Schäfer 0ac73f2a81 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
old-commit-hash: eb8bdc0026b49de2fc5107746baeadbd42f58550
2023-02-17 19:58:30 -08:00
Adeeb Shihadeh 261f4d7524 UI: fix old frame shown on startup (#27283)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1f85f84027015ee20fa4affff23e121f4388d93c
2023-02-09 20:44:29 -08:00
ZwX1616 8fd5f1b50d 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>
old-commit-hash: 955c1dff454babe200862f0011e639ec500938b3
2023-02-08 19:06:59 -08:00
Cameron Clough 4d4c0c45b9 setup: replace software selection widget with input dialog (#27236)
* setup: replace software selection widget with input dialog

* revert

https://github.com/commaai/openpilot/pull/21617/commits/3f7047651c31b209c9c4a0b8ff7bd408aca3f9e5
old-commit-hash: 1a0a6387409203e1a2611eb35882de7a931ca703
2023-02-07 11:37:25 -08:00
Cameron Clough 23cf988d3c setup: check installer is elf (#27241)
old-commit-hash: 074e74ad08e199f189d4d84f73b2a9df1061eb97
2023-02-07 11:37:03 -08:00
Cameron Clough 0276badcc0 setup: add serial to request headers (#27237)
* setup: add dongle ID to request headers

* rename openpilot

* fix str

* hardware: get_serial

* set serial instead

* fix typo

* static

* fixes
old-commit-hash: 6fb5661abba34971e547941e0f6a6625bef3b75a
2023-02-06 20:02:30 -08:00