Commit Graph

475 Commits

Author SHA1 Message Date
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
Adeeb Shihadeh 5cfc42911b Remove lane change toggle and default LDW to off (#20442)
* remove lane change toggle and default LDW to off

* update refs
old-commit-hash: 43ce7165c4eee9af167a650decdb8c3f11195d8d
2021-03-22 20:55:57 -07:00
Adeeb Shihadeh 2298d8f8f9 Qt UI: scale volume with speed (#20441)
* Qt UI: scale volume with speed

* for all hw

* way too loud for tici

* set volume

* volume

* swap
old-commit-hash: f1da1f9cb2731f5dc762e7780d79146e2a8f8e20
2021-03-22 19:51:44 -07:00
Adeeb Shihadeh fe474a58c4 fix offroad home on tici (#20435)
* grid layout was a hack

* duplicate slot

* looks better

* fix that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 106ed2ea6664dc8332412407a87d578db01d42ff
2021-03-22 14:27:37 -07:00
Adeeb Shihadeh ae0756edc6 tici touch ups (#20434)
* tici touch ups

* trim

* less squish

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 61a0129fdcecc83a0248946ccc1073356075427f
2021-03-22 13:40:08 -07:00
Adeeb Shihadeh e2eb4034f5 small style improvement in settings
old-commit-hash: 647c5804b8e8fc4cc0c43ec32d60ea0468ddb4df
2021-03-22 04:03:11 -07:00
Adeeb Shihadeh c360723411 Qt UI: SSH keys (#20430)
* rename

* toggle control

* SSH toggle

* hw

* qcom

* lines

* fix that

* start refactoring

* adding keys

* hacky remove

* alerts

* fix qcom ssl

* use the same widgets everywhere

* clean up

* more cleanup

* little more

* bigger

* fix tethering toggleg
old-commit-hash: e547a97216d226135e2b3a170fe0c525cc56f0e5
2021-03-22 03:52:28 -07:00
Comma Device c3c741af70 fix margin on c2
old-commit-hash: eda9538cc3e04d0fd8b45d6c73dfb1bb5f72397e
2021-03-22 00:02:49 -07:00
Dean Lee d7cf75fc64 Qt: use the AbstractControl for multiple types of controls (#20417)
* class ClickableLabel

* scrollable widget

* rename to controls.cc

* rename to AbstractControl

* cleanup

* remove useless stylesheets

* change button stylesheet

* cleanup

* better margin

* cleanup

cleanup

* remove bottom line from AbstractControl

* no scrolling for now

* add those back

* style

* clean up

* don't need a function for that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8be2e07f4f56bf784bd091d81df442b2718cff84
2021-03-21 23:53:56 -07:00
Adeeb Shihadeh 594c5f1f4b remove redundant update available title
old-commit-hash: ce5d93da449ffb4eb5eeb869b98865f9d7253499
2021-03-21 21:06:34 -07:00
Dean Lee d06d10da68 Qt: update developer page when it's visible (#20396)
* simplify&cleanup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ddde7efb4b0639436f7d19b191ee02201e0f97c5
2021-03-21 21:02:00 -07:00
Dean Lee 7c6b409b1d cleanup ui_draw_vision_event (#20386)
old-commit-hash: 00dcc94ae650629dd82a0e63ba71d7dbc6d8f23b
2021-03-21 20:27:16 -07:00
Dean Lee 61c02d55ab SettingsWindow: use list instead of map to preserve insertion order for sidebar items. (#20424)
* use a list instead of map to preserve insertion order

* unused signal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d34e414a65c02f27a966109661a29d9adad3ea76
2021-03-21 19:08:12 -07:00
Comma Device 20df6ce147 fix margin after setting DPI
old-commit-hash: 7954256a09ab609c8cf8858462116ef5ca65c75f
2021-03-20 22:00:25 -07:00
iejMac 4770c6d1c9 terms fixups (#20392)
* accept

* accept at end + env variables

* better

* testing some settings

* bottom margin

* nothing

* doesnt work

* don't need anymore

* clean up

* fix

* unused

* more prime widget cleanup

* Revert "more prime widget cleanup"

This reverts commit d44651ee8c501be61099dc4cd40fa0467bc315a3.

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6a9afd8460d31eb1a265dbee28bbfda64a6fdc97
2021-03-20 21:26:05 -07:00
Adeeb Shihadeh 17a3d6cb68 Qt UI: offroad home touchups (#20416)
* brand

* fix overlap

* touchup prime widget

* more prime widget cleanup

* don't need background layout

* fix overlap again

* more prime

* looks pretty good

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0b16ed9dc9a30b18998087e114acf14ff09c9708
2021-03-20 21:18:07 -07:00