Commit Graph

490 Commits

Author SHA1 Message Date
Comma Device 7a01d56255 fix cut off qr code
old-commit-hash: 18e60751c2a1792db39731c7e0371c715a422424
2021-04-05 20:14:12 -07:00
iejMac 71f065bf19 text window starts scrolling at bottom (#20587)
* text starts scrolling at bottom

* comment
old-commit-hash: 9e4748db8bca27b6909d03bc87d2d309636b5c11
2021-04-05 14:27:14 -07:00
Adeeb Shihadeh 421e27fabd hide set speed for stock long (#20585)
old-commit-hash: e4d7ee3716bd68d4128ea13796fec5d527293012
2021-04-05 13:46:26 -07:00
Dean Lee 65a52f5163 remove memory leak in create_jwt() (#20547)
old-commit-hash: d14aba45803fa3b49c48914d0c38f2c8872286b4
2021-04-05 10:05:04 -07:00
iejMac 9238fade18 scrolling in text window (#20564)
* grid layout  + better scrollbar

* style

* style

* tabs

* scrollbar behind button fix

* alerts background color fix (#20568)

* horizontal style + more space for scrollbar

* fixes

* fixes

* fixes

* remove background on scroll bar

* fix horizontal overflow

* indent'

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 10e4d321977928a7314cd4149ba29ea08798820a
2021-04-03 01:18:26 -07:00
iejMac bcbf844dda alerts background color fix (#20568)
old-commit-hash: 86a78581e392c7205a6ba62401ad7589963a8497
2021-04-02 14:03:49 -07:00
Comma Device c671dca363 update qt setup
old-commit-hash: 204d878c6f538891f36073cf364f14c6561126d9
2021-04-01 22:12:33 -07:00
iejMac a2e14a8a0c Qt scroller class (#20549)
* initial commit

* class works

* cleanup

* naming

* text window

* fixes

* alerts are now scrollable

* dismiss

* fixed placement

* realease scrolling

* better

* better

* revert text

* naming

* parent
old-commit-hash: 9afa14c47fa40023cf1abb1956d7e2815aab9409
2021-04-01 14:03:31 -07:00
Willem Melching 8a73aabaa4 RequestRepeater remove memory leak through payloads argument
old-commit-hash: 7bc0b27ae540c941914f63e8fc5f81f8c515eb1b
2021-03-31 10:56:42 +02:00
Dean Lee 9727c82514 fix: read brightness from persistent params (#20544)
old-commit-hash: 31a612c6e4089fd709757f34da96ef33d5b27ca3
2021-03-31 00:58:37 -07:00
Comma Device 7083aea085 fix lib order
old-commit-hash: 588778e16811b125aeeaa8da275cd824ebbbeec4
2021-03-30 19:46:40 -07:00
Adeeb Shihadeh 8d660d9cbf small UI cleanup
old-commit-hash: a5a61a2bd5bf9e2ae773678ae3cac45fc45b7abd
2021-03-30 14:48:22 -07:00
Willem Melching 535621bc52 Revert "Add device_type to class Hardware (#20535)"
This reverts commit 2d15844f518b4f606f61e788fc2d3d14fb21e70b.

old-commit-hash: 7372b9bba5829f08d201a0226a7a86fd2d554e04
2021-03-30 17:36:04 +02:00
Dean Lee 75da59b835 Add device_type to class Hardware (#20535)
* add device_type to HadWare class

* always wake on PC

* use cereal::InitData::DeviceType
old-commit-hash: 9922688f8b43425b16b9be6e445dfa87348055e4
2021-03-30 16:13:49 +02:00
Dean Lee 808e187f42 refactor draw_circle_image (#20473)
old-commit-hash: a93f787cef6e6d8e57b1d78433f9810f142a176c
2021-03-30 13:32:07 +02:00
Dean Lee 405df8b165 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
2021-03-30 12:54:59 +02:00
Dean Lee aa1474467e Added new util class FirstOrderFilter (#20303)
* new class FirstOrderFilter

* flick face icon

* revert ui_draw_vision_face

* new function reset()

* reset after update

* use filter to update brightness
old-commit-hash: 6db31b9a33e6caab06645be898957e2414a6dedc
2021-03-30 12:09:06 +02:00
Dean Lee 8c09067b27 faster driverview start (#20507)
old-commit-hash: 32c4cf00c2d6bac059516cc44494808cf5a408ca
2021-03-30 11:51:18 +02:00
Dean Lee 86a217dca7 OffroadAlert: update alerts inplace (#20463)
* refactor

* cleanup

* use QWdiget instead of QStackWidget

* continue

* remove duplicate setMargin

* dont parse alerts if updateAvailable

* kind of works

* alerts work

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: bf1001e54b8a0a3f18fe1022f4ffd2e46f74e432
2021-03-29 21:50:16 -07:00
Adeeb Shihadeh bbdd55bbc6 cleanup tici networking + remove pagination (#20528)
* remove wifi pagination

* cleanup

* little more cleanup

* fix tethering button

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: bd12a787ff6674551c63814fcee6eec75e995030
2021-03-29 19:11:27 -07:00
Comma Device 3766830f65 training guide: make coordinates relative to img
old-commit-hash: 9896438d1511602a1ff87f7c4eb3c7172b30104a
2021-03-29 16:46:12 -07:00
iejMac 99b3111351 settings scrolling improvement (#20525)
* no overshoot

* removing line

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3e190435e387a8f787f829ddf3282e6e948b45f4
2021-03-29 16:32:04 -07:00
Adeeb Shihadeh 846a43b3e4 scrolling improvements (#20524)
* fix scrolling problem

* continue

* set panel margin in one place&add stretch to prevent title flicker

* adjust padding

* remove stretch

* no border

* fix padding

* better padding

* cleanup

* continue

* add stretch to prevent flicker

* reduce padding

* typo

* revert taht

* no background

* pretty good

* remove

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c73781f840fd82d8969a9d66c57f5726a8a11966
2021-03-29 14:29:23 -07:00
Comma Device ee9bc8cf08 fix offroadTransition signal name
old-commit-hash: 624065cb5b0290c85533f40492b709e0822251e9
2021-03-28 23:42:19 -07:00
iejMac 4a3e73ddb5 disable buttons when onroad (#20475)
* disables reset calib

* works for all buttons

* naming convention + final works on PC

* stylesheets + works on manager.py

* fixing stylesheet

* add that backg

* no reviewing while onroad

* better disabled hint

* little cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d63dab950a102bc69cca515b6f3ab4ffd896b4fd
2021-03-28 23:32:09 -07:00
Dean Lee c5194fcb85 Qt: show username for current SSH keys (#20508)
* Show username for current SSH keys

* Update ssh_keys.cc

* Update ssh_keys.cc

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

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

* rename param

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5cd676797a21215dcf574d545f38ec2e1a0b14f0
2021-03-28 22:32:33 -07:00
Comma Device 40f5b22071 show serial number in settings
old-commit-hash: aa457a348ac2edbbf24ffb8cad8327d83177ad65
2021-03-28 21:31:58 -07:00
Adeeb Shihadeh 72c497d105 sound cleanup (#20491)
* fix high CPU usage when playing repeated sounds

* fix build

* fix cpu usage

* same behavior for now

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c030493eb648e99700ae0872205bc0956538c0d2
2021-03-28 20:45:47 -07:00
Adeeb Shihadeh 5ef648fe02 filter out touches while in android activity (#20515)
* filter touches while in android activity

* only check after launching activity

* move to hw abstraction layer

* little cleanup

* remove print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a2084c2a601ba138c41494420f8275295357981f
2021-03-28 03:53:03 -07:00
Dean Lee 35f63336e9 ui: don't log slow frame message in driverview (#20509)
* Don't log slow frame message in driverview mode

* white space
old-commit-hash: 318fa3f50a59d72684b844fd61e97b29556f8699
2021-03-27 13:38:48 -07:00
Comma Device 64c2ce90ca UI: limit version string length for master-ci
old-commit-hash: 364b083c59bfb078ec7088edbf28e5d23b3d60e8
2021-03-26 19:30:32 -07:00
Adeeb Shihadeh d82d87c9d6 new training guide (#20495)
* new training guide

* fix end

* new step1

* better images

* update images
old-commit-hash: fd15a21c5a6b45e531820cd70f2e6fe77e2dbfad
2021-03-26 16:43:14 -07:00
Willem Melching 8c296312e3 Cache prime/points widget (#20497)
* cache prime status on homescreen

* use stacked widget

* add caching and clear on 404
old-commit-hash: d43d62561063c4d3f8b10b08d7bde9ed8bd0f395
2021-03-26 14:53:12 +01:00
Willem Melching 69cc390ffb drive_stats.cc: fix distance rounding
old-commit-hash: 32330bbf8930bf20ef9ef2c54682faa5c30eff6c
2021-03-26 14:52:47 +01:00
Dean Lee ae8893a77f Qt: cache home screen state (#20395)
* cache drive stats

* don't parse response if it's the same as previous

* remove blank line

* cleanup

* update stats in place

* validate json

* add DriveStats to params.pyx

* cleanup

* cleanup

* remove //#include

* simplify

* add cache to RequestRepeater

* rename CachedDriveStats to ApiCacheDriveStats

* rename ApiCacheDriveStats to ApiCache_DriveStats

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 80ae6a7e1b1d1ec231c4719b677fd08b22818ce1
2021-03-26 13:29:30 +01:00
Adeeb Shihadeh f99a578e45 always qt
old-commit-hash: f811dcc0cb4881fc6b1139d27a0fc15141c28f69
2021-03-26 01:03:42 -07:00
Comma Device e11b03e9b1 fix qt spinner height
old-commit-hash: dc0bfaaeadc9c1a6fb81566885c4e0df4a7e3500
2021-03-25 22:43:34 -07:00
HaraldSchafer 5133da1160 new description for laneless (#20474)
* new description

* emoji
old-commit-hash: 4c24385018166de3047fb1d717c6ce22c5f0a367
2021-03-25 19:59:46 -07:00
iejMac 5f96a3407b review training guide button (#20466)
* works

* move the param deletion

* clean that up

* Revert "move the param deletion"

This reverts commit 31d8a65f004e7bcf14d29465a9c9d6db03e9dee7.

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 806226820cb76c83a33dc0f83cc4d67e8c657226
2021-03-25 17:36:44 -07:00
iejMac 0f1140931f fix (#20477)
old-commit-hash: d78546afbd91bcbf2f6c147eac3f30c3db31a09d
2021-03-25 17:09:23 -07:00
Dean Lee 7756fb0739 Qt input: pass QString by reference (#20467)
* simple arry for keyboard layout

* revert some changes
old-commit-hash: f7957f681d2b2d336d7d4ad443f08f668af2da64
2021-03-25 14:15:58 -07:00
Adeeb Shihadeh 30f036680b Qt touchups (#20465)
* reduce minimum size

* clean that up

* consistent

* feels pretty good

* cleanup

* less laggy toggle

* openpilot

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7f56991b41c40a765125635919a91bca55815bd6
2021-03-24 21:18:12 -07:00
iejMac fe30561f77 QML terms (#20439)
* initial_commit

* rich text + color

* nice scrolling

* margin

* print on scroll + some margins

* print on scroll + some margins

* working, needs a lot of improvements

* should be done

* initial_commit

* rich text + color

* nice scrolling

* margin

* print on scroll + some margins

* print on scroll + some margins

* working, needs a lot of improvements

* should be done

* update tests

* Revert "update tests"

This reverts commit 94d5ed789eb79bedc9544fc27b4d14c0acc44adf.

* cleanup

* QuickView -> QuickWidget

* tuned scrolling

* cherry on top

* screen size scaling

* load from html

* fixing tabs

* signal fix

* TABS

* mistake

* rename

* camel case

* transparent background

* naming + point->pixel Size

* style

* util::read_file

* adjusting font size

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 55926e762a5198a0a8456419b9afa1d6cb22bb4e
2021-03-24 19:30:52 -07:00
Adeeb Shihadeh 51c13aa552 APK purge (#20446)
* purge begins

* release files

* remove those

* no more android

* only qt

* text and spinner

* neos update script

* update sounds

* update cpu usage

* all done

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e76c80ffa1b6167fd69465c66f31fbe475762330
2021-03-24 14:30:41 -07:00
Adeeb Shihadeh 5fc14c8db3 Qt UI: power saving (#20456)
* c2 power saving

* clean that up

* that works

* add to hw

* set power

* release files

* add that

* include hw base

* pc joins the party

* util

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49748d5dc109322f73b2abcbe6d5efa60a394750
2021-03-24 11:09:39 -07:00
HaraldSchafer eae1fa481c New KL model + laneless toggle (#20454)
* New model: 0bf38240-6b55-42b0-bcfb-da08ff5cd0b9/650

* laneless baby

* hardcode model difference for now

* kale toggle

* kale emoji

* sensible description

* make clear it is not just for ui

* emojis dont work yet

* 9671a8fe-539f-4a04-a163-54571df21139/650

* new model

* only read param on rising edge of ignition

* update toggle text

* fix that

* update refs

Co-authored-by: mitchell <mitchellgoffpc@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7ee79c99236f749d02a6779b006ee1ab187e0612
2021-03-24 01:10:31 -07:00
Willem Melching 079da64cf2 ui: unify terms scrolling
old-commit-hash: 621824d813f44bf1b1b8ef62645006b81fac2a90
2021-03-24 08:57:22 +01:00
Adeeb Shihadeh fd5ea05d20 add description for SSH keys
old-commit-hash: c33f839e9d1b7bb4b5f87b70affbe881a2f20795
2021-03-24 00:32:09 -07:00
Adeeb Shihadeh da90758a55 add descriptions in settings (#20453)
* add descriptions

* scroll scroll

* clean up

* try this

* scrolling on touch

* better scrolling

* we can afford 30fps

* remove that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c89e17e0d53bd643fb236cd637a0041292fb9c14
2021-03-24 00:22:33 -07:00
Adeeb Shihadeh 96378a5b91 offroad alert improvements (#20443)
* alert niceties

* cleanup

* move the button

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0ccaec495c16111f4be47ec9e4104750efed586c
2021-03-22 22:54:22 -07:00