Commit Graph

1106 Commits (master)

Author SHA1 Message Date
Dean Lee ddc35826f7
sidebar: dont update states when hidden (#22948) 2021-11-17 14:12:57 +01:00
Dean Lee dc8e23c94b
framereader: remove memory copy overhead for AVIO (#22894)
* no memory copy

* merge master

better
2021-11-17 13:25:40 +01:00
Willem Melching 5648b22833 nav: render at 20fps instead of 10fps 2021-11-17 12:26:17 +01:00
Dean Lee c35ae99927
ui: replace nvg transfrom with QTransform (#21968) 2021-11-17 12:24:37 +01:00
Dean Lee ca88a8769b
watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
2021-11-17 12:02:31 +01:00
Dean Lee 0dcb089254
ui: async uploading texture with PBO (#22843)
* async uploading texture using pbo

* use QOpenglBuffer

space

set usage pattern

share context

continue

* space
2021-11-17 12:01:50 +01:00
Dean Lee 20d3cf1fcb
framereader: support hardware decoding (#22906)
* support hardware accelerated video decoding

* support cuda only

* print decode info

* add yuv flag back

* fix height

* default is cuda

* fallback to CPU decoding

fix memory leak&cleanup

add output
2021-11-17 11:17:59 +01:00
Adeeb Shihadeh 0e35db7c05 UI: fix wrong background on controls unresponsive alert 2021-11-16 13:17:32 -08:00
Dean Lee 9062085043
ui: update params on the show event (#22927) 2021-11-16 12:13:16 -08:00
Willem Melching 9f423a93cd
nav: fix receiving navRoute while map is loading (#22929) 2021-11-16 14:27:38 +01:00
HaraldSchafer c9218a55f3
tici: limit brightness with display uptime (#22918)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-15 22:11:17 -08:00
Adeeb Shihadeh 2f90f04f8d
UI: fix alert flicker when controlsState not updated (#22921) 2021-11-15 16:27:19 -08:00
Dean Lee 96e6c343e2
ui: only check sensorEvents when offroad (#22893) 2021-11-13 12:06:05 -08:00
Dean Lee c0b9c1f3af
framereader: remove deprecated ffmpeg functions (#22895) 2021-11-13 11:55:04 -08:00
Adeeb Shihadeh ed8e6f857c
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>
2021-11-12 15:04:57 -08:00
Willem Melching 07ff724726
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>
2021-11-12 09:10:34 -08:00
Adeeb Shihadeh e528e2e3e2
allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
2021-11-11 15:32:25 -08:00
Willem Melching 03195b79e6
nav: resend route on ui freeze (#22869) 2021-11-11 17:05:12 +01:00
kernyan 983cc14174
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 56aa8254a2.

* 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>
2021-11-11 13:25:12 +01:00
Willem Melching 306df7f94f
nav: check valid flag on PositionGeodetic measurement (#22858) 2021-11-11 10:24:10 +01:00
Willem Melching 6ace88a0f1
cache prime status in param (#22850) 2021-11-10 16:05:49 +01:00
eFini 1f106e3725
ui.cc: fix Hardware::TICI() check for screen brightness (#22847) 2021-11-10 10:10:35 +01:00
Adeeb Shihadeh 445a5aaca4
soundd: don't loop controls unresponsive sound infinitely (#22839)
* soundd: don't loop controls unresponsive sound infinitely

* update tests

* actually fix
2021-11-09 16:58:21 -08:00
Dean Lee 797bb1acb0
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 e6bb12abfa.

* return Alert

* cleanup

* remove #include <optional>

* cleanup .gitignore

* revert to std::optional

* Revert "revert to std::optional"

This reverts commit a66291c51f.

* cleanup

* remove volume check

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-09 14:18:29 -08:00
Dean Lee fb8ba34f31
replay: add qcam and YUV flags (#22788)
* common flags

* cleanup

* remove double semicolon

* camera

* apply reviews
2021-11-09 14:08:24 -08:00
Dean Lee 6e5fed63df
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>
2021-11-09 13:27:12 -08:00
Dean Lee e29cc1c2ee
util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
2021-11-08 10:19:34 +01:00
Willem Melching 6d9b414c20
soundd: Set volume on receiving carState (#22795) 2021-11-04 21:30:46 -07:00
Dean Lee ff33ca3413
util: remove function to_hex (#22792) 2021-11-04 16:18:01 +01:00
Willem Melching 1289ebe9bd
make soundd exit cleanly (#22794) 2021-11-04 15:50:48 +01:00
Dean Lee dd1531af96
ui/MainWindow: remove emit keyword on slot (#22790) 2021-11-04 14:43:28 +01:00
Willem Melching bef686f275
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
2021-11-04 14:32:32 +01:00
Adeeb Shihadeh b7394c6171 soundd: use offscreen platform to avoid initialzing gpu stuff 2021-11-03 22:24:12 -07:00
Mayfield 5246f0231e
enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

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

* test loading qlog/qcamera
2021-11-02 11:24:59 +01:00
Dean Lee 09858f7f6f
replay: print colored text (#22771) 2021-11-02 11:24:45 +01:00
Dean Lee 0a5ca71603
replay: fix frame lag when replaying to the next segment (#22773) 2021-11-02 11:24:12 +01:00
Willem Melching f8d050298e framereader.cc: better avformat_open_input error printing 2021-11-02 09:56:49 +01:00
Dean Lee 6f78cc77fc
replay: fix hanging on exit if stream thread has not been started yet (#22770) 2021-11-01 16:06:39 -07:00
Dean Lee 2b4a477fbc
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
2021-11-01 11:55:56 +01:00
Dean Lee 2773ff5ace
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
2021-11-01 11:22:34 +01:00
Dean Lee 41e5e76596
replay: fixed the alignment issue when replaying from C3 qcamera (#22734)
* fix qcamera replay

* fix alignment in replay

* upscale yuv if needed

* remove space
2021-11-01 11:06:00 +01:00
Willem Melching 25e4e94691
PyQt demo app (#21625)
* build python helpers lib

* call setMainWindow from python

* put in helper lib

* linter

* move to scripts
2021-10-29 12:37:17 +02:00
Dean Lee d70e49dca5
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>
2021-10-29 12:21:57 +02:00
Dean Lee 921600b95c
framereader: use swscale to handle the YUV conversion (#22710) 2021-10-29 12:14:14 +02:00
Dean Lee 3b936aaca9
remove unused signal displayPowerChanged (#22719) 2021-10-29 12:09:03 +02:00
Adeeb Shihadeh e33cd47b5c UI: add opensans semibold 2021-10-28 13:07:39 -07:00
Willem Melching d4433cc2d8
nav: support multiple banners in route segment (#22722) 2021-10-28 19:11:29 +02:00
Willem Melching 0ba40954b9
maps: allow using MAPBOX_TOKEN env variable (#22721) 2021-10-28 16:13:44 +02:00
Dean Lee 3f4cc9a246
Qt/CommaApi: cache private key (#22715)
* cache private key

* space

* no need to check mtime

* call_once

* simplify
2021-10-27 21:12:00 -07:00
Adeeb Shihadeh 950acb476c
add inter fonts to assets (#22704) 2021-10-26 20:40:09 -07:00
Adeeb Shihadeh 23d6aeb4b7 installer: init submodules for all builds 2021-10-26 20:01:24 -07:00
Adeeb Shihadeh f4c2398db4
add sdcard support (#22703)
* generalize

* factory reset
2021-10-26 19:34:08 -07:00
Willem Melching cca07c0c73
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
2021-10-26 18:59:17 +02:00
Adeeb Shihadeh b5960b9dc8
move nose tests to unittest (#22665)
* move to unittest

* boardd loopback

* no more nose

* phone only

* fix panda decorator
2021-10-25 09:44:04 -07:00
Dean Lee af7dba9250
replay: use an enum for flags (#22635)
* enum flags

* continue

* remove yuv flag for now
2021-10-22 23:28:53 -07:00
Adeeb Shihadeh 7f3904ee8e UI: increase camera view update frequency 2021-10-22 21:11:57 -07:00
Adeeb Shihadeh 84d5adedd8 UI: fix fcc.html when using QRC 2021-10-22 21:04:00 -07:00
Adeeb Shihadeh 4749815419 little sound tester 2021-10-22 17:50:15 -07:00
Adeeb Shihadeh c4de1fef4f
UI: don't block UI on vipc recv (#22644)
* UI: don't block UI on vipc recv

* use a timer

* move that
2021-10-22 14:16:14 -07:00
Dean Lee 317deeae84
replay: improve seeking, queuing segments (#22625)
* improve seeking, queuing segments

* cleanup,init current_segment_ to 0

* use isSegmentLoaded

* remove to isSegmentMerged
2021-10-19 22:23:53 -07:00
Dean Lee 702fc5850c
replay: fix replay looping (#22618) 2021-10-19 12:59:06 -07:00
Dean Lee 107ed35d1e
replay: parse route string, replay from the specified segment (#22503)
* parse segment name

* return 0

* update regexp

* with |

* dd

* use struct

* move to class Route

* refactor loadFromLoacal

* simplify loadFromJson

* cleanup load from server

* const ref
2021-10-19 14:45:07 +02:00
Dean Lee 4678903a61
replay/camera: publish each camera in a separate thread (#22591)
* publish frames in a seperate thread for each camera

* cleanup

* cleanup

* prefetch next frame

* cleanup
2021-10-19 14:39:47 +02:00
Willem Melching e5e90aeae5 replay: improve download prints 2021-10-19 12:48:38 +02:00
Dean Lee 8d1d0c2cd7
replay: improve segment downloading (#22504)
* improve segment downloading

dd

* continue

* log retrying

* check aborting_ in loop

* std::endl

* log download information

* cleanup

* continue

* dd

* move download to seperate funciton

* simplify logging

* continue

* guard ts

* cleanup

* typo
2021-10-19 12:33:12 +02:00
Dean Lee 0189a19b8e
replay: refactor FrameReader (#22438)
* decode from the previous keyframe after seek

* less memory

* some stream seems to contian no keyframes

* test random seek

* merge master

* continue

update test_cases

use fr

* merge master
2021-10-18 14:19:23 -07:00
Dean Lee ccc07db1ee
replay: just load one segment to start replaying (#22598) 2021-10-18 12:03:34 -07:00
Dean Lee 94b3d4d267
replay: allocate events in contiguous memory pool (#22535)
* memory pool

* reserve events too

* remove dctor

* cleanup

* move pool into class LogReader

* cleanup include
2021-10-18 11:10:08 +02:00
Dean Lee f6de10b55a
replay: start streaming after segment loaded (#22575)
* start streaming  after segment loaded

dd

* loop from beginning if reaches the end

* isSegmentLoaded

* one loop

* move to ctor

* delete stream_thread_ on exit

* pause streaming while testing seek

* Revert "one loop"

This reverts commit f029cd118f7ac876dee1dbf2b91478403211ad47.

* test:dummy stream thread

* cleanup

* start thread after vipcserver
2021-10-18 11:05:03 +02:00
Dean Lee c73d9ddaa6
replay: fix hanging on shutdown while downloading (#22592) 2021-10-18 11:03:30 +02:00
Dean Lee 5735d69d47
CameraView: fix possible crash on 'fit in widget' mode (#22594) 2021-10-18 11:02:08 +02:00
Dean Lee 085c424cf9
framereader: remove swscale (#22578) 2021-10-16 13:56:04 -07:00
lipniak df9492d1e1
UI: add missing header to fix Ubuntu 21 build (#22577)
Co-authored-by: predicate@bonzo <noreply@example.com>
2021-10-16 13:30:14 -07:00
Comma Device d4b35dc130 installer: fetch all for internal installer 2021-10-16 13:17:51 -07:00
Dean Lee ae5eedb0b1
Replay/framereader: fix c3 qcamera padding problem (#22572) 2021-10-16 12:24:34 -07:00
Dean Lee 47ce0b4cd2
replay: added a missing #include <array> on Mac (#22573) 2021-10-16 09:02:19 -07:00
Dean Lee 20b0ae0e65
replay: fix possible segfault in CameraServer (#22556) 2021-10-15 15:34:54 -07:00
Dean Lee acc52ece20
replay: refactor Route and Segment (#22531)
* new functions

* fix wrong call to qUrl::isLocalFile

* cleanup

* keep extension in cached files

* cleanup

* simplify segment

* delete thread

* add output

* pre-decompress

* remove suffix

* revert remove suffix

* 1 connection for log file

* cleanup

* segment may not be continuous,use map

* don't emit finish if aborting_

* use QFuture and thread pool

* cleanup

* fix segfault in LoadFromLocal

* cleanup

* handle segment failed to load

* output info

* continue error handling

* Remove redundant testSeekTo

* cleanup

* always return true

* keep time is ok now

change to 1s

write 1 byte at the end of the sparse file

* log loading segment

* merge #22476

* Update selfdrive/ui/replay/logreader.cc

* correct connect

* pub message in function

* typo

* Update selfdrive/ui/replay/replay.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-15 14:35:17 -07:00
Dean Lee 3de2cd897b
watch3: fix layout warning (#22566) 2021-10-15 00:28:26 -07:00
ZwX1616 8574e79fec
wider FOV DM on comma three (#22286)
* c3 is straightforward

* c2 transform

* c3 preview

* alpha model

* Revert "alpha model": wrong quantization data

This reverts commit b50e573973.

* yuv looks good

* a55b

* const int

* block top deadzone

* new box alpha curve

* update k

* fix debug

* rhd use same offset

* box shift for rhd

* 7e3e

* set new thresh

* update ref

* explain

* remove e2e

* same metric thresh

* process isocc

* model

* cancel extra policy

* update numbers

* new model

* update cereal

* up cereal

Co-authored-by: Comma Device <device@comma.ai>
2021-10-13 17:00:46 -07:00
Mitchell Goff fd3fdea7b4
Use TICI intrinsics by default on PC (#22546) 2021-10-13 12:44:36 -07:00
Dean Lee 43a846843f
c++ replay: support local routes (#22288)
* support local route

* kind of works

* works

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-12 00:51:22 -07:00
Adeeb Shihadeh ff771d9fcf
add tool to watch all three beautiful cameras (#22528) 2021-10-12 00:23:31 -07:00
Adeeb Shihadeh f1fcf17c4c
replay: support old, pre-pandaStates routes (#22525)
* replay: support old, pre-pandaStates routes

* cleanup
2021-10-11 15:58:44 -07:00
Dean Lee c801c65b9d
replay: get EncoderIndex from capnp::AnyStruct (#22518)
* get EncoderIndex from capnp::AnyStruct

* const
2021-10-11 09:57:35 -07:00
Dean Lee afaf235acd
UI: fix stuck in visionIPC receive timeout (#22450) 2021-10-09 14:43:27 -07:00
Dean Lee 537dff3ae0
replay/camera: fix incorrect console output (#22491) 2021-10-08 19:51:23 -07:00
Comma Device 52cd06aa62 remove semicolon 2021-10-08 12:21:47 -07:00
Willem Melching e788f4f587 installer: leave some space after strings 2021-10-08 11:27:54 -07:00
Adeeb Shihadeh db81bf52ea installer: cleanup old cache paths 2021-10-08 10:42:41 -07:00
Robbe Derks 91987f38d4
Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
2021-10-08 17:54:34 +02:00
Willem Melching d898841e87
Change APN from settings (#22440)
* Change APN from settings

* subtext

* one function

* bring connection down and up

* fix adapter type

* trim input

* fix scrolling in scanning state

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-10-07 23:47:23 -07:00
Adeeb Shihadeh 5b641379ae
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>
2021-10-07 16:32:44 -07:00
Dean Lee 5527736df6
replay: simplify seek&merge (#22463)
* simplify seek&merge

* update test cases

update test cases

* cleanup test cases

* new function currentSeconds

* add TODO

* thread safe publishFrame

* cleanup

* fix 'at x S' not printed if seek back to old time

* exit replay if failed to load route

* move out setCurrentSegment from if statement

* cleanup

* use std::find

* const variables
2021-10-07 17:32:16 +02:00
Greg Hogan 188b634222
replay: print current time when paused (#22468) 2021-10-07 10:41:49 +02:00
Adeeb Shihadeh e424f7182c retry submodule checkout on internal installer 2021-10-06 19:45:22 -07:00
Dean Lee f7cf4be995
repaly: stop publish socket on multiple publishers error (#22449) 2021-10-06 14:04:51 +02:00
Dean Lee 261d51de41
test_replay: temporarily comment out some unit tests (#22447) 2021-10-06 12:27:52 +02:00
Dean Lee b5988d5601
replay: cleanup output (#22434) 2021-10-05 15:15:46 +02:00
Dean Lee 60b0c43c90
replay: refresh segment window after current segment is changed by seek (#22436) 2021-10-05 15:15:33 +02:00
Dean Lee 97fc8b941e
FrameReader: increase probesize to 10MB (#22437) 2021-10-05 15:15:11 +02:00
Willem Melching 94afd0ea0f
replay: do not use OpenCL (#22431) 2021-10-04 19:43:52 +02:00
Dean Lee 2253cba98b
c++ replay: graceful shutdown (#22280)
* graceful shutdown

* reset termios

* continue

* call clear in dctor

* unpause

* delete vipc_server

* relase context

* notify_one

* merge master

* merge master

* print vipc stop listen before shutdown down
2021-10-04 18:00:49 +02:00
Dean Lee 29b9c8f13b
replay: cleanup console output (#22410) 2021-10-04 17:15:03 +02:00
Dean Lee 1eb79d7a59
c++ replay: publish all frames in CameraServer (#22378)
* cameraserver

* support yuv

* init camera server in start()

* trigger ci
2021-10-04 16:45:28 +02:00
Dean Lee fd801c454a
c++ replay: get socket name from capnp::Schema (#22367)
* get socket name from canp::Schema

* use vector
2021-10-04 15:44:06 +02:00
Dean Lee d28b98c602
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
2021-10-04 15:39:59 +02:00
Dean Lee fa8ddd992d
c++ replay: more robust seek (#22375)
* skip invalid segment

* test seek

* fix wrong cur_mono_time when route_start_ts is 0

* don't notify stream thread if current segment not merged

* continue merge next segment if current is invalid

* cleanup seekTo

* continue

* fix seek cross-boundary

* new demo route has 11 segments

* continue

* fix cross-boundary

* cleanup & better test cases

cleanup

remoe &

typo

update comment

* update test

* reserve space for new_events

* parallel sorting

* usleep(0)

* Revert "parallel sorting"

This reverts commit d7d1b42f49944aef0b6ca2962e45a7f5318a1152.
2021-10-04 15:00:57 +02:00
Willem Melching 009e37e797
ui: only update ignition when panda is connected (#22425) 2021-10-04 14:11:32 +02:00
Willem Melching 9c771b45fc ui: make OpenGL context current before connecting to VisionIPC 2021-10-04 10:37:31 +02:00
Dean Lee a6da064a93
replay/segment: std::atomic member variables (#22409) 2021-10-02 16:09:39 +02:00
Adeeb Shihadeh c11be0f49a update useradmin url 2021-10-01 17:36:46 -07:00
grekiki 4c7acf680c
C++ replay cache folder path / fix (#22396) 2021-10-01 17:32:41 +02:00
Adeeb Shihadeh 23ae67bbf9
UI: auto wide detection on PC (#22392)
* UI: auto wide detection on PC

* invert width

* cleanup
2021-09-30 20:48:02 -07:00
Jason Wen e797439c5f
UI: whitespace fix (#22383) 2021-09-30 14:45:24 -07:00
Adeeb Shihadeh 45409cb4fe
UI: big pairing QR code (#22384) 2021-09-30 14:00:52 -07:00
Willem Melching a31c6ce3f9
tools: make auth optional for public routes (#22386)
* tools: make auth optional for public routes

* handle 403

* show warning from c++ replay
2021-09-30 20:13:46 +02:00
Adeeb Shihadeh dd67dc6b34
update demo route (#22381) 2021-09-29 18:51:30 -07:00
Willem Melching b7c64542f4
replay: fall back to qlog (#22362) 2021-09-29 17:44:10 +02:00
Willem Melching 6881688af2
replay: send frames based on encodeIdx packet (#22361)
* send frames based on encodeIdx

* use start of frame time if set

* also use end of frame if set

* fix timestamp for encode packets

* handle all cameras

* add comment

* add twice
2021-09-29 17:43:56 +02:00
Dean Lee 318a8ba854
c++ replay: more accurate sleep (#22348)
* precise sleep

* cleanup

* continue
2021-09-29 16:59:12 +02:00
Dean Lee a548d4b5b8
c++ replay: improve seeking&updating events (#22319)
* improve seeking

* qDebug

* cleanup

* wait on cv

robust

* Trailing underscores for member variables

* group log variables

* small cleanup,remove unnecess std::atomic

* remove debug output

* fix seek problem

* add comment

* better lambda

* faster seek.don't block stream thread if segment already loaded

* remove assert
2021-09-28 12:28:29 +02:00
Dean Lee 4e6ff308a8
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
2021-09-28 12:24:48 +02:00
Dean Lee e888a7e939
load d/e camera by command line flags (#22341) 2021-09-28 11:25:18 +02:00
Adeeb Shihadeh 0d0aad05ce
setup: add low voltage warning (#22342)
* setup: add low voltage warning

* read voltage

* fix path
2021-09-24 14:30:49 -07:00
cydia2020 70e1c9c40c
UI: Fix mph and wi-fi spelling (#22334)
* display WiFi as Wi-Fi

* fix typo in metric setting description
2021-09-23 22:23:34 -07:00
Jason Wen 67c09b4caf
Fix small typo in DisableRadar toggle description (#22333) 2021-09-23 19:52:59 -07:00
Adeeb Shihadeh 649af76fd4
remove community supported cars from community features (#22330)
* remove community supported cars from community features

* remove bosch and hkg long

* remove test case

* update refs
2021-09-23 17:34:52 -07:00
Willem Melching 8c01ae5716
Add DisableRadar_Allow param and settings toggle (#22329) 2021-09-23 17:19:47 -07:00
Achilles308 d888ef8f89
UI: re-order sidebar temp wording (#22323) 2021-09-23 15:14:00 -07:00
Dean Lee dff6dbfbe9
rename filereader.cc[h] to logreader.cc[h] (#22279) 2021-09-19 15:54:03 -07:00
Dean Lee abffc8b2ad
UI: new class ListWidget (#21273)
* ListWidget

* continue

* remove function horizontal_line

* cleanup

* default spacing 25

* fix networkpanel margin on EON

* solid expanding

* 0 width

* cleanup

* apply reviews

* remove function addLayout,make it looks like QLIstWidget

* rename addWidget to addItem

* rebase master

* rebase master

* merge master

* cleanup

* fixed title bar position

* no flash while folding

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-19 15:14:54 -07:00
Dean Lee ec67d2b8f5
replay: pause/resume using spacebar (#22278)
* pause/resume using spacebar

* Update selfdrive/ui/replay/replay.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-19 14:47:17 -07:00
Dean Lee 50ae7dd6a9
replay improvements (#22203)
* refactor replay

* cleanup

small cleanup

* merge 22239

* cleanup

* add optional argument for start time

* small cleaup
2021-09-19 12:24:28 -07:00
Dean Lee 8eb92a98ba
replay: don't splits empty strings (#22271) 2021-09-18 22:40:36 -07:00
Dean Lee cb49ceabf0
replay: remove array subscript (#22268) 2021-09-18 18:58:37 -07:00
Adeeb Shihadeh f49e7629ee
replay: add nice arg parser (#22264)
* replay: add nice arg parser

* demo

* cleanup
2021-09-17 00:33:23 -07:00
Dean Lee f5aa3a30c9
replay: thread-safe seek (#22228) 2021-09-16 23:45:46 -07:00
Adeeb Shihadeh 78b97eaa36 UI: show steering wheel icon while engaged or engageable 2021-09-16 23:43:19 -07:00
Adeeb Shihadeh 86beb9a81a UI: fix getting stuck after vipc recv timeout 2021-09-15 20:31:24 -07:00
George Hotz 8d554abbf7 demo route note in replay 2021-09-14 13:53:49 -07:00
Willem Melching abae4ef72c Revert "ui: use C3 video sizes by default on PC"
This reverts commit cf4cd3b693.
2021-09-14 11:48:34 -07:00
Willem Melching cf4cd3b693 ui: use C3 video sizes by default on PC 2021-09-14 11:27:34 -07:00
Dean Lee a89bdb6a05
fix Replay::mergeEvents: use std::end() (#22215) 2021-09-13 09:49:32 -07:00
Dean Lee 365e8bfd93
replay: unlock mutex before sleep (#22213) 2021-09-13 00:57:03 -07:00
Dean Lee eb4a28af11
replay: fix bugs in merging events (#22205) 2021-09-12 16:29:37 -07:00
Dean Lee 2d640e25c3
UI: lazy onboarding widgets init (#21780)
* don't show onboarding on startup

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-11 18:18:58 -07:00
Dean Lee a1a0201069
replay: thread safe merge & free logs (#22196) 2021-09-11 17:35:04 -07:00
Dean Lee f3683dd4cb
test_replay.cc: temporarily comment out the rand seek test (#22192)
* Temporarily comment out the rand seek test

* enable ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* trigger ci
2021-09-10 21:53:46 -07:00
Adeeb Shihadeh b3705ede5e
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>
2021-09-10 17:03:54 -07:00
Dean Lee 81a128cd76
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
2021-09-09 13:40:12 -07:00
Dean Lee a034926264
Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-08 13:13:27 -07:00
Adeeb Shihadeh d5475ba946
nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
2021-09-07 17:39:24 -07:00
Jason Young 251a074b20
Fixes for C3 LTE connection being deleted (#22129)
* Fix for LTE connection being deleted

* also fix newConnection

* simplify
2021-09-07 09:54:12 -07:00
Adeeb Shihadeh d5face26a8 nav: set map widget parent 2021-09-06 22:51:09 -07:00
Willem Melching 576459ca45
map fixes, #22105 (#22152) 2021-09-06 16:53:09 -07:00
Dean Lee e284f515b9
c3 keyboard: fix button status not updated (#22127) 2021-09-06 12:24:31 -07:00
Dean Lee 5fea367fc9
C3: Fix keyboard buttons on the right getting stuck in pressed state (#22050)
* fix keyboard state stuck

* remove popup flag

* update in time
2021-09-03 22:24:37 -07:00
Adeeb Shihadeh ee7682ae4a only toggle sidebar visibility when clicking on the onroad widget 2021-09-03 15:45:02 -07:00
Adeeb Shihadeh 145fd88deb fetch all branches on internal installer 2021-09-02 12:09:42 -07:00
sshane 6fad0055b4
UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a3.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
2021-09-01 14:33:06 -07:00
Dean Lee 30ec2bc403
driverview.cc: cleanup paintEvent (#21531) 2021-09-01 13:56:07 -07:00
Dean Lee 579fb8072a
HomeWindow: cleanup mousePressEvent (#21683)
* cleanup mousePressEvent

* show/hide map in onroad

* merge master
2021-09-01 13:30:33 -07:00
Dean Lee 1786416e3c
ui: clickable ElidedLabel (#21773)
* ElidedButton

* rename to ClickableLabel

* move to ElidedLabel
2021-08-30 22:16:48 -07:00
Dean Lee d9baaf7eb9
loggerd: create encoder threads from cameras_logged (#21875) 2021-08-30 19:33:00 -07:00
ambientocclusion ed271911c2
Fixed build issues on macOS (#22075)
* Fixed deprecated enum value

* Changed to build Qt replay on macOS
2021-08-30 09:18:14 -07:00
Adeeb Shihadeh 86a73497de
add fit to widget option to camera view (#22056)
* add fit to widget option to camera view

* add clicked signal

* cleanup

* use release for driverview

Co-authored-by: Comma Device <device@comma.ai>
2021-08-28 13:08:48 -07:00
Adeeb Shihadeh 6c25b44369
installer: add cache path on userdata (#22045)
* installer: add cache path on userdata

* keep legacy as is

* only copy

* print cache path

* comment
2021-08-26 10:43:47 -07:00
Adeeb Shihadeh 084b932eeb
UI: show thermal status instead of ambient temp (#22041)
* no number

* space evenly
2021-08-25 11:01:04 -07:00
Dean Lee dec9addce0
Alert::equal: pass Alert by const reference (#22044) 2021-08-25 09:33:27 -07:00
Adeeb Shihadeh 9c7c4657f0
UI: use rcc on all platforms (#21966) 2021-08-23 20:12:40 -07:00
Adeeb Shihadeh 1ebe06d1c2
unify agnos/neos installers (#22023)
* c2 installer

* remove old installer

* move to its own dir

* die immediately

* fix that

* init app
2021-08-23 16:01:21 -07:00
Dean Lee a165f25762
Qt: new global WIDE_UI (#21977) 2021-08-19 14:14:34 -07:00
Willem Melching 01e779ef2d C3: increase brightness at night a little 2021-08-19 16:54:43 +02:00
Dean Lee e573985c10
swagLogMessageHandler: replace magic number with macro (#21944) 2021-08-17 17:51:13 +02:00
Dean Lee 67f5522914
sidebar: simplify updateState with QPair (#21927)
* ItemStatus

* add whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-16 14:21:47 -07:00
Mitchell Goff 05b37552f3
Retuned desire model (#21919)
* New model: d8e7f76f-7bec-4a83-af00-c0fae792527f/950

* Updated process replay refs

* Updated model replay ref
2021-08-12 21:06:26 -07:00
Willem Melching 512ab3d8fb nav: do not transition to next segment if we need to recompute 2021-08-12 19:50:14 +02:00
Greg Hogan 3a578cb5b5
fix cd in process scripts (#21806)
* ui: fix cd in launch script

* do the rest

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-11 11:20:17 -07:00
Willem Melching 358cdaaefd
Improve perceived display brightness (#21884)
* tweak light sensor function

* CIE 1931 compensation

* before filter

* C3 scaling

* C2 is also linear

* whitespace

* scaling and min brightness
2021-08-11 10:27:22 +02:00
Adeeb Shihadeh 3616602cd2 openpilot nightly installer 2021-08-10 11:29:41 -07:00
Dean Lee 62d34ed4e5
BASE_URL: use util::getenv (#21894) 2021-08-10 11:15:09 -07:00
Harald Schafer 543a0c509d better name 2021-08-10 11:00:35 -07:00
Dean Lee 339aa5e3f9
fix lead2 not updated (#21895) 2021-08-10 10:58:28 -07:00
HaraldSchafer e0087fc313
Fix orientation in map (#21863)
* fix calibrated orientation

* update ref

* cleaner

* update ref

* master

* update again

* update ref again again

* actually compiled this tim,e
2021-08-05 21:06:46 -07:00
HaraldSchafer 276b00ccb8
Draw model leads (#21864)
* draw model not radar

* compiles

* wrong way
2021-08-05 20:35:03 -07:00
arfy slowy d74def61f8
fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-08-05 12:05:49 -07:00
Harald Schafer e63d94d8d2 Revert "nav: use calibrated orientation (#21853)"
This reverts commit 4b209f31a1.
2021-08-04 10:41:49 -07:00
HaraldSchafer 4b209f31a1
nav: use calibrated orientation (#21853)
* calibrate map

* msg added
2021-08-04 09:58:04 -07:00
Dean Lee fefc70b4ca
hw.h: move Hardware-related paths to namespace Path (#21826)
* refactor getenv and path

* apply review
2021-08-04 13:29:03 +02:00
Adeeb Shihadeh 4f9e568019
system reset improvements (#21844)
* reset improvements

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-08-03 17:44:27 -07:00
Adeeb Shihadeh 31a4b55218
embed continue scripts in installer (#21846)
* embed continue scripts in installer

* cleanup
2021-08-03 17:32:02 -07:00
Adeeb Shihadeh ae1f5e0e8c remove wifisetup 2021-08-03 17:29:01 -07:00
Dean Lee 543e019f71
api: use API_HOST env variable everywhere (#21814)
* api base url to global constant

* update api/__init__.py
2021-08-03 13:49:49 +02:00
Adeeb Shihadeh 3129e058f8 use continue_dashcam for dashcam installer 2021-08-03 00:04:54 -07:00
Adeeb Shihadeh 1f341a2810 we have release branches now 2021-08-02 22:18:06 -07:00
Dean Lee f5c95b026a
OffroadHome: update alerts immediately in showEvent (#21808) 2021-08-02 22:07:07 -07:00
Dean Lee 8f7fc61e48
Sidebar: set Qt::WA_OpaquePaintEvent attribute (#21782) 2021-08-02 21:26:09 -07:00
Dean Lee 776516d72b
Qt/spinner: reduce cpu usage from 12% to 9% (#21552)
* faster spinner

* reduce to 6%

* Revert "reduce to 6%"

This reverts commit 65e23bb7a9542ccca13b8f01b7a5d56580a61bf6.
2021-08-02 21:24:02 -07:00