Commit Graph

108 Commits

Author SHA1 Message Date
Dean Lee
c1a3683ccb soundd: misc cleanup + tests (#22796)
* pass AudibleAlert to setAlert

* apply reviews

* remove trailing underscore

* add current_alert_type

* common function get_alert

* same freq as ui

* small cleanup

* setvolumne on change

* static Alert::get

* test_sounds

* remove old test files

* loop twice

* assert loopsRemaining

* assert stop

* init to min_volumne

* Revert "remove old test files"

This reverts commit 12e8bfefae1ae7f8649d3eda1e4126ff8eb1fe17.

* move to ui/soundd

* move test to tests/test_sound.cc

* remove old tests

* cleanup

* lower volume

* Revert "remove old tests"

This reverts commit e6bb12abfa3d5cd0aa8986d2b8da0b1edc7ea31b.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f3a846652837cc4a43d5d60dd81896b.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 797bb1acb0
2021-11-09 14:18:29 -08:00
Willem Melching
ef6ae61c5e make soundd exit cleanly (#22794)
old-commit-hash: 1289ebe9bd
2021-11-04 15:50:48 +01:00
Willem Melching
dc3075790e Move navigation into separate daemon (#22767)
* Add navd folder

* prints route instructions to console

* broadcast NavInstuction without lanes

* show basic instructions and eta

* parse out lane info

* use swaglog

* clip distance on ui side

* draw lane directions

* show route

* add to process config

* add to release files

* small cleanup

* show route without gps

* pop open map on initial route

* fix error messages around no gps

* done

* make persistent process

* handle end of route

* clear route on offroad

* only one timer

* fix layout hacks

* explicit rendering at 20Hz
old-commit-hash: bef686f275
2021-11-04 14:32:32 +01:00
Dean Lee
a031b938b0 replay: improve segment download and merge (#22654)
* no-cache mode

* fix test cases build error

* space

* don't create cache dir in no-cache mode

* fix errors in test cases

* no_local_cache_

* set the number of connections by chunk_size

* use size_t instead of int64_t

* add test case for no-cache mode

* rename variables

* fix SIGSEGV

* cleanup

* faster decompressBZ2

* always decompress bz2

* add test cases

* prepare for python interface

* fix test cases build error

* continue

* camera_replay: cache remote file

* protected inheritance

* single option name

* TODO

* test_case for LogReader&FrameReader

* fix wrong require

* test case for FileReader

* cleanup test

* test:fix wrong filename

* check cached file's checksum

* fix mkdir permissions err

cleanup filereader

* remove initialize libav network libraries.

dd

* abort all loading if one failed

* cleanup tests

* use threadpool to limit concurrent downloads

* cache more segments

* merge 3 segments for replay

* one segment uses about 100M of memory

* use segments_need_merge.size()

* shutdown

* fix stuck if exit replay  before keyboard thread started

* load one segment at a time

* small cleanup

* cleanup filereader

* space

* tiny cleanup

* merge master

* cleanup test cases

* use util:create_directories

* cleanup framereader
old-commit-hash: 2b4a477fbc
2021-11-01 11:55:56 +01:00
Willem Melching
0d035f6898 PyQt demo app (#21625)
* build python helpers lib

* call setMainWindow from python

* put in helper lib

* linter

* move to scripts
old-commit-hash: 25e4e94691
2021-10-29 12:37:17 +02:00
Dean Lee
af7c9ccf6f replay: build on devices (#22632)
* there is no QThread::create on device

* add files to files_common

* modify SConscript

* no memory_resouce on device

* #define HAS_MEMORY_RESOURCE

* fix hangs on shutdown

* build on device with the --extra flag

* delete later

* setup -> extras

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d70e49dca5
2021-10-29 12:21:57 +02:00
Dean Lee
c742e81f3e framereader: use swscale to handle the YUV conversion (#22710)
old-commit-hash: 921600b95c
2021-10-29 12:14:14 +02:00
Adeeb Shihadeh
e042ec84be little sound tester
old-commit-hash: 4749815419
2021-10-22 17:50:15 -07:00
Adeeb Shihadeh
4e005ead0a UI: don't block UI on vipc recv (#22644)
* UI: don't block UI on vipc recv

* use a timer

* move that
old-commit-hash: c4de1fef4f
2021-10-22 14:16:14 -07:00
Dean Lee
5873c32178 framereader: remove swscale (#22578)
old-commit-hash: 085c424cf9
2021-10-16 13:56:04 -07:00
Dean Lee
37212cdd24 Replay/framereader: fix c3 qcamera padding problem (#22572)
old-commit-hash: ae5eedb0b1
2021-10-16 12:24:34 -07:00
Adeeb Shihadeh
65556ea816 add tool to watch all three beautiful cameras (#22528)
old-commit-hash: ff771d9fcf
2021-10-12 00:23:31 -07:00
Adeeb Shihadeh
782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae
2021-10-07 16:32:44 -07:00
Dean Lee
a8c5acb884 c++ replay: publish all frames in CameraServer (#22378)
* cameraserver

* support yuv

* init camera server in start()

* trigger ci
old-commit-hash: 1eb79d7a59
2021-10-04 16:45:28 +02:00
Dean Lee
66ca3985c9 replay : move utility functions into separate file (#22414)
* move functions into util

* read bz2 into stream

* pre-decompress log in the download thread

* cleanup logreader

* cache sha256 path

* use readBZ2file in test_logger

* Revert "cache sha256 path"

This reverts commit 60459d3ea09a2c80f4560cf95b1ce7d6af59f06d.

* use macro

* use ostringstream

* cleanup readBZ2File

* move precise_nano_sleep into util
old-commit-hash: d28b98c602
2021-10-04 15:39:59 +02:00
Dean Lee
9fae8b50f3 c++ replay: chunking and concurrent downloads (#22308)
* download segment files by chunks in multiple threads

* remove easy_handl on aborting

* add test cases

* better error handling

* update test

* cleanup

* add CURLGlobalInitializer

* check http code

* finish
old-commit-hash: 4e6ff308a8
2021-09-28 12:24:48 +02:00
Dean Lee
f235e39bda rename filereader.cc[h] to logreader.cc[h] (#22279)
old-commit-hash: dff6dbfbe9
2021-09-19 15:54:03 -07:00
Dean Lee
5be69694ba replay improvements (#22203)
* refactor replay

* cleanup

small cleanup

* merge 22239

* cleanup

* add optional argument for start time

* small cleaup
old-commit-hash: 50ae7dd6a9
2021-09-19 12:24:28 -07:00
Adeeb Shihadeh
9193e1afa1 Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b3705ede5e
2021-09-10 17:03:54 -07:00
Dean Lee
1d5ca75029 FrameReader: do not depend on Qtunit tests (#21379)
* add timeout and test case

* remove useless comment

* reduce to 1s

* fix gotframe fail when Duplicate POC in a sequence

* cleanup

* remove space

* fix
old-commit-hash: 81a128cd76
2021-09-09 13:40:12 -07:00
ambientocclusion
488f3b2624 Fixed build issues on macOS (#22075)
* Fixed deprecated enum value

* Changed to build Qt replay on macOS
old-commit-hash: ed271911c2
2021-08-30 09:18:14 -07:00
Adeeb Shihadeh
2dd317bb03 UI: use rcc on all platforms (#21966)
old-commit-hash: 9c7c4657f0
2021-08-23 20:12:40 -07:00
Adeeb Shihadeh
80ca5b355f unify agnos/neos installers (#22023)
* c2 installer

* remove old installer

* move to its own dir

* die immediately

* fix that

* init app
old-commit-hash: 1ebe06d1c2
2021-08-23 16:01:21 -07:00
Adeeb Shihadeh
61cd06b859 openpilot nightly installer
old-commit-hash: 3616602cd2
2021-08-10 11:29:41 -07:00
Adeeb Shihadeh
8172eb9e7f embed continue scripts in installer (#21846)
* embed continue scripts in installer

* cleanup
old-commit-hash: 31a4b55218
2021-08-03 17:32:02 -07:00
Adeeb Shihadeh
94456fd143 remove wifisetup
old-commit-hash: ae1f5e0e8c
2021-08-03 17:29:01 -07:00
Adeeb Shihadeh
c5a9d78523 use continue_dashcam for dashcam installer
old-commit-hash: 3129e058f8
2021-08-03 00:04:54 -07:00
Adeeb Shihadeh
61ebda31fa we have release branches now
old-commit-hash: 1f341a2810
2021-08-02 22:18:06 -07:00
Adeeb Shihadeh
f4708c153e agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 14d26d6d89
2021-07-29 15:57:58 -07:00
Adeeb Shihadeh
28ddda3011 remove nav sconscript hack (#21768)
* remove nav sconscript hack

* pc files
old-commit-hash: 7a5f30f16b
2021-07-28 17:44:01 -07:00
sshane
bbd63268df ui: prime widget design (#21755)
* new setup widget

* set fixed width and align right

more closely match

* text wrapping fixes

* prime widget draft

* rename

* remove username

* fix weights

* ad

* qr

* pressed color

* cleanup

* simplify

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6fc999fc53
2021-07-28 17:31:49 -07:00
Adeeb Shihadeh
6eea281a19 soundd (#21619)
* refactor alerts

* doesn't go here anymore

* soudd

* handle controls unresponsive

* same check

* fix path

* update sound test

* nice

* fix c2

* add script

* update tests

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 12948e661a
2021-07-16 17:30:00 -07:00
Adeeb Shihadeh
75886ce093 setup qt resources (#21617)
* setup qt resources

* networking

* input

* fix that

* nicer scrolling

* big eye

* fix flashing

* why is it linking against map stuff

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6039f1e7ac
2021-07-15 21:30:23 -07:00
Adeeb Shihadeh
6c3a5179bf installer improvements (#21588)
* installer ui

* progress

* works

* cleanup

* header

* exit

* small

* revert that
old-commit-hash: 3f8c63a4d9
2021-07-14 16:46:36 -07:00
Dean Lee
476a5e2e05 qt/util.h: move implementation to source file (#21412)
* Move implementation to source file

* space

* include the headers

* mv all to cc

* space
old-commit-hash: f90a3eeb20
2021-06-29 14:05:37 -07:00
Adeeb Shihadeh
e56a6919bd fixup release build (#21430)
* fixup release3 build

* works on pc

* install release3

* push dashcam

* only import on tici

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d96f0acc
2021-06-28 14:30:44 -07:00
Willem Melching
fba42aab80 nav: show recents (#21405)
* add recent buttons

* remove static request

* layout

* recent doesn't have to be a favorite

* work

* spacing

* spacing

* no recents

* query next

* not null

* this needs to live here

* less spacing between items
old-commit-hash: 9f98a3e44f
2021-06-25 16:26:02 +02:00
Willem Melching
ba1a20414e nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
old-commit-hash: 3c197953bc
2021-06-10 09:59:34 +02:00
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
2021-06-01 20:59:41 -07:00
Dean Lee
a436b51e84 move c++ framereader to selfdrive/ui/replay (#21053)
old-commit-hash: bb5bcc7e49
2021-05-27 16:00:11 -07:00
Willem Melching
efa94a89ff 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>
old-commit-hash: 86aefbe766
2021-05-17 14:57:07 +02:00
iejMac
f786b284d5 Replay: seeking functionality (#20763)
old-commit-hash: f0d0b82b8d
2021-05-15 17:06:30 -07:00
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
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f907219957
2021-05-04 23:23:00 -07:00
Dean Lee
9159291a09 ui/replay: file extensions to .cc and .h (#20805)
old-commit-hash: bdf4a94cd0
2021-05-03 20:22:32 -07:00
Dean Lee
9a827fea20 c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
old-commit-hash: 81491dc57f
2021-05-03 11:53:11 +02:00
Adeeb Shihadeh
f5e6a0c9a0 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>
old-commit-hash: db9319405b
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh
b263a8d934 UI: refactor GLWindow (#20764)
old-commit-hash: 140e6248e2
2021-04-29 11:18:59 -07:00
Adeeb Shihadeh
21071dfa9b only build replay if tools/ exists
old-commit-hash: 01cb8d401a
2021-04-24 09:59:10 -07:00
iejMac
ff2138d905 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>
old-commit-hash: 19d962cdf3
2021-04-24 00:59:09 -07:00