Commit Graph

492 Commits

Author SHA1 Message Date
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
Dean Lee ad57cd3759 HttpRequest: passing references in signals (#20782) 2021-04-30 23:58:12 -07:00
Adeeb Shihadeh 1c89825d86 trigger sidebar status widget repaints on color change 2021-04-30 14:01:49 -07:00
Comma Device 065e2bc7d0 spinner is a qwidget 2021-04-30 11:11:05 -07:00
Adeeb Shihadeh ebceadf089 small UI cleanup 2021-04-29 15:21:40 -07:00
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>
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh 140e6248e2 UI: refactor GLWindow (#20764) 2021-04-29 11:18:59 -07:00
iejMac aeafb8e00c Replay: fix crashing from trimSegment 2021-04-27 23:32:42 -07:00
ZwX1616 2c0b0f927f C2 dim displays: remap in shader to avoid screen deadzone (#20757) 2021-04-27 17:41:59 -07:00
iejMac a337097b5e CommaApi: use auth.py for request authentication when on PC (#20755)
* CommaApi: use auth.py for request authentication when on PC

* whitespace

* only when replay

* nicer way to do this

* tabs

* use bool

* tabs

* tabs

* prefer this to just be state

* initialize with stdString

* tabs

* include order

* fix order + ifdef fix

* whitespace'
2021-04-26 17:25:22 -07:00
iejMac a759c12c1b Replay: print timestamp every 5 seconds (#20752)
* Replay: print timestamp every 5 seconds

* include abs

* rename last_print
2021-04-26 14:37:34 -07:00
iejMac a8e231f8b1 print error when HttpRequest fails 2021-04-26 10:16:57 -07:00
Adeeb Shihadeh 01cb8d401a only build replay if tools/ exists 2021-04-24 09:59:10 -07:00
iejMac 19d962cdf3 qt replay (#20602)
* initial commit, works

* remove nui

* working again

* visionipc

* cleanup

* cleanup

* moving VisionIpcServer to Unlogger class

* works

* tab cleanup

* headless mode

* headless mode works

* working headless mode

* gitignore update

* small unlogger refactor

* refactor param in UIState

* works, very slow, hacks

* cleanup

* works

* cleanup

* cleanup

* unused

* works for whole route

* nicer

* a little nicer

* different threshold

* maintains 1 segment window

* works with public api

* comments

* networkTimer works

* cleanup

* unified HttpRequest

* tabs

* tabs

* comments'

* gitignore

* gitignore

* only on PC

* same line else

* no changes in home.cc

* scons

* update scons

* works

* revert mainc.c

* revert home

* else

* just api + problem with api send

* works

* include cleanup

* general json fail

* whitespace

* remove active

* adding request repeater

* removing comments

* tabs

* update comment

* cereal

* fix

* trailing new lines

* grammar

* if whitespace

* indentation

* Update selfdrive/ui/SConscript

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

* Update selfdrive/ui/qt/request_repeater.cc

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

* works

* sort by dir

* no blockSignal

* replay is now QOBject

* cant take const char

* rename inner it

* get width and height from frame readeR

* resolve TODO

* seek in next pr

* spaces

* ui stuff

* fix CI

* remove comments

* no repalce

* trim segment fix

* remove seek from stream

* no cache key

* final changes'

* fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-04-24 00:59:09 -07:00
iejMac 0fe155b7c3 UI: close dialogs on settings close (#20541)
* this works

* fix

* fix

* fix

* blacklist

* style

* tabs

* tabs

* temporary

* hideEvent

* fix

* changes

* dont need this

* works

* no signal

* Merge branch 'master' of github.com:commaai/openpilot into ui_close_after_timeout

* works

* cleanup

* little more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-04-23 21:24:53 -07:00
Shane Smiskol 858f7c0715 infinite orange alert sound (#20723) 2021-04-21 14:37:27 -07:00
Adeeb Shihadeh 31dd0cbd42 set display power + brightness in spinner and text window (#20719)
* set display power + brightness in spinner and text window

* update aarch64

* update larch

Co-authored-by: Comma Device <device@comma.ai>
2021-04-20 20:45:46 -07:00
Adeeb Shihadeh a3df0e9827 upload raw on tici 2021-04-15 21:36:09 -07:00
Adeeb Shihadeh aaa8d937f5 GL spinner fix (#20684)
* GL spinner fix

* update larch spinner

Co-authored-by: Comma Device <device@comma.ai>
2021-04-15 00:49:34 -07:00
Adeeb Shihadeh 2eac604993 lte toggle (#20683) 2021-04-14 21:19:06 -07:00
Adeeb Shihadeh a60effc112 UI: fix initial toggle state after #20670 2021-04-14 21:02:34 -07:00
iejMac 928fbecec0 UI: Reset settings state when hiding panels (#20670)
* git stat

* first panel and button reset

* progress

* toggles parent + list

* check if label nullptr

* style

* fixes

* fixes

* remove line

* white space

* tabs and spaces
2021-04-13 13:42:13 -07:00
iejMac e6d210d526 ui update_sockets refactor (#20625)
* separate updates

* update

* no if

* no return

* fix
2021-04-12 16:08:38 -07:00
Adeeb Shihadeh 11cc0b52ce Raw upload toggle (#20665)
* upload toggle

* better description

* icons
2021-04-12 14:05:43 -07:00
Adeeb Shihadeh aab822a352 Revert "hide set speed for stock long (#20585)" (#20666)
This reverts commit e4d7ee3716.
2021-04-12 13:34:44 -07:00
Comma Device 242a8ba17a build all installers simulataneously 2021-04-11 15:14:06 -07:00
Dean Lee 8c3ec9dd31 Faster spinner, reduce cpu usage (#20618)
* Faster spinenr

* correct  path

* remove binary

* 30 fps

Co-authored-by: Comma Device <device@comma.ai>
2021-04-10 15:06:16 -07:00
Adeeb Shihadeh 32d317239a let GPU sleep while offroad (#20640)
* better script

* let adreno sleep

* remove

Co-authored-by: Comma Device <device@comma.ai>
2021-04-09 17:27:35 -07:00
Adeeb Shihadeh 36d8c89ebf enable --as-needed linking (#20619)
* only link as needed

* a few more

* need to fix order

* everywhre

* fix mac

* update spinner + text

* fix c2 build

* another fix

Co-authored-by: Comma Device <device@comma.ai>
2021-04-08 11:17:07 -07:00
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>
2021-04-07 19:12:35 +02:00