Commit Graph

1001 Commits

Author SHA1 Message Date
Adeeb Shihadeh 50f00cf617 UI: fix wrong background on controls unresponsive alert
old-commit-hash: 0e35db7c05172b154c70216d2b1b9ed8c9c7b163
2021-11-16 13:17:32 -08:00
Dean Lee dce66df5ef ui: update params on the show event (#22927)
old-commit-hash: 906208504363457172d951ae99b8dac99d3400e1
2021-11-16 12:13:16 -08:00
Willem Melching 6493034aea nav: fix receiving navRoute while map is loading (#22929)
old-commit-hash: 9f423a93cd1c56ab7178dce11f478e2932fe68f5
2021-11-16 14:27:38 +01:00
HaraldSchafer 95d63ee981 tici: limit brightness with display uptime (#22918)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c9218a55f3af82369883af0db90c8b2416a565f7
2021-11-15 22:11:17 -08:00
Adeeb Shihadeh f82e1d42b9 UI: fix alert flicker when controlsState not updated (#22921)
old-commit-hash: 2f90f04f8d1a64c22f4162e9425e80645bd28092
2021-11-15 16:27:19 -08:00
Dean Lee 13b3a3583d ui: only check sensorEvents when offroad (#22893)
old-commit-hash: 96e6c343e25b49a9b26462c63cb9975f1f9c8359
2021-11-13 12:06:05 -08:00
Dean Lee e0fa9b7909 framereader: remove deprecated ffmpeg functions (#22895)
old-commit-hash: c0b9c1f3afed048f7ae54d9ffe872e0a41b79968
2021-11-13 11:55:04 -08:00
Adeeb Shihadeh c142416931 soundd: configure as persistent process (#22878)
* soundd: configure as persistent process

* update c2 test

* fix that

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ed8e6f857ca45a1d814dd9a98ddf5c40c6d08c20
2021-11-12 15:04:57 -08:00
Willem Melching bb8d0aa76d Move shutdown/reboot handling to manager (#22882)
* Move shutdown/reboot handling to manager

* more logging

* check enagaged

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 07ff72472636237d7c47addfce4d8bbbda98e9d2
2021-11-12 09:10:34 -08:00
Adeeb Shihadeh 29f6b5cb98 allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
old-commit-hash: e528e2e3e2760c52266b126a803a0f7bb872cf3d
2021-11-11 15:32:25 -08:00
Willem Melching d5c6e4a205 nav: resend route on ui freeze (#22869)
old-commit-hash: 03195b79e6a2f73d3de97deb03705a522cd36cc5
2021-11-11 17:05:12 +01:00
kernyan 3800496470 ui: auto scaling on resolution below 1920 x 1080 (#22842)
* ui: resizable on PC by mouse drag

* Revert "ui: resizable on PC by mouse drag"

This reverts commit 56aa8254a2ae3f3b8a4b1f5957a51b2258780e97.

* ui: auto scaling on resolution below 1920 x 1080

special case when on PC and screen resolution is exactly 1920 x 1080,
we don't use fixed-sized window to account for taskbar/menubar area

* Update qt_window.cc

set maximum window size

* keep SCALE

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 983cc14174bb11df095e7621bd61fe42fb1ed0d8
2021-11-11 13:25:12 +01:00
Willem Melching 8797c043bd nav: check valid flag on PositionGeodetic measurement (#22858)
old-commit-hash: 306df7f94f2fb57076a5883339d960b79a37b26a
2021-11-11 10:24:10 +01:00
Willem Melching d6c860cb0a cache prime status in param (#22850)
old-commit-hash: 6ace88a0f1165bbbb076da063ae1a8872a6af27c
2021-11-10 16:05:49 +01:00
eFini ad64b505fe ui.cc: fix Hardware::TICI() check for screen brightness (#22847)
old-commit-hash: 1f106e37257c967ea2d337a112f315631bc52bd7
2021-11-10 10:10:35 +01:00
Adeeb Shihadeh da7cd6bbaa soundd: don't loop controls unresponsive sound infinitely (#22839)
* soundd: don't loop controls unresponsive sound infinitely

* update tests

* actually fix
old-commit-hash: 445a5aaca4431962d189cc3e54da2d5cd13d0aac
2021-11-09 16:58:21 -08:00
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: 797bb1acb0ed548bda23b9f76458a102bf7ccf5a
2021-11-09 14:18:29 -08:00
Dean Lee 1e67fc25f1 replay: add qcam and YUV flags (#22788)
* common flags

* cleanup

* remove double semicolon

* camera

* apply reviews
old-commit-hash: fb8ba34f3103513705de2cb6397796b38a0c0689
2021-11-09 14:08:24 -08:00
Dean Lee c248478aed UI: do vipc recv in thread (#22354)
* move vipc to thread

* use invokeMethod

* cleanup

* latest_frame = nullptr

* space

* safe quit

* running_-> exit_

* recv timeout 1000

* cleanup

* run in loop

* requestInterruption

* block queue on vipcConnected for thread safety

* cleanup

* remove unused signal updateFrame

* make signals public

* dont emit signal in update

* apply reviews

* cleanup

* little more cleanup

* fix

* use glTexSubImage2D

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6e5fed63df10b5416b29dbb0dcb20e1f05e2d793
2021-11-09 13:27:12 -08:00
Dean Lee 6e027a8aa6 util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
old-commit-hash: e29cc1c2ee7b63c71a3a46d900a8f755bd0048a0
2021-11-08 10:19:34 +01:00
Willem Melching 9539fee341 soundd: Set volume on receiving carState (#22795)
old-commit-hash: 6d9b414c200f21d40134422b35b2b94f7ffdfe3f
2021-11-04 21:30:46 -07:00
Dean Lee 7ff2217c8b util: remove function to_hex (#22792)
old-commit-hash: ff33ca341382be19a4be9bd71b97af1b01b553c7
2021-11-04 16:18:01 +01:00
Willem Melching ef6ae61c5e make soundd exit cleanly (#22794)
old-commit-hash: 1289ebe9bdfdb698c7ab61331ec9169529ae31e4
2021-11-04 15:50:48 +01:00
Dean Lee 0b73c09488 ui/MainWindow: remove emit keyword on slot (#22790)
old-commit-hash: dd1531af967a9ad826f074c3de1be45e418fd84e
2021-11-04 14:43:28 +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: bef686f2752bcad4bb3116c2be63157ee01eab73
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh 08a11cdf84 soundd: use offscreen platform to avoid initialzing gpu stuff
old-commit-hash: b7394c61713e6a4133b2974bb8c18ed2d842e39b
2021-11-03 22:24:12 -07:00
Mayfield 43e1903073 enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e6bfa572c0dd89c60e538910817faa2
2021-11-02 17:08:53 +01:00
Dean Lee 5f454307fc replay: fix qcam download error (#22777)
* fix qcam download error

* test loading qlog/qcamera
old-commit-hash: 79651b6c4917415c11d1b462a87e1e18853d6e68
2021-11-02 11:24:59 +01:00
Dean Lee 526cfdd0fb replay: print colored text (#22771)
old-commit-hash: 09858f7f6f890ed43a4410412f6a9e9165b93847
2021-11-02 11:24:45 +01:00
Dean Lee 07ffd9c095 replay: fix frame lag when replaying to the next segment (#22773)
old-commit-hash: 0a5ca716030025f4164109702d8a29429911748d
2021-11-02 11:24:12 +01:00
Willem Melching 86e72f88c3 framereader.cc: better avformat_open_input error printing
old-commit-hash: f8d050298ecf969e1890fe10120ee0a748ed7eba
2021-11-02 09:56:49 +01:00
Dean Lee 993aa64067 replay: fix hanging on exit if stream thread has not been started yet (#22770)
old-commit-hash: 6f78cc77fc7bbc8e9d9efc5e9ae7e66dfeb06940
2021-11-01 16:06:39 -07: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: 2b4a477fbc8fc02da5876aee4f955194916f19a3
2021-11-01 11:55:56 +01:00
Dean Lee 40b2bb9f65 params: code cleanup (#22744)
* cleanup params

* apply review

* continue

* use c_str

* cleanup filelock

* don't check return code of close()

* remove call_once

* cleanup params_pyx

* cleanup comment
old-commit-hash: 2773ff5aceb8874a9319c819ec3707705a00604d
2021-11-01 11:22:34 +01:00
Dean Lee 15ed1a50a3 replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
old-commit-hash: 41e5e76596eed1b6391cb5770df2c628c3125023
2021-11-01 11:06:00 +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: 25e4e94691d90f1a4496a2742c63ede108593e15
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: d70e49dca5687c3a26d4b67a7a3dbf04c224e04f
2021-10-29 12:21:57 +02:00
Dean Lee c742e81f3e framereader: use swscale to handle the YUV conversion (#22710)
old-commit-hash: 921600b95c70d034f0c575673efce75533d3ba7a
2021-10-29 12:14:14 +02:00
Dean Lee da6ebc2f9d remove unused signal displayPowerChanged (#22719)
old-commit-hash: 3b936aaca9af3da1cdce0635cf9d539e8ad574b8
2021-10-29 12:09:03 +02:00
Adeeb Shihadeh 72d7b40eec UI: add opensans semibold
old-commit-hash: e33cd47b5c565a8d7a96a83a934dd23ab055c4bd
2021-10-28 13:07:39 -07:00
Willem Melching 82ebe9f0ee nav: support multiple banners in route segment (#22722)
old-commit-hash: d4433cc2d8363ad30ceec62fb80e333ec09f39b7
2021-10-28 19:11:29 +02:00
Willem Melching 8d9783a379 maps: allow using MAPBOX_TOKEN env variable (#22721)
old-commit-hash: 0ba40954b9bf6810e223600c30affdc15a2b4f9c
2021-10-28 16:13:44 +02:00
Dean Lee fd2bc4ce18 Qt/CommaApi: cache private key (#22715)
* cache private key

* space

* no need to check mtime

* call_once

* simplify
old-commit-hash: 3f4cc9a246e2a244e219f9766cd0edec93a54e26
2021-10-27 21:12:00 -07:00
Adeeb Shihadeh 95f5cabc04 add inter fonts to assets (#22704)
old-commit-hash: 950acb476c0bed4b03b3359b3030d492d982c664
2021-10-26 20:40:09 -07:00
Adeeb Shihadeh 2e995ea41a installer: init submodules for all builds
old-commit-hash: 23d6aeb4b7063ec20fc306dd2e8803cf24eedc3e
2021-10-26 20:01:24 -07:00
Adeeb Shihadeh 4099783375 add sdcard support (#22703)
* generalize

* factory reset
old-commit-hash: f4c2398db4c2dacc690d4115c04c7afb98a52a08
2021-10-26 19:34:08 -07:00
Willem Melching 8a0c57433e navigation: use mapbox proxy server (#22660)
* use mapbox proxy

* remove MapboxToken param

* do not log jwt

* remove import

* move to staging url

* put has_prime in ui state

* logic was flipped

* Update selfdrive/ui/qt/maps/map.h
old-commit-hash: cca07c0c730eb6e0d8dab0bde099a2ed706d14de
2021-10-26 18:59:17 +02:00
Adeeb Shihadeh c9ebc1c442 move nose tests to unittest (#22665)
* move to unittest

* boardd loopback

* no more nose

* phone only

* fix panda decorator
old-commit-hash: b5960b9dc8e742dd0993f56b819e76bdd19989f6
2021-10-25 09:44:04 -07:00
Dean Lee 6e0853986f replay: use an enum for flags (#22635)
* enum flags

* continue

* remove yuv flag for now
old-commit-hash: af7dba9250ba99ebb9afa32d393190dcce6954cc
2021-10-22 23:28:53 -07:00
Adeeb Shihadeh 1d1c7e9c64 UI: increase camera view update frequency
old-commit-hash: 7f3904ee8e9cc5fa2e113f80f0543fe6dd1b6e34
2021-10-22 21:11:57 -07:00