Commit Graph

176 Commits

Author SHA1 Message Date
Dean Lee
e4de82f906 ui: remove variable world_objects_visible, use rcv_frame (#23264) 2021-12-17 21:37:29 -08:00
Dean Lee
2483fc5d5d ui: singleton uistate (#22789)
* singleton uistate

* merge master

* merge master

* merge master

* connect uistate in sidebar

* move to device
2021-12-14 22:28:12 -08:00
Dean Lee
c5dbee4e58 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>
2021-12-14 11:22:16 +01:00
Adeeb Shihadeh
755ec71c05 UI: remove burn in prevention (#23173) 2021-12-08 13:58:06 -08:00
Dean Lee
20f571db3c 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
2021-12-06 14:02:39 -08:00
Dean Lee
5ab6bff670 OnroadHud: update engageability and DM icons at 2Hz (#23134) 2021-12-05 12:54:35 -08:00
sshane
fa55dbe983 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 276b00ccb8
2021-11-17 14:29:54 +01:00
Dean Lee
c35ae99927 ui: replace nvg transfrom with QTransform (#21968) 2021-11-17 12:24:37 +01:00
Dean Lee
ca88a8769b watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
2021-11-17 12:02:31 +01:00
Dean Lee
9062085043 ui: update params on the show event (#22927) 2021-11-16 12:13:16 -08:00
HaraldSchafer
c9218a55f3 tici: limit brightness with display uptime (#22918)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-15 22:11:17 -08:00
Dean Lee
96e6c343e2 ui: only check sensorEvents when offroad (#22893) 2021-11-13 12:06:05 -08:00
Willem Melching
6ace88a0f1 cache prime status in param (#22850) 2021-11-10 16:05:49 +01:00
eFini
1f106e3725 ui.cc: fix Hardware::TICI() check for screen brightness (#22847) 2021-11-10 10:10:35 +01:00
Robbe Derks
91987f38d4 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
2021-10-08 17:54:34 +02:00
Willem Melching
009e37e797 ui: only update ignition when panda is connected (#22425) 2021-10-04 14:11:32 +02:00
Adeeb Shihadeh
78b97eaa36 UI: show steering wheel icon while engaged or engageable 2021-09-16 23:43:19 -07:00
Dean Lee
a034926264 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>
2021-09-08 13:13:27 -07:00
Willem Melching
01e779ef2d C3: increase brightness at night a little 2021-08-19 16:54:43 +02:00
Mitchell Goff
05b37552f3 Retuned desire model (#21919)
* New model: d8e7f76f-7bec-4a83-af00-c0fae792527f/950

* Updated process replay refs

* Updated model replay ref
2021-08-12 21:06:26 -07:00
Willem Melching
358cdaaefd 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
2021-08-11 10:27:22 +02:00
Harald Schafer
543a0c509d better name 2021-08-10 11:00:35 -07:00
Dean Lee
339aa5e3f9 fix lead2 not updated (#21895) 2021-08-10 10:58:28 -07:00
HaraldSchafer
276b00ccb8 Draw model leads (#21864)
* draw model not radar

* compiles

* wrong way
2021-08-05 20:35:03 -07:00
arfy slowy
d74def61f8 fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh
b13f5e6328 UI: maintain frequency before vipc is connected (#21704)
Co-authored-by: Comma Device <device@comma.ai>
2021-07-23 22:14:44 -07:00
Willem Melching
1cf8396e4c Fix backlight filter dt and set ts to 10 sec (#21649) 2021-07-19 10:37:24 +02:00
sshane
c10d46d336 ui: fix finish setup button (#21538) 2021-07-13 14:58:54 -07:00
Dean Lee
f554dc0ae6 ui/update_line_data: fix assert when max_idx = TRAJECTORY_SIZE-1 (#21543) 2021-07-13 15:37:19 +02:00
Adeeb Shihadeh
a2f9259ebf sidebar: indicator for GPS fix (#21556)
* sidebar: indicator for GPS fix

* fix cutoff
2021-07-11 15:26:28 -07:00
Adeeb Shihadeh
8b6cf406ab remove gps accuracy from sidebar 2021-07-10 14:40:11 -07:00
Willem Melching
47be6c751e 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
2021-07-08 15:22:00 +02:00
Adeeb Shihadeh
30683e6291 UI: faster offroad transition (#21466) 2021-07-02 00:37:30 -07:00
Adeeb Shihadeh
d47b00b45a Fix UI crash when going onroad after onboarding (#21236) 2021-06-11 16:17:53 -07:00
Dean Lee
e4e669bb0f add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Dean Lee
c53cb5d570 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
2021-06-08 13:46:22 -07:00
Adeeb Shihadeh
2ddfd82913 limit icon flickering in UI (#21132) 2021-06-03 23:06:14 -07:00
Adeeb Shihadeh
9876723169 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>
2021-06-01 20:59:41 -07:00
Willem Melching
93424ec6b4 cleanup brightness params (#21066) 2021-05-28 15:45:41 +02:00
Willem Melching
23789c9d4e 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
2021-05-26 12:21:11 -07:00
George Hotz
f43671c987 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>
2021-05-18 22:37:33 -07:00
Willem Melching
ccdec0291d Update visionIPC stream and intrinsic matrix when going onroad (#20947)
* Choose correct vipc stream when going onroad

* whitespace
2021-05-18 14:17:38 +02:00
Dean Lee
0495426535 Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
2021-05-17 10:31:31 +02:00
Dean Lee
533bc30c2e 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>
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh
e06f9828ea match nvg onroad alerts (#20854) 2021-05-10 22:09:36 -07:00
Dean Lee
7222d0f20d 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>
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
e1a58e6268 match nvg sidebar (#20847) 2021-05-07 15:12:29 -07:00
Willem Melching
ab319d4f54 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>
2021-05-06 14:39:05 +02:00
Willem Melching
3a95d3ccaa Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 757d2923d2.
2021-05-06 12:29:30 +02:00
Dean Lee
757d2923d2 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
2021-05-06 11:41:46 +02:00