Adeeb Shihadeh
d47b00b45a
Fix UI crash when going onroad after onboarding ( #21236 )
4 years ago
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
4 years ago
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
4 years ago
Adeeb Shihadeh
2ddfd82913
limit icon flickering in UI ( #21132 )
4 years ago
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>
4 years ago
Willem Melching
93424ec6b4
cleanup brightness params ( #21066 )
4 years ago
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
4 years ago
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>
4 years ago
Willem Melching
ccdec0291d
Update visionIPC stream and intrinsic matrix when going onroad ( #20947 )
...
* Choose correct vipc stream when going onroad
* whitespace
4 years ago
Dean Lee
0495426535
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
4 years ago
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>
4 years ago
Adeeb Shihadeh
e06f9828ea
match nvg onroad alerts ( #20854 )
4 years ago
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>
4 years ago
Adeeb Shihadeh
e1a58e6268
match nvg sidebar ( #20847 )
4 years ago
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>
4 years ago
Willem Melching
3a95d3ccaa
Revert "Replace ifdefs with hardware abstraction layer ( #20801 )"
...
This reverts commit 757d2923d2
.
4 years ago
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
4 years ago
Adeeb Shihadeh
f907219957
Qt onroad alerts ( #20776 )
4 years ago
Adeeb Shihadeh
b9f9e2dfda
fix double DM sounds ( #20811 )
...
* fix double DM sounds
* debug script
* bool
* cleanup
* inf
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
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
4 years ago
Dean Lee
4781598e12
Qt: use new signal slot syntax ( #20783 )
...
* new signal slot syntax
continue
* continue
4 years ago
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>
4 years ago
Adeeb Shihadeh
140e6248e2
UI: refactor GLWindow ( #20764 )
4 years ago
iejMac
e6d210d526
ui update_sockets refactor ( #20625 )
...
* separate updates
* update
* no if
* no return
* fix
4 years ago
Willem Melching
1fc7bcca43
ecam toggle ( #20597 )
...
* use ecam in ui
* needs reboot
* use in modeld
* typo
* effective FL is longer in center
* normalize zoom by focal dist
* read param before init
* make 2x as wide
* review comments
* more explicit
* fix camera offset
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
4 years ago
Dean Lee
98e55996f6
Params: python-like interface ( #20506 )
...
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
4 years ago
Dean Lee
32c4cf00c2
faster driverview start ( #20507 )
4 years ago
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>
4 years ago
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>
4 years ago
Willem Melching
8e14e17020
Improve screen brightness by also using camera gain ( #20357 )
4 years ago
Dean Lee
fb5873bb6d
ui.cc: fix update_lead segfault ( #20351 )
...
* fix update_lead crash
* Check for empty list in update_lead
* use rcv_frame
* update 2 leads in update_leads
* use std::optional
4 years ago
Dean Lee
980f8774ba
ui/update_model: cleanup ( #20313 )
...
* cleanup
* fix ident
4 years ago
Willem Melching
1f24b1eb0f
ui.cc: lane lines have different x values
4 years ago
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>
4 years ago
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
4 years ago
Dean Lee
cdc46ffbab
ui/update_line_data: use max_idx as paramater instead of max_distance ( #20256 )
4 years ago
Dean Lee
90310042cb
ui: remove unused roadCameraState from SubMaster ( #20245 )
4 years ago
Willem Melching
1b5c4d9089
ui: check sensor list size
4 years ago
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>
4 years ago
Dean Lee
a1b2bdb844
move function calib_frame_to_full_frame to ui.cc ( #20230 )
...
* move calib_frame_to_full_frame to ui.cc
* cleaup includes
4 years ago
Dean Lee
8db3eea6c5
UI: rename frontview to driver_view ( #20228 )
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Willem Melching
0a6d500a4a
ui: log visionipc receive timeout
4 years ago
Adeeb Shihadeh
b3cf60cd0b
use gpsOK flag from locationd
4 years ago
HaraldSchafer
ab0456c0eb
fixup ui ( #20049 )
...
* fixup ui
* works
* new formate
* more cleanup
* works I assume we need a library somehow
* more readable
* fix lead sign
* put on road
* transformations lib
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Willem Melching
2fc1104e8b
ui.cc: fix divide by zero
4 years ago
Dean Lee
204add6952
ui.cc: replace s->scene with scene ( #20045 )
4 years ago
Dean Lee
c2aefab553
UI: remove struct track_vertices_data ( #20018 )
...
* remove struct track_vertices_data
* space
* rebase master
4 years ago
Dean Lee
40919a6f48
removed margin paramater from car_space_to_full_frame ( #20017 )
4 years ago
Adeeb Shihadeh
3dc45554d7
UI: make onroad/offroad transition more robust ( #20030 )
...
* make onroad/offroad transition more robust
* fix up driver view
* check other started
Co-authored-by: Comma Device <device@comma.ai>
4 years ago