Commit Graph

53 Commits (f9072199571742f9e349990bb58540401a863f67)

Author SHA1 Message Date
Adeeb Shihadeh f907219957
Qt onroad alerts (#20776) 2021-05-04 23:23:00 -07:00
Adeeb Shihadeh ed3b6bd90c
UI: fast startup (#20781)
* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-05-04 10:05:23 -07:00
Dean Lee 81491dc57f
c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
2021-05-03 11:53:11 +02:00
Dean Lee 4781598e12
Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
2021-05-01 14:12:35 -07:00
Adeeb Shihadeh db9319405b
Qt Sidebar (#20775)
* revive #19877

* looks like a sidebar

* more like a sidebar

* cleanup

* fix qcom2

* style

* that's the sidebar

* more space

Co-authored-by: Comma Device <device@comma.ai>
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh 140e6248e2
UI: refactor GLWindow (#20764) 2021-04-29 11:18:59 -07:00
Adeeb Shihadeh 32d317239a
let GPU sleep while offroad (#20640)
* better script

* let adreno sleep

* remove

Co-authored-by: Comma Device <device@comma.ai>
2021-04-09 17:27:35 -07:00
Comma Device 7466ad6802 fix drive stats offset on home screen 2021-04-06 16:16:23 -07:00
Dean Lee 31a612c6e4
fix: read brightness from persistent params (#20544) 2021-03-31 00:58:37 -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 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
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
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
Adeeb Shihadeh 0ccaec495c
offroad alert improvements (#20443)
* alert niceties

* cleanup

* move the button

Co-authored-by: Comma Device <device@comma.ai>
2021-03-22 22:54:22 -07:00
Adeeb Shihadeh f1da1f9cb2
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
2021-03-22 19:51:44 -07:00
Adeeb Shihadeh 106ed2ea66
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>
2021-03-22 14:27:37 -07:00
Adeeb Shihadeh 61a0129fdc
tici touch ups (#20434)
* tici touch ups

* trim

* less squish

Co-authored-by: Comma Device <device@comma.ai>
2021-03-22 13:40:08 -07:00
Adeeb Shihadeh 0b16ed9dc9
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>
2021-03-20 21:18:07 -07:00
Adeeb Shihadeh d45550c424
UI HW Abstraction layer (#20301)
* start cpp hw abstraction layer

* cleanup

* only set brightness on change

* confirmation dialogs

* add to release files

* fix tici brightness

* using percentage now

Co-authored-by: Comma Device <device@comma.ai>
2021-03-10 22:51:50 -08:00
Willem Melching 026a580ee3
Use exposure for screen brightness (#20290)
* use camera to set screen brightness

* leave default

* lower default

* fix offroad

* increase offroad brightness

* ifdef ifndef

* fix qcomgp
2021-03-09 17:58:26 +01:00
Willem Melching a94ba4fb8b
Add watchdog check to manager (#20277)
* this should work but doesnt

* Only offroad

* works

* make it work offorad

* reduce diff

* cleanup

* need util

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-08 19:17:46 -08:00
Willem Melching 0d02e85873 set brightness, catch exceptions 2021-03-04 13:19:30 +01:00
Dean Lee dd603a89f6
UI: Move the variables need to be updated by socket to UIScene (#19783)
* move variables into UIScene

* rebase master

* rebase master

* rebase master

* rebase master

* rebase master

* rebase master

* fix build error

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-03-03 17:40:50 +01:00
Dean Lee 8db3eea6c5
UI: rename frontview to driver_view (#20228) 2021-03-03 11:38:41 +01:00
grekiki a53c361bd4
Qt-UI add driver monitoring view in offroad (#20148)
* should work, need to test onroad

* reduce diff

* Update home.cc

Co-authored-by: Comma Device <device@comma.ai>
2021-02-25 16:14:25 +01:00
grekiki b805200194
Qt-UI Close settings when screen turns off (#20117) 2021-02-23 14:40:56 +01:00
grekiki dab2e1298b
Qt ui: close settings on onroad transition (#20114)
* need to test

* works

* reduce diff

* refactor

Co-authored-by: Comma Device <device@comma.ai>
2021-02-22 10:47:33 +01:00
Willem Melching 7054a9d237 dont print slow frame on pc 2021-02-09 16:29:05 +01:00
Adeeb Shihadeh d75ff15048 fix font weights in qt ui 2021-02-05 17:50:19 -08:00
Dean Lee c22d6e315d
UI: mv sidebar_collapsed&viz_rect to struct UIState (#19782)
* mv sidebar_collapsed&viz_rect to struct UIState

* rebase master

* rebase master

* rebase master

* revert that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-01 16:10:15 -08:00
Dean Lee 6583206ed4
convert framebuffer to class (#19800)
* class FrameBuffer

* fix build error

* remove bootlog
2021-01-28 14:47:05 +01:00
Willem Melching e11b677e01 qt ui: slow frame warning 2021-01-22 14:26:35 +01:00
Willem Melching 978d0c8964 qt ui: sync fps with camera 2021-01-19 14:56:56 +01:00
Willem Melching b67fed87ba visionipc connect, make sure opengl context is current 2021-01-19 14:49:40 +01:00
Willem Melching 06b974512a start timer only after ui init 2021-01-19 12:43:39 +01:00
grekiki 10bd761cd6
Qt offroad: pairing (#19675)
* kind of works now

* QR code is now on screen

* testing is needed

* works, waiting for server update

* reduce diff

* refactoring part1

* refactor part2

* refactor part3

* works on PC

* fix build, annoying bug though...

* git is annoying

* more classes, still crashes after a while

* better style

* clearer qr code

* less code and test new ssh key

* no more AA

* rename and collect garbage

* no pairing widget without the internet connection

* No network connection

* more logs

* refactor the network calls

* no more leaking

* works

* cleanup

* spaces

* works on device

* fix merge

* don't run if screen is off

* always initialized

* stats updating, not running without scrren

* formatting

* nicer QR code

* ensure the registration

* no qr code if no IMEI or no HWSerial

* all works

* refactor

* better networking

* all functionality seems to work

* small cleanup

* get serial once

* Small cleanup

* No internet text

* Don't crash if private key not found

* no network should say so

* new qr code every 30 minutes

* 20FPS sidebar

* more responsive networking and QR

* more logs

* no log spam

* fix merge

* no running onroad

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-18 12:07:55 +01:00
Dean Lee d7fad16c20
Remove spaces (#19779) 2021-01-15 22:17:58 -08:00
Dean Lee 7a6ec83a36
qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android (#19765) 2021-01-15 11:57:26 +01:00
Willem Melching fb496c692a
VisionIPC 2.0 (#19641)
* Squashed vipc

* Update release files

* Remove else

* add visionipc to release files

* use poller in vipc receive

* opencl framework instead of lib on macos

* Fix camera webcam

* Fix opencl on mac in ui

* more webcam fixes

* typo in ui sconsfile

* Use cur_yuv_buf

* visionbuf c++ class

* Camera qcom was still using visionbuf_allocate

* Turn loggerd back on

* fix snapshot

* No build needed

* update test camerad

* no more release callback

* make encoder c++

* Revert "no more release callback"

This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.

* fix exit handlers

* No need to check errno

* move release callback call

* s/VIPCBufExtra/VisionIpcBufExtra/g

* use non blocking connect

* ui use non blocking connect

* Lower condition variable wait time

* Snapshot cleanup

* bump cereal

* bump cereal
2021-01-08 14:54:25 +01:00
Willem Melching 250f285894 Nicer blue/red colors offroad alert button 2021-01-04 10:33:43 +01:00
Dean Lee 0c4e2fadc8
UI:shorten variable name (#19633) 2021-01-03 12:25:24 -08:00
Adeeb Shihadeh 0300eb3849 tici: fix backlight timer interval 2020-12-30 01:19:49 -08:00
Adeeb Shihadeh ce48d3c91e
offroad home style (#19593)
* make drive stats look nicer

* offroad alerts style

* rest of alerts

* move that

* fix up colors

Co-authored-by: Comma Device <device@comma.ai>
2020-12-25 01:02:47 -08:00
Adeeb Shihadeh a36632cc39 offroad home styling and cleanup 2020-12-18 16:40:23 -08:00
grekiki 5b26c97141
Qt Offroad stats (#19498)
* probably broke a lot, need the commit though

* finally works

* make it work...

* ...

* kind of works

* better styling

* all should work

* tiny cleanup

* temp

* looks nicer

* create JWT in C++

* kilometers -> km

* use correct free methods

* dont put code in assert statement

* Build JWT payload dynamically

* get dongle id once

* include cleanup

* Remove qDebug

* Update drive_stats.cc

Github is a nice editor :)

* swap week and all and fix sconscript

* install openssl

* openssl include dirs on mac

* is this where openssl is?

* It's here

* small cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-18 13:29:20 +01:00
grekiki bffdfd5303
Dynamically colored alert widget. (#2717)
blue background on update
2020-12-10 23:39:15 +01:00