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: c5dbee4e58
3 years ago
Adeeb Shihadeh
2063ff2d71
UI: remove burn in prevention ( #23173 )
...
old-commit-hash: 755ec71c05
3 years ago
Dean Lee
88ebf835bb
UI: move rest of NVG to Qt ( #23133 )
...
* move ui_draw_world to qt
* draw world if world_objects_visible is true
* cleanup
* cleanup includes
* continue
* cleanup
* cleanup
* enable multisampling on all devices
old-commit-hash: 20f571db3c
3 years ago
Dean Lee
53c7684956
OnroadHud: update engageability and DM icons at 2Hz ( #23134 )
...
old-commit-hash: 5ab6bff670
3 years ago
sshane
51081766f3
ui: draw all radard leads ( #22901 )
...
* draw leads detected from radar since it has a low speed override
* comment
* fill lead_verticies
* fix
* Revert changes
Revert "fix"
This reverts commit 7a478c435a0913e09512801309cf52654f3e17ac.
Revert "fill lead_verticies"
This reverts commit 5cdf265bb98480413a4a83c093b3e00489ba2f94.
Revert "comment"
This reverts commit 24a8a3fc2beef263909810d828d4e4fb5ea576e8.
Revert "draw leads detected from radar since it has a low speed override"
This reverts commit 4679fa5d16c7e961def9aaa52e92fb7d994a830d.
* Revert "Draw model leads (#21864 )"
This commit reverts f1003b8c85f73d9fbecd0b83bc9a6de6f46ea0c0
old-commit-hash: fa55dbe983
3 years ago
Dean Lee
fb0a97b972
ui: replace nvg transfrom with QTransform ( #21968 )
...
old-commit-hash: c35ae99927
3 years ago
Dean Lee
84097b29df
watchdog_kick: non-allocating ( #22892 )
...
* non-allocating
* unpack
* call kick every second
* cleanup include
old-commit-hash: ca88a8769b
3 years ago
Dean Lee
dce66df5ef
ui: update params on the show event ( #22927 )
...
old-commit-hash: 9062085043
3 years ago
HaraldSchafer
95d63ee981
tici: limit brightness with display uptime ( #22918 )
...
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c9218a55f3
3 years ago
Dean Lee
13b3a3583d
ui: only check sensorEvents when offroad ( #22893 )
...
old-commit-hash: 96e6c343e2
4 years ago
Willem Melching
d6c860cb0a
cache prime status in param ( #22850 )
...
old-commit-hash: 6ace88a0f1
4 years ago
eFini
ad64b505fe
ui.cc: fix Hardware::TICI() check for screen brightness ( #22847 )
...
old-commit-hash: 1f106e3725
4 years ago
Robbe Derks
58c99158a1
Make pandaState and safetyMode a list ( #22454 )
...
* wip: move to pandaStates
* bump cereal
* wip: SafetyMode struct
* move to safetyMode
* fix typo
* this can be None
* fix potential empty pandaStates list
* fix thermald
* fix controlsd
* rename safetyModes to safetyConfigs
* update process_replay
* fix test_models
* bump cereal
old-commit-hash: 91987f38d4
4 years ago
Willem Melching
a16e2fba2a
ui: only update ignition when panda is connected ( #22425 )
...
old-commit-hash: 009e37e797
4 years ago
Adeeb Shihadeh
757e768d9f
UI: show steering wheel icon while engaged or engageable
...
old-commit-hash: 78b97eaa36
4 years ago
Dean Lee
f4d8621be1
Qt/onroad: use CameraViewWidget ( #21821 )
...
* use CameraViewWidget
* no timer, updateFrame after frameSwapped
* use QOpenGLShaderProgram
* merge master
* remove that
* new function setStreamType
* continue
* remove showEvent
* cleanup
* cleanup
* little more
* fix black screen on startup
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a034926264
4 years ago
Willem Melching
b05eb4cac6
C3: increase brightness at night a little
...
old-commit-hash: 01e779ef2d
4 years ago
Mitchell Goff
b7b87efed9
Retuned desire model ( #21919 )
...
* New model: d8e7f76f-7bec-4a83-af00-c0fae792527f/950
* Updated process replay refs
* Updated model replay ref
old-commit-hash: 05b37552f3
4 years ago
Willem Melching
e6847fc2af
Improve perceived display brightness ( #21884 )
...
* tweak light sensor function
* CIE 1931 compensation
* before filter
* C3 scaling
* C2 is also linear
* whitespace
* scaling and min brightness
old-commit-hash: 358cdaaefd
4 years ago
Harald Schafer
6695eaacd9
better name
...
old-commit-hash: 543a0c509d
4 years ago
Dean Lee
0a445b571a
fix lead2 not updated ( #21895 )
...
old-commit-hash: 339aa5e3f9
4 years ago
HaraldSchafer
331eb5d553
Draw model leads ( #21864 )
...
* draw model not radar
* compiles
* wrong way
old-commit-hash: 276b00ccb8
4 years ago
arfy slowy
63b3d6024b
fix: spelling typos ( #21861 )
...
* fix: typo spelling grammar
* revert
* Update selfdrive/locationd/calibrationd.py
* more revert
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f8
4 years ago
Adeeb Shihadeh
82c9f6734b
UI: maintain frequency before vipc is connected ( #21704 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b13f5e6328
4 years ago
Willem Melching
074f38171a
Fix backlight filter dt and set ts to 10 sec ( #21649 )
...
old-commit-hash: 1cf8396e4c
4 years ago
sshane
748adb4c63
ui: fix finish setup button ( #21538 )
...
old-commit-hash: c10d46d336
4 years ago
Dean Lee
c351c71641
ui/update_line_data: fix assert when max_idx = TRAJECTORY_SIZE-1 ( #21543 )
...
old-commit-hash: f554dc0ae6
4 years ago
Adeeb Shihadeh
e24ff01513
sidebar: indicator for GPS fix ( #21556 )
...
* sidebar: indicator for GPS fix
* fix cutoff
old-commit-hash: a2f9259ebf
4 years ago
Adeeb Shihadeh
468032d27e
remove gps accuracy from sidebar
...
old-commit-hash: 8b6cf406ab
4 years ago
Willem Melching
e0378d41cb
Refactor camerad exposure logging ( #21506 )
...
* simplify gain logging
* clean up metadata
* log grey fractions
* those are not used
* set grey fracs in message
* fix qcom
old-commit-hash: 47be6c751e
4 years ago
Adeeb Shihadeh
82731ecb31
UI: faster offroad transition ( #21466 )
...
old-commit-hash: 30683e6291
4 years ago
Adeeb Shihadeh
5aa30638fe
Fix UI crash when going onroad after onboarding ( #21236 )
...
old-commit-hash: d47b00b45a
4 years ago
Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
4 years ago
Adeeb Shihadeh
78d65db218
limit icon flickering in UI ( #21132 )
...
old-commit-hash: 2ddfd82913
4 years ago
Adeeb Shihadeh
56e9dbcf99
Qt driverview ( #21063 )
...
* CameraViewWidget
* continue
* cleanup
* mv DriverViewWindow to ui/qt/offroad
* write IsDriverViewEnabled in showEvent/hideEvnet
* sm.update(0) in onTimeout()
* CameraViewWidget
* use unique_ptr for vipc_client
* virtual draw
* fix viewport
* connected()->frameReceived()
* bg_colors use QColor
* fix draw
* rebase master
* whitespace
* apply reviews
* indent
* like onroad
continue
* white space
* continue
* show == false
* remove border
* use widget's size
* fix shadowed rect
* cleanup driverview
* fix transform
* remove video_rect
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9876723169
4 years ago
Willem Melching
c0984ebb97
cleanup brightness params ( #21066 )
...
old-commit-hash: 93424ec6b4
4 years ago
Willem Melching
6afdeb58f1
Compute on-road screen brightness based on camera exposure ( #21024 )
...
* Compute screen brightness based on camera exposure
* fix up scaling
* remove light sensor completely
* fix gain calculation
* cleanup
* remove comment
* bump offroad brightness
old-commit-hash: 23789c9d4e
4 years ago
George Hotz
6922150ede
Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar ( #20960 )
...
* wip
* one day i'll flip that right
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f43671c987
4 years ago
Willem Melching
60ac2dd4c0
Update visionIPC stream and intrinsic matrix when going onroad ( #20947 )
...
* Choose correct vipc stream when going onroad
* whitespace
old-commit-hash: ccdec0291d
4 years ago
Dean Lee
5609f32cee
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
old-commit-hash: 0495426535
4 years ago
Dean Lee
ebe3a39909
UI: remove duplicate capnp readers ( #20855 )
...
* refactor submaster
* rebase master
* CAPNP best pratice
* zero initialize
* vwp_w has not been initialized before UIState()
* no static
* rebase master
* Minimize refactoring
* cleanup
* remove gpsOk
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 533bc30c2e
4 years ago
Adeeb Shihadeh
eb79a7214e
match nvg onroad alerts ( #20854 )
...
old-commit-hash: e06f9828ea
4 years ago
Dean Lee
e333e4f189
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
4 years ago
Adeeb Shihadeh
7b8f164793
match nvg sidebar ( #20847 )
...
old-commit-hash: e1a58e6268
4 years ago
Willem Melching
78bf4f5867
Replace ifdef with hw abstraction layer ( #20843 )
...
* Replace ifdefs with hardware abstraction layer (#20801 )
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
* Fixes after ifdef clenaup (#20842 )
* inheritance doesnt work with static
* fix debayer
* small cleanup
* Update selfdrive/camerad/cameras/camera_common.cc
* Update selfdrive/ui/qt/offroad/settings.cc
* Update selfdrive/common/modeldata.h
* flip conditions
* fix comment
Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: ab319d4f54
4 years ago
Willem Melching
39c18d4c5a
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.
old-commit-hash: 3a95d3ccaa
4 years ago
Dean Lee
e0282ced49
Replace ifdefs with hardware abstraction layer ( #20801 )
...
* add type to class hadwareXXX
* replace ifdefs with hardware layer
* continue
* continue
* new function get_driver_view_transform
* full path to hw.h
* fix build error setup.cc
* apply review
* fix typo
* fix deprecated error:replace deprecated fromPath with new
* fix build error
old-commit-hash: 757d2923d2
4 years ago
Adeeb Shihadeh
5d82a760db
Qt onroad alerts ( #20776 )
...
old-commit-hash: f907219957
4 years ago
Adeeb Shihadeh
201e0777aa
fix double DM sounds ( #20811 )
...
* fix double DM sounds
* debug script
* bool
* cleanup
* inf
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b9f9e2dfda
4 years ago