Commit Graph

226 Commits

Author SHA1 Message Date
Adeeb Shihadeh aec5f32f3c publish experimental mode state (#26512)
* publish experimental mode state

* remove that
old-commit-hash: 9c96b21367af3dda9b193a821fe2e175a63f4176
2022-11-15 17:18:13 -08:00
Adeeb Shihadeh 74979a7c76 experimental mode (#26416)
* experimental mode

* rename param

* red lights
old-commit-hash: 9a3f46805104c4bcb5cffa304b9b322874ccf412
2022-11-08 14:45:01 -08:00
Shane Smiskol 5aa8e0789a ui: revert e2e path changes (#26382)
* Revert "ui: fade to default path color when inactive (#26375)"

This reverts commit 73bff7b2a9f0b49969bf2134393383fe5faa065d.

* Revert "ui: minor e2e path tweaks (#26351)"

This reverts commit d0f80298a6491d22ac67f1eea27b9cc57c8f22bb.

* stronger colors

45
old-commit-hash: e079751f79c5256b1881cb34d1a92d08faa128d7
2022-11-05 15:05:30 -07:00
Shane Smiskol b79c186192 ui: fade to default path color when inactive (#26375)
* fade to default path color when inactive

* long!
old-commit-hash: 0b385a5650c4e0b06eb83e44bdba3fcff117beeb
2022-11-04 21:04:53 -07:00
Shane Smiskol d3c22d56ac Update comment in ui.cc
old-commit-hash: 033ffa4a88bd4632e0e1ba5c4bcd4c4ba43e47bc
2022-11-04 02:30:14 -07:00
Shane Smiskol a81683f4ec ui: fix disappearing path with wide cam (#26354)
* split lat long icons

* no overriding border status, consider steering pressed for lat icon, spacing for readability

* add engageable back

add engageable back

add engageable back

* all the debugging code 🙃

* revert that stuff

* only the fix

* comment

comment

* fix dat

* explicit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 384f9402374e341843f503f871421a7b43437444
2022-11-03 23:07:29 -07:00
Adeeb Shihadeh 273b1c5b5c UI: draw onroad objects on right frame (#26306)
* update before draw

* fix a lot of janky

* fix more flicker

* cleanup

* fix flicker when opening settings

* simplify
old-commit-hash: c171fe9f9a93ef0e6018de5703ed55f307a8cb72
2022-10-31 23:01:22 -07:00
HaraldSchafer ed91648949 UI: fade into wide camera (#26203)
* UI: fade into wide camera

* handle routes with no wide calib

* more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbc30c053caacc689e1fafb5e92ff0fcac57db1d
2022-10-27 17:27:31 -07:00
Willem Melching e31ca17926 ui brightness: fix exposure scale factor (#26104)
old-commit-hash: f957f3391d291c355a789782f00d85aeaa67fabb
2022-10-20 11:25:20 -07:00
Adeeb Shihadeh 6831f3499f UI: only show cell settings on non-prime connection (#25067)
* fix indentation

* add primeTypeChanged signal to uiState

* hide advanced networking toggles on prime type change

* switch between map settings on prime type change

* cleanup

* remove duplicate code, wait for signal

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: 06e283a7504b23de79f12ec2c0a7ab280eda57e4
2022-10-05 16:10:14 -07:00
Adeeb Shihadeh bcd69adc33 UI: remove imu tap detection (#25924)
old-commit-hash: 391780551a362faf9c6c290d47313583d14aa594
2022-09-29 11:02:27 -07:00
Adeeb Shihadeh 52529fb8f6 fix autobrightness for OX03C10 (#25915)
* fix autobrightness for OX03C10

* fix scaling

* use cur ev

* oops

* bump cereal
old-commit-hash: 2384a9ee67fc4480199149657a031510f9f48d14
2022-09-28 15:45:15 -07:00
Dean Lee 8256220a51 ui: multilang date (#25741)
* multilang date

* update translations

* add language to uistate

* update translations

* use it here too

Co-authored-by: sshane <shane@smiskol.com>
old-commit-hash: 27e1ec8fd31192696cef70e4c6a98cbe7c3ba15a
2022-09-13 03:02:13 -07:00
Cameron Clough 1d78524b9d e2e long yellow path (#25679)
* yellow brick road

* live toggling

* path color from acceleration

* more yellow
old-commit-hash: a8134f226589675b2d1619bc6ed8b0d9c6a37ba7
2022-09-07 08:58:33 -07:00
Greg Hogan 5dd12e194b nav: toggle to show on left side of onroad ui (#25169)
* nav: show on left side of onroad ui

* add toggle

* capitalization

* update translations

* single params object

* skip unfinished translations test

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 93cd0285ac014427cdd137fa2c8852c58bdef4db
2022-07-18 13:57:21 +02:00
Shane Smiskol 23de7b166e UI: Internationalization support (#21212)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* update names

* Add Chinese (Simplified) translations

* Do missing French translations

* unit tests caught that :)

* fix test

* fix other test (on PC)

* add entries to dialog to test

* add cancel button, clean up a bit

* just chinese

* some clean up

* use quotes

* clean up

* Just quit, set timeout to 0

* half a second

* use exitcode

* don't print if it's expected

* this comment is outdated

* update translations

* Update translations

* re-order input classes

* Update line numbers

* use enabled property for button style

* Get rid of ListWidget

* Update line numbers

* Log failed to load language

* Log failed to load language

* Move to utils and fix english logging

extra line

* Update translations

* spacing

* looks a bit better

* try this instead of exitcode

fixes

fix

* only one function

* comment

* Update line numbers

* fixup some japanese translations

* clean up multi option dialog

* Update line numbers
old-commit-hash: 949de4d2b6b293d9f77d83c58212f5dee176cbf1
2022-07-08 20:25:54 -07:00
Willem Melching c20b96764c nav: use laikad position if locationd is not yet available (#25033)
* ui: use laikad position when locationd is not ready

* cleanup

* same threshold as locationd

* use first bearing directly

* use in navd too
old-commit-hash: a9401319dfa89fea2d2699aaddc758cbc47b6396
2022-07-08 09:20:36 -07:00
Dean Lee 98046a880e ui: replace line_vertices_data with QPolygonF (#25001)
use QPolygonF

use push_front
old-commit-hash: 867a1cf35a200c10c9ea513140b74be04ce4bb83
2022-06-30 10:57:47 +02:00
Willem Melching c88c78a13b ui: use current calibration to center vanishing point (#24955)
* compute x and y offsets using calibration

* fix default calibration

* clamp to max values

* only use when valid

* not while calibrating

* less diff

* cleanup zoom
old-commit-hash: 915b4928ff044302bba0e8bdf15f154646f528e6
2022-06-27 16:03:26 +02:00
Adeeb Shihadeh 9a45a3b99b Move selfdrive/hardware/ to system/ (#24725)
* move hardware to system/

* fix mypy
old-commit-hash: 1139fe507b01f34de9714c99228f411558b44231
2022-06-11 16:38:24 -07:00
Adeeb Shihadeh c38766b061 Revert "UI: remove DM icon (#24771)"
This reverts commit f7f2bb2a1e70e0946edb362b70ed42e496f77f91.

old-commit-hash: 86ce2f8d4def65d3adb1136b24b75700e953a62f
2022-06-09 17:39:39 -07:00
Adeeb Shihadeh d25c537b8b UI: remove DM icon (#24771)
old-commit-hash: 4d836c6edd6e0f2639a3e2500794990da339eddc
2022-06-07 13:59:48 -07:00
HaraldSchafer 08ad733229 Remove laneless toggle (#24738)
* Remove laneless toggle

* Update refs
old-commit-hash: 7f16e19f791d9f709b40e2ef9781b88eb930aa98
2022-06-03 14:04:14 -07:00
Willem Melching 753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

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

* Update selfdrive/hardware/hw.h

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

* Update selfdrive/hardware/base.h

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

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2100a4f1401a93d88064ddbbbd935c1
2022-06-02 15:20:51 +02:00
Gijs Koning 6a53db981b Simulator: Speed up process by removing second camera (#24679)
* simulator: support running wide camera only

* proper frame id

* use param name that makes more sense

* do some cleanup

* Update tools/sim/bridge.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b5aed2bf6781cd4d74d28f6f44d24737ec08f0db
2022-05-30 15:25:07 +02:00
Shane Smiskol a11084a6c6 UI: draw map with uiUpdate signal (#24632)
* draw map with same uiUpdate signal as onroad window

* fix

* fix

* fix

* test

* test

* clean up

* clean up

* clean up

* draw instantly when dragging

* self explanatory

* remove line

* fix spacing

* see if we call ui'c sm->update before mapwindow

* Revert "see if we call ui'c sm->update before mapwindow"

This reverts commit e5dcd70013750b871894c276e4d15d55b0c92e97.

* sort includes
old-commit-hash: fb4b4773a58a62783dd48e6058be5a0da6bb1fab
2022-05-27 15:35:09 -07:00
Adeeb Shihadeh f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
old-commit-hash: cb8885cffb313bea258c012c3026461a22bf8135
2022-05-18 14:11:57 -07:00
Adeeb Shihadeh 5e42de3e36 body: opt-out logging (#24423)
* body: opt-out logging

* wait a bit

* little better

* fix that too

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2466233b1cf5195bc4005c647d00408c838fe1a8
2022-05-04 14:57:39 -07:00
Willem Melching c1091a67cd ui: Fix path artefact when going over hill (#24285)
old-commit-hash: 38300474bbf2d956ca2482df7c2f93db43b34d27
2022-04-21 16:18:48 +02:00
Shane Smiskol 8d6ab099dc ui: adjust e2e path width
old-commit-hash: 492489e55caceddd8e844874abe4662a6623a162
2022-04-19 16:07:46 -07:00
George Hotz 440e82e106 ui: make the path double wide for e2e
old-commit-hash: 273831aa14950b71ff84073d716a0fef2d1fa31e
2022-04-19 15:53:58 -07:00
Adeeb Shihadeh 5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86a621dd35f4ff25da7a26ee506bac76
2022-04-18 17:55:23 -07:00
Willem Melching 410557490f camera_qcom2: target 40ms acquisition time, use register wizard (#24093)
* register values from wizard

* target 25fps to leave some room for timing jitter

* update max lines in ui
old-commit-hash: 67d6847039ecc65186b39382d38a63dfffc0a9b2
2022-04-05 08:10:53 -07:00
Shane Smiskol 20d823d18a controlsState: add override state with grey border (#24030)
* Squashed commit of the following:

commit f0cf822666fb8f78a486d721fe474e8f37da6970
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Apr 4 17:24:00 2022 -0700

    clean up

commit 4364bdb79b1b055daa7542267eb3f37740723fd4
Merge: d448664cf e85f82af3
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Apr 4 17:21:41 2022 -0700

    Merge remote-tracking branch 'upstream/master' into override-alert-type

commit d448664cfdacbdfd3c99f8e12d96f2ba7b24abb5
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Apr 4 17:20:44 2022 -0700

    revert tests changes

commit 40ab8c2d912ccbeb12286ca272e3737656388ac8
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 19:03:39 2022 -0700

    sort

commit 5abd4448b420e91eda57e3c4edb6794893dab42f
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 19:02:59 2022 -0700

    bump cereal

commit fcffc42082b1460676554924461c63c881c31501
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 19:02:25 2022 -0700

    pass in CI

commit f47dd63bc597e18c05d2d9365eb996c13ec70c17
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 12:06:00 2022 -0700

    update refs

commit f1c54e16ccfa37f770b422ad77e2fc940f8ea7f2
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 11:51:04 2022 -0700

    move to tuple

commit bebafc6ed223a67e59daa7c2105f8cb28c4f9c5f
Merge: b0578dc54 0e983562d
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 11:45:19 2022 -0700

    Merge remote-tracking branch 'upstream/master' into override-alert-type

commit b0578dc54f9d943e0ab2182b0b79d076129468a7
Author: Shane Smiskol <shane@smiskol.com>
Date:   Fri Apr 1 11:44:37 2022 -0700

    make global variables of states in controlsd

    make global variables of states in controlsd

commit 32b7e293e88f001ef44c9197dfc68b7240ae129e
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 23:41:41 2022 -0700

    test individual event types

    fix

commit 1fbf66fc8ba7e5a0a25d34a1f30a2cb3ccb86a02
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 23:03:09 2022 -0700

    clean up

    test state machine

    test state machine

commit 33856bef69b1c2e637e58032b1358f275a6cd6bb
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 22:59:05 2022 -0700

    clean up

commit d64cd664980edd6cff0038379a5c3965409ebda0
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 22:40:25 2022 -0700

    test few more things

commit 72a3e57a9a8813b348a8ae9648e283983f7ba56b
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 22:17:22 2022 -0700

    default transitions

commit ce0051fde8296dab6417d9ef175fdf039d09a8f3
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 22:05:21 2022 -0700

    remove

commit 56de4f8a87e9b96dd99739772da1dddaa873ceb1
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 22:05:15 2022 -0700

    this way we can test any combo of event types

commit bdfd47738e5a3c0e22817047cc2d804ca0fe2785
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 21:36:33 2022 -0700

    add some state machine tests

commit 81a72d1773b204cc984fb0631ac30fb00555962d
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 17:43:03 2022 -0700

    update refs

commit 00018708714b156c29f963011a6193fa9028b308
Merge: fa97ffa67 fa934d846
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 17:31:51 2022 -0700

    Merge remote-tracking branch 'upstream/master' into override-alert-type

commit fa97ffa67eec1556b2b255ee68bdf46fc101596e
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 31 17:30:23 2022 -0700

    revert todo

commit b0dcd49b0b0254a4754ddc5ea61618246686327d
Author: Shane Smiskol <shane@smiskol.com>
Date:   Wed Mar 30 00:07:11 2022 -0700

    move back

commit ef12853ceed8c8aa37b16af406e510d172269226
Author: Shane Smiskol <shane@smiskol.com>
Date:   Tue Mar 29 23:09:05 2022 -0700

    bump cereal

commit 2658f557e2fac79563b74385b8676a659f31f7dc
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Mar 28 20:54:48 2022 -0700

    fix

commit ed2db85acd34cd78017c6bae0db5df3356c2c19c
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Mar 28 20:47:18 2022 -0700

    add alert to pass unit tests

commit dc970f55f5f69ecbca7095099bd50ff21ba02610
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Mar 28 20:26:18 2022 -0700

    bump

commit e9a3c73d61590120cc5e5c16a3d1a0bbbd51e19d
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Mar 28 20:25:33 2022 -0700

    normal

commit 4ecfbf18d5e6436f9be6bd3b1c4ea3bca8c1a572
Merge: 47e0ad3cb 02b968ed9
Author: Shane Smiskol <shane@smiskol.com>
Date:   Mon Mar 28 20:14:08 2022 -0700

    Merge remote-tracking branch 'upstream/master' into override-alert-type

commit 47e0ad3cbe4fee81b7a6e4c284973c25b144ddf7
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 24 10:50:34 2022 -0700

    only rename

commit 8c46435630c1bfba5c5b911bc1d3c8d4b24c9fdd
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 24 10:49:26 2022 -0700

    bump cereal

commit eb48440843d6a4b09e1f34d8eb2ed4c7f7a8274c
Author: Shane Smiskol <shane@smiskol.com>
Date:   Thu Mar 24 10:29:49 2022 -0700

    fix

commit 231afe3e6f211e866216a557f2ec2787760d2607
Author: Shane Smiskol <shane@smiskol.com>
Date:   Wed Mar 23 23:57:40 2022 -0700

    clean up

commit 7a3f49db1bdb58c8ef59a9376306ef1157ba2e57
Author: Shane Smiskol <shane@smiskol.com>
Date:   Wed Mar 23 23:57:10 2022 -0700

    fix logic

commit eab4f8b46e6c22033ac4ae433b6ba94e6a4ff322
Author: Shane Smiskol <shane@smiskol.com>
Date:   Wed Mar 23 21:05:05 2022 -0700

    clean up

commit 51e189a27268364e051c6d9231ae6f181ec7f95b
Author: Shane Smiskol <shane@smiskol.com>
Date:   Wed Mar 23 20:51:23 2022 -0700

    override state testing

* clean up
old-commit-hash: 2624b4cb27f7f2bd184bac5dd7b2c718767da583
2022-04-04 18:02:27 -07:00
Shane Smiskol 5f4ac6cb96 ui: grey border and alert when pre-enabling (#24057)
* make border and alert grey when overriding

revert cereal

* no state machine changes

* typo
old-commit-hash: 8e34ddc70e988e5ee142e0749c2e4cf5052237a0
2022-03-28 20:03:52 -07:00
Willem Melching 5d55924fac ui: fix onroad transition with active nav (#23757)
old-commit-hash: e76ef93a833396dba4e3478966f9b48894c08638
2022-02-14 13:55:30 +01:00
Willem Melching 8e2c273be8 fix UI segfault when starting onroad and receiving radarState before modelV2 (#23739)
old-commit-hash: 955c7435f80ccfebd33b32ca3d6f2f40f18b044b
2022-02-10 13:52:03 +01:00
Willem Melching 30a0b40b5d ui: configure tethering based on prime type (#23733)
* Store prime type in param

* set tethering metric based on prime type

* update existing connections

* returning zero is fine

* always set

* add callback on activate

* call systemctl

* match server enum

* add delay

* assume field is there

* snake case
old-commit-hash: 4e4cb07297485eac378058c6b4e60901e10cbd15
2022-02-09 20:27:58 +01:00
Kevin Robert Keegan 6d8a141938 Use Wide Road Camera as Light Sensor for Screen Brightness (#23610)
Using the narrow camera as a light sensor meant that the
reflection of our own headlights, tail lights, and head lights
of opposing vehicles dominated the sensor value at night
even though the broader overall scene is very dark.

This has very little effect during daylight hours.  The change
affects nightime driving the most, resulting in a dimmer
screen when it is dark.

I think this makes more sense as the wide angle camera's
field of view is much closer to the human eye's field of
view than the narrow road camera.
old-commit-hash: 347583d4238d31dbd042d963b0dd37e3028bbd10
2022-01-25 11:13:59 +01:00
Dean Lee 07d1094f84 ui: fix invalid line vertices on startup (#23541)
old-commit-hash: 6bd0e4b087d63ceda6911009bb5e1984f349a320
2022-01-15 09:09:24 -08:00
Willem Melching 016b5e1d01 Revert "ui/update_model: do not recalculate the max_idx If there is no lead (#23356)"
This reverts commit 939898a2cd498dc7f30b0d56782abd3e03108ff7.

old-commit-hash: c4b36ce11ed3a4559d5e59d51bf8b744f0d3bf5d
2022-01-07 14:31:23 +01:00
Dean Lee 336d37e95c UI: run set_brightness in QtConcurrent (#23326)
* use QFuture

* update at 10 hz

* don't change frequency
old-commit-hash: cd9813ab6a160d7da2e86ce2bb6daa69e7e2adad
2022-01-04 14:03:27 +01:00
Dean Lee b756c89d38 ui/get_path_length_idx: line_x[i] shoud be less than or equal to path_height (#23336)
* start loop index from 1

* use  islessequal

* use build in <=
old-commit-hash: 9295066dac926c9f804bcb07b535bfec9a06cf11
2022-01-04 12:04:52 +01:00
Dean Lee 36b506c880 ui/update_model: do not recalculate the max_idx If there is no lead (#23356)
old-commit-hash: f561d84c627273537d1e30f66d48fa39ec014950
2022-01-04 11:39:18 +01:00
Dean Lee 2701743349 ui: emit offroadTransition in UIState::updateStatus (#23265)
old-commit-hash: 21ee6d25c7f84be810a6ed31cc2cf5aa94a89c11
2022-01-03 17:35:05 -08:00
Dean Lee 64ba111cbb ui: update lead's z position if modelV2 has been updated after startup. (#23355)
* model frame >= started_frame

* remove optional
old-commit-hash: 2a99bc6ddefaa050bf4f82640e3097ef230102e8
2022-01-03 14:37:36 -08:00
Dean Lee 9321e1bb6c ui: remove variable world_objects_visible, use rcv_frame (#23264)
old-commit-hash: e4de82f90636a551a2490ccda1abc30a9b7f30b1
2021-12-17 21:37:29 -08:00
Dean Lee 1fc1819c2b ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
old-commit-hash: 2483fc5d5dd7ad586a92b62b2ef5bc8f9094f262
2021-12-14 22:28:12 -08:00
Dean Lee c031c1a8d4 UI: add timeout to close settings window while onroad (#22980)
* refactor updateWakefulness

* don't hide sidebar

* rename reset->reset_timeout

* move related variables and functions into class Device

* reset timeout in ctor

* set timeout to 10s if ignition is on

* cleanup

* remove unused QTimer *timer

* check getTimestamp

* keep socket reading in update_state

* keep filtering

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c5dbee4e58aad2efca6d91baa4c7c4171ee8953f
2021-12-14 11:22:16 +01:00
Adeeb Shihadeh 2063ff2d71 UI: remove burn in prevention (#23173)
old-commit-hash: 755ec71c051b20238185039a0d85272a7c9a66d6
2021-12-08 13:58:06 -08:00