Commit Graph

1438 Commits

Author SHA1 Message Date
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

https://github.com/commaai/openpilot/pull/21617/commits/3f7047651c31b209c9c4a0b8ff7bd408aca3f9e5
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
Cameron Clough 6fb5661abb 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
2023-02-06 20:02:30 -08:00
Cameron Clough b462463fbf installer: do not translate git progress strings (#27238) 2023-02-06 17:09:13 -08:00
Cameron Clough 9a51275cd2 setup: fix button label on ethernet (#27235)
* setup: continue without wi-fi on ethernet

* switch around
2023-02-06 15:43:25 -08:00
Cameron Clough 68bcdaaff7 settings: highlight nightly in branch switcher (#27227) 2023-02-06 10:40:45 -08:00
Cameron Clough 20fb2b9bb3 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
2023-02-02 14:28:45 -08:00
Rewat S ef0e8a3127 Multilang: add missing Thai translations (#27148)
* Multilang: add missing Thai translations

* Multilang: update Thai translations

* Multilang: add missing Thai translations
2023-02-01 14:17:06 -08:00
AlexandreSato e507830a1c Multilang: new pt-BR translations (#27021)
* improve pt-BR translations

* update pt-BR translation

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-20 15:28:48 -08:00
Adeeb Shihadeh e883976a32 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>
2023-01-20 14:11:43 -08:00
Adeeb Shihadeh 75fd2e1199 skip lupdate on device 2023-01-20 13:11:51 -08:00
AlexandreSato 2c5a952a1c Multilang: improve pt-BR translations (#26962)
Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-01-20 11:33:05 -08:00
Shane Smiskol 986ec99f82 Multilang: add back some translations (#27019)
* add back translations

* 🤔

* actually shouldn't be a space
2023-01-20 11:29:10 -08:00
Adeeb Shihadeh da621245b2 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>
2023-01-20 10:46:45 -08:00
Lee Jong Mun 40cc43c076 Multilang: kor translation update (#27013) 2023-01-20 10:43:14 -08:00
Adeeb Shihadeh c408b7e306 UI: show experimental long available to release users (#26910)
* UI: show experimental long available to release users

* more description

* cleanup

* hide toggle

* fix process replay

* clear param

* actually fix
2023-01-19 23:06:18 -08:00
Shane Smiskol c1fcd63bba cameraview: fix spaces in debug print 2023-01-19 18:42:34 -08:00
Dean Lee c21d9408a1 cabana: use bootstrap icons (#26981)
* use bootstrap icons

* typo

* build into asset_obj

* add to files_common
2023-01-18 13:19:23 -08:00
Adeeb Shihadeh ef42652368 fix typo AR0321 -> AR0231 (#26993) 2023-01-17 19:52:06 -08:00
Harald Schäfer 4c33d94d3f Revert locationd to gpsLocation (#26963)
* revert locationd laika change

* switch msg

* change proc replay

* back to gpslocation

* update ref

* no np floats in msg

* Ignore empty laikad messages in mapos

* more tolerance

* c++ doesnt work like that
2023-01-14 16:56:14 -08:00
Kurt Nistelberger 2b611862be match style 2023-01-07 17:56:16 -08:00
Kurt Nistelberger b6440304d5 Navigation: add destination marker (#26873)
* add navigation destination marker

* fix removal

* update default marker icon

* update default marker

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-01-07 17:53:14 -08:00
Shane Smiskol 304796bafe ui: draw radarState leads (#26852)
use radarState
2022-12-31 19:51:03 -08:00