Commit Graph

521 Commits

Author SHA1 Message Date
Dean Lee
5540dcae78 Refactor FrameReader (#21002)
* Refactor FrameReader

* decodeThread

* delete frame

* remove joined

* continue

* less diff

* robust cv wait

* cache fist 15 frames

* notify_all

* rename variables

* need call avformat_find_stream_info before dump_format

* get width&height from codec

* use std::string

* delete in removeSegment

* use std::mutex in lockmgr_cb

* fix wrong min/max

* no get in process

* cleanup

* always notify decodeThread to do prefetch
2021-05-24 17:01:15 -07:00
Adeeb Shihadeh
bc8ac03b15 coords need to be float 2021-05-24 00:56:54 -07:00
Adeeb Shihadeh
a947be76b0 nav destination script 2021-05-24 00:45:18 -07:00
Comma Device
1fd7f66a14 fix sidebar network type and signal 2021-05-22 18:42:42 -07:00
Dean Lee
179ff6e7ae Sidebar: repaint only when properties updated (#20929)
* use qt_property

s

* cleanup

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-22 14:37:12 -07:00
Willem Melching
9c588e6117 maps: fix pan amount after 2x scaling 2021-05-21 17:10:59 +02:00
Willem Melching
80ffbe9136 maps: fix pan and zoom 2021-05-21 17:06:01 +02:00
Willem Melching
9bb2209c8e ecam toggle: clear calibration (#20987)
* ecam toggle: clear calibration

* whitespace

* no more reboot needed
2021-05-21 16:31:51 +02:00
George Hotz
d62e007380 4G sounds slower than LTE 2021-05-20 11:33:39 -07:00
Maxime Desroches
d44ee69b24 UI: add decline page for the Terms and Conditions (#20919)
* add decline page

* change action + keep the same layout
2021-05-20 15:59:56 +02:00
Willem Melching
f9f84fe8a2 athenad: reconnect after not receiving ping (#20974)
* athenad: reconnect after not receiving ping

* make sidebar timeout longer than timeout in athena

* whitespace
2021-05-20 13:57:46 +02:00
Adeeb Shihadeh
a394d1017a replay: fix jwt path on PC 2021-05-20 02:29:41 -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
Adeeb Shihadeh
efca6eaa70 fix inlcude in setup.cc after include cleanup 2021-05-18 20:28:16 -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
Willem Melching
f9b20095a2 strip whitespace from token 2021-05-18 12:14:16 +02:00
Maxime Desroches
553e7d1cce Fix Terms and Training guide skip when the screen turns off (#20942) 2021-05-18 11:26:04 +02:00
Willem Melching
86aefbe766 Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-17 14:57:07 +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
2c73cac0a2 MainWindow: use static QSet for filter_events (#20924) 2021-05-16 21:21:46 -07:00
iejMac
f0d0b82b8d Replay: seeking functionality (#20763) 2021-05-15 17:06:30 -07: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
ff16145f4d fix reverse gear alert text cutoff (#20888)
* fix reverse gear alert text cutoff

* offset removed
2021-05-12 18:18:06 -07:00
Adeeb Shihadeh
ace5ee9d46 prime ad: comma connect -> explorer 2021-05-11 14:50:48 -07:00
Adeeb Shihadeh
b93ccc465d offroad alert for unregistered devices (#20870)
* offroad alert for unregistered devices

* update tests

* add param

* fix stretch
2021-05-11 03:18:45 -07:00
Adeeb Shihadeh
5f5bbd64f2 onroad UI optimizations (#20871)
* onroad UI optimizations

* remove that

Co-authored-by: Comma Device <device@comma.ai>
2021-05-10 23:19:32 -07:00
Adeeb Shihadeh
38741b2e08 remove offset from full screen onroad alerts 2021-05-10 22:39:28 -07:00
Adeeb Shihadeh
e06f9828ea match nvg onroad alerts (#20854) 2021-05-10 22:09:36 -07:00
grekiki
95e8c75ebd Qt ui: show open panel on startup (#20859)
* should work

* spaces
2021-05-08 22:24:22 -07:00
Dean Lee
b0e2374635 OffroadAlert: add stretch at the bottom (#20856) 2021-05-08 22:21:00 -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
Willem Melching
d34647bbf7 Revert "Fixes after ifdef clenaup (#20842)"
This reverts commit fd7c2b4adf.
2021-05-06 12:29:19 +02:00
Willem Melching
fd7c2b4adf Fixes after ifdef clenaup (#20842) 2021-05-06 11:58:35 +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
Adeeb Shihadeh
f907219957 Qt onroad alerts (#20776) 2021-05-04 23:23:00 -07:00
Dean Lee
00aa20f55a SshControl: use HttpRequest to get ssh keys (#20784)
* use HttpRequest

* remove eventloop

* rebase master

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-04 22:28:41 -07:00
Dean Lee
c405442820 Sidebar: update text and color in one place (#20777)
* do not set text&color in ctor

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-04 11:30:50 -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
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>
2021-05-03 21:38:22 -07:00
Adeeb Shihadeh
8a280fbb8e bump cereal 2021-05-03 20:47:11 -07:00
Dean Lee
bdf4a94cd0 ui/replay: file extensions to .cc and .h (#20805) 2021-05-03 20:22:32 -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
4bb3619a0e Fix build errors in qt/setup (#20795)
* fix build error

* remove line

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-02 16:50:14 -07:00
Comma Device
23faedd25e configure SSL globally on NEOS 2021-05-02 16:29:02 -07: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
Dean Lee
f01c3c649b CommaApi: passing arguments by reference (#20786)
* passing arguments by reference

* remove unused networkAccessManager

* ref
2021-05-01 14:11:35 -07:00
Dean Lee
228308b719 Replay: make response a const reference in parseResponse (#20787) 2021-05-01 09:50:32 -07:00