Commit Graph

439 Commits

Author SHA1 Message Date
Dean Lee 57fe8488ac Qt: show current calibration values (#20455)
* show current calibration

* read calibration from capnp

* use CalStatus

* cleanup calibrationd.py

* remove import capnp

* keep json writing,remove comment

* fix test error

* cleanup

* remove test_read_saved_params

* cleanup

* write out capnp

* restore test

* clean up

* get calibration from CalibrationParams

* cleanup

* update calibration when the description is visible

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2021-04-06 15:02:40 -07:00
Comma Device 18e60751c2 fix cut off qr code 2021-04-05 20:14:12 -07:00
iejMac 9e4748db8b text window starts scrolling at bottom (#20587)
* text starts scrolling at bottom

* comment
2021-04-05 14:27:14 -07:00
Adeeb Shihadeh e4d7ee3716 hide set speed for stock long (#20585) 2021-04-05 13:46:26 -07:00
Dean Lee d14aba4580 remove memory leak in create_jwt() (#20547) 2021-04-05 10:05:04 -07:00
iejMac 10e4d32197 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>
2021-04-03 01:18:26 -07:00
iejMac 86a78581e3 alerts background color fix (#20568) 2021-04-02 14:03:49 -07:00
Comma Device 204d878c6f update qt setup 2021-04-01 22:12:33 -07:00
iejMac 9afa14c47f 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
2021-04-01 14:03:31 -07:00
Willem Melching 7bc0b27ae5 RequestRepeater remove memory leak through payloads argument 2021-03-31 10:56:42 +02:00
Dean Lee 31a612c6e4 fix: read brightness from persistent params (#20544) 2021-03-31 00:58:37 -07:00
Comma Device 588778e168 fix lib order 2021-03-30 19:46:40 -07:00
Adeeb Shihadeh a5a61a2bd5 small UI cleanup 2021-03-30 14:48:22 -07:00
Willem Melching 7372b9bba5 Revert "Add device_type to class Hardware (#20535)"
This reverts commit 9922688f8b.
2021-03-30 17:36:04 +02:00
Dean Lee 9922688f8b Add device_type to class Hardware (#20535)
* add device_type to HadWare class

* always wake on PC

* use cereal::InitData::DeviceType
2021-03-30 16:13:49 +02:00
Dean Lee a93f787cef refactor draw_circle_image (#20473) 2021-03-30 13:32:07 +02:00
Dean Lee 98e55996f6 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
2021-03-30 12:54:59 +02:00
Dean Lee 6db31b9a33 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
2021-03-30 12:09:06 +02:00
Dean Lee 32c4cf00c2 faster driverview start (#20507) 2021-03-30 11:51:18 +02:00
Dean Lee bf1001e54b 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>
2021-03-29 21:50:16 -07:00
Adeeb Shihadeh bd12a787ff cleanup tici networking + remove pagination (#20528)
* remove wifi pagination

* cleanup

* little more cleanup

* fix tethering button

Co-authored-by: Comma Device <device@comma.ai>
2021-03-29 19:11:27 -07:00
Comma Device 9896438d15 training guide: make coordinates relative to img 2021-03-29 16:46:12 -07:00
iejMac 3e190435e3 settings scrolling improvement (#20525)
* no overshoot

* removing line

Co-authored-by: Comma Device <device@comma.ai>
2021-03-29 16:32:04 -07:00
Adeeb Shihadeh c73781f840 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>
2021-03-29 14:29:23 -07:00
Comma Device 624065cb5b fix offroadTransition signal name 2021-03-28 23:42:19 -07:00
iejMac d63dab950a 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>
2021-03-28 23:32:09 -07:00
Dean Lee 5cd676797a 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>
2021-03-28 22:32:33 -07:00
Comma Device aa457a348a show serial number in settings 2021-03-28 21:31:58 -07:00
Adeeb Shihadeh c030493eb6 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>
2021-03-28 20:45:47 -07:00
Adeeb Shihadeh a2084c2a60 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>
2021-03-28 03:53:03 -07:00
Dean Lee 318fa3f50a ui: don't log slow frame message in driverview (#20509)
* Don't log slow frame message in driverview mode

* white space
2021-03-27 13:38:48 -07:00
Comma Device 364b083c59 UI: limit version string length for master-ci 2021-03-26 19:30:32 -07:00
Adeeb Shihadeh fd15a21c5a new training guide (#20495)
* new training guide

* fix end

* new step1

* better images

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

* use stacked widget

* add caching and clear on 404
2021-03-26 14:53:12 +01:00
Willem Melching 32330bbf89 drive_stats.cc: fix distance rounding 2021-03-26 14:52:47 +01:00
Dean Lee 80ae6a7e1b 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>
2021-03-26 13:29:30 +01:00
Adeeb Shihadeh f811dcc0cb always qt 2021-03-26 01:03:42 -07:00
Comma Device dc0bfaaead fix qt spinner height 2021-03-25 22:43:34 -07:00
HaraldSchafer 4c24385018 new description for laneless (#20474)
* new description

* emoji
2021-03-25 19:59:46 -07:00
iejMac 806226820c 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>
2021-03-25 17:36:44 -07:00
iejMac d78546afbd fix (#20477) 2021-03-25 17:09:23 -07:00
Dean Lee f7957f681d Qt input: pass QString by reference (#20467)
* simple arry for keyboard layout

* revert some changes
2021-03-25 14:15:58 -07:00
Adeeb Shihadeh 7f56991b41 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>
2021-03-24 21:18:12 -07:00
iejMac 55926e762a 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>
2021-03-24 19:30:52 -07:00
Adeeb Shihadeh e76c80ffa1 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>
2021-03-24 14:30:41 -07:00
Adeeb Shihadeh 49748d5dc1 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>
2021-03-24 11:09:39 -07:00
HaraldSchafer 7ee79c9923 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>
2021-03-24 01:10:31 -07:00
Willem Melching 621824d813 ui: unify terms scrolling 2021-03-24 08:57:22 +01:00
Adeeb Shihadeh c33f839e9d add description for SSH keys 2021-03-24 00:32:09 -07:00
Adeeb Shihadeh c89e17e0d5 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>
2021-03-24 00:22:33 -07:00