Commit Graph

1499 Commits

Author SHA1 Message Date
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
Cameron Clough a830d85ad6 installer: do not translate git progress strings (#27238)
old-commit-hash: b462463fbfdc3f4336206bf12b2f07e35473ac3a
2023-02-06 17:09:13 -08:00
Cameron Clough 3f75cdb6e3 setup: fix button label on ethernet (#27235)
* setup: continue without wi-fi on ethernet

* switch around
old-commit-hash: 9a51275cd246bcbf53da764495a944af8a0b51bd
2023-02-06 15:43:25 -08:00
Cameron Clough 44e1bf9fbf settings: highlight nightly in branch switcher (#27227)
old-commit-hash: 68bcdaaff7f9050402d983f460f2c85866b4ca32
2023-02-06 10:40:45 -08:00
Cameron Clough 0529c87f72 ui: tap experimental mode icon to toggle (#27064)
* ui: tap experimental mode icon to toggle

After experimental mode has been enabled for the first time (confirmed),
it can be toggled by tapping the engage-ability/experimental mode icon
in the upper right.

Closes #27002

* replace with QPushButton

* fixes

* cleanup
old-commit-hash: 20fb2b9bb3f06187665928eda6e740db29b45e5b
2023-02-02 14:28:45 -08:00
Rewat S 2d11b27019 Multilang: add missing Thai translations (#27148)
* Multilang: add missing Thai translations

* Multilang: update Thai translations

* Multilang: add missing Thai translations
old-commit-hash: ef0e8a312768e710e060e846e34c14255ffce028
2023-02-01 14:17:06 -08:00
AlexandreSato 43b7242be1 Multilang: new pt-BR translations (#27021)
* improve pt-BR translations

* update pt-BR translation

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: e507830a1c21490701d53093777bd2b5727202ca
2023-01-20 15:28:48 -08:00
Adeeb Shihadeh 6ab6b643a8 set path for extra qt bins on device (#27022)
* set path for extra qt bins on device

* no print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e883976a32a4190123d891f51cc567dfd77e6c85
2023-01-20 14:11:43 -08:00
Adeeb Shihadeh ee307600e9 skip lupdate on device
old-commit-hash: 75fd2e119946d2e5a850f924b5f33945435cad3f
2023-01-20 13:11:51 -08:00
AlexandreSato 758d8c78d7 Multilang: improve pt-BR translations (#26962)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 2c5a952a1c84a799b2951867943c4748618721d2
2023-01-20 11:33:05 -08:00
Shane Smiskol cf1dc17230 Multilang: add back some translations (#27019)
* add back translations

* 🤔

* actually shouldn't be a space
old-commit-hash: 986ec99f827f98e01290461e8e35ebb5b68dd0f3
2023-01-20 11:29:10 -08:00
Adeeb Shihadeh 4e3c449967 UI: update translations during scons build (#27009)
* UI: update translation during scons build

* all in scons

* debug

* precious

* debug

* add missing

* Update release/check-dirty.sh

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: da621245b2cc84dd972b0582bec077a008c8e871
2023-01-20 10:46:45 -08:00