Commit Graph

618 Commits

Author SHA1 Message Date
Dean Lee 2594804780 OffroadHome::refresh(): remove emit before closeAlerts() (#21219)
old-commit-hash: fda0c6895c
2021-06-10 13:34:42 -07:00
Willem Melching 94c76f41e9 nav: expand banner at correct distance from maneuver
old-commit-hash: 43151389e7
2021-06-10 12:31:47 +02:00
Willem Melching 4f842b076d nav: cleanup eta spacing
old-commit-hash: 08a7ea1af4
2021-06-10 11:09:27 +02:00
Willem Melching 1a483aad55 remove debug statement
old-commit-hash: 34edaa543a
2021-06-10 10:01:38 +02:00
Willem Melching af5cbb346b nav: lighter eta colors for better readability
old-commit-hash: 63cb0f7c20
2021-06-10 10:01:06 +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
Dean Lee 133723680b configFont: pass family by const reference (#21216)
old-commit-hash: a8b6178c1e
2021-06-10 00:05:52 -07:00
Dean Lee 60c7e01d2d remove double semicolons (#21215)
old-commit-hash: d82fa763d8
2021-06-10 00:03:34 -07:00
Maxime Desroches 426df0435b Convert C++ while loops from int to bool (#21214)
old-commit-hash: 03df1b08bb
2021-06-09 21:09:21 -07:00
Willem Melching 4d47e3383c alerts: fix gradient
old-commit-hash: a361441fe2
2021-06-09 15:06:29 +02:00
Dean Lee 625bf79623 qt/util.h : add new function setQtSurfaceFormat (#21206)
old-commit-hash: 9429bd2783
2021-06-09 14:09:49 +02:00
Dean Lee 51cf285c31 Passing arguments by reference (#21205)
old-commit-hash: ee46672d3c
2021-06-09 14:09:02 +02:00
Willem Melching 93858572b5 nav: only use cache on device
old-commit-hash: 6cfc7d5af1
2021-06-09 12:37:14 +02:00
Willem Melching 8fd0aafdbc nav: eta match alert colors
old-commit-hash: ff94882fa6
2021-06-09 12:34:52 +02:00
Willem Melching 9643e0fcdd alerts: fix alpha blending
old-commit-hash: ace39431eb
2021-06-09 12:17:48 +02:00
Dean Lee e81079461f networking: draw network strength without images (#21187)
* draw network strength wighout images

* remove include qpixmap

* space

* lower case

* cleanup
old-commit-hash: 0958bd2253
2021-06-08 14:20:08 -07:00
Dean Lee 7e5def641e sidebar: draw network strength without images (#21185)
* draw network strength without images

* Trigger Build
old-commit-hash: 48696105ae
2021-06-08 14:17:02 -07:00
Dean Lee f70a79b838 Use C++ header files instead of C header files. (#21192)
* use cstring instead of string.h

* use cstdio instead of stdio.h

* remove inttypes.h

* use cstdlib instead of stdlib.h

* use cstdint instead of stdint.h

* #include <cstddef>

* cstdlib

* use cmath

* remove stddef.h

* use cassert

* use csignal

* use ctime

* use cerror

* rebase master
old-commit-hash: c53cb5d570
2021-06-08 13:46:22 -07:00
Dean Lee afd0b1ee64 FrameReader: use 'from' in std::min comparison (#21195)
old-commit-hash: 211212f86b
2021-06-08 13:32:42 -07:00
Dean Lee a88660795a Properly set parent for widgets (#21196)
old-commit-hash: 4a74d777f0
2021-06-08 13:32:10 -07:00
Dean Lee d122a3a2ad settings.cc: set parent for network & software panel (#21197)
old-commit-hash: 9e0fb09f9b
2021-06-08 13:31:51 -07:00
Dean Lee 3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60
2021-06-08 12:09:30 -07:00
Willem Melching 0757dac4c6 nav: show ETA and remaining distance (#21188)
* abbreviate distance

* static values

* update distance

* set eta

* use distance along geometry to compute eta

* add traffic info

* formatting improvements

* remove old

* add using git lfs

* git lfs

* cleanup

* abstract

* bit larger
old-commit-hash: 561f3b3191
2021-06-08 16:48:20 +02:00
Willem Melching efde8146e1 nav: fix negative bearings
old-commit-hash: 0d9c0d602f
2021-06-08 16:11:20 +02:00
Willem Melching f79ad64b31 nav: add current bearing to route request (#21186)
old-commit-hash: 41c96c99c7
2021-06-08 16:00:31 +02:00
Dean Lee 33d48d8139 ssh_keys.cc: remove shadowed params (#21184)
old-commit-hash: e772bbf723
2021-06-08 01:57:46 -07:00
Adeeb Shihadeh 585d98a464 fix settings buttons not disabling if started with ignition on
old-commit-hash: 1c952e75b5
2021-06-08 00:15:40 -07:00
Dean Lee 7fb038fcf8 refactor FrameReader (#21141)
* refactor FrameReader

* continue

* move that

* small cleanup

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 67fe3feb09
2021-06-07 23:31:59 -07:00
Willem Melching 6f757fdd60 Fetch mapbox token from API (#21136)
* delay widget creation until going onroad

* let athena fetch mapbox token

* only tici

* add token

* cleaner

* rename slots

* that was missing
old-commit-hash: 21be443499
2021-06-07 12:14:08 +02:00
Dean Lee 10029fb0b9 ui.h: const bg_colors (#21169)
old-commit-hash: 514111ca85
2021-06-07 00:04:16 -07:00
Willem Melching 879a616ba8 Various nav improvements (#21133)
* various nav improvements

* use traffic aware routing

* read last position from param

* allow compute without gps when no route

* cleanup

* properly hide route

* set pitch
old-commit-hash: 14f09e4ee1
2021-06-04 13:45:42 +02:00
Adeeb Shihadeh 78d65db218 limit icon flickering in UI (#21132)
old-commit-hash: 2ddfd82913
2021-06-03 23:06:14 -07:00
Adeeb Shihadeh 61d3b1f177 disable uploading raw by default (#21128)
old-commit-hash: c76c30fa2d
2021-06-03 15:24:30 -07:00
Adeeb Shihadeh 53be19e8bd UI: rename developer -> software in settings (#21117)
old-commit-hash: 895c054213
2021-06-02 19:55:38 -07: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
Adeeb Shihadeh 04e5fbe15e UI: add button to check for updates (#21103)
* UI: add button to check for updates

* send signal

* this is better

* that's in the description

* revert that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 65e1d8f633
2021-06-01 17:45:04 -07:00
Willem Melching 387d5b88a0 show 'failed to fetch update' when UpdateFailedCount is updated (#21096)
* show 'failed to fetch update' when UpdateFailedCount is updated

* update text
old-commit-hash: 867f7d39fd
2021-06-01 17:03:37 -07:00
Adeeb Shihadeh ddf151dc30 show upload toggle on tici
old-commit-hash: c985291e16
2021-06-01 16:53:03 -07:00
Willem Melching f8c5f2f111 ui: offroad -> while car is off
old-commit-hash: f184bae8e0
2021-06-01 14:41:58 +02:00
Willem Melching 8c3d2ed644 Update UI fixes/improvements (#21089)
* Show latest update time

* utc

* make work more than once

* cleanup

* whitespace

* only while offroad
old-commit-hash: e66bbec52b
2021-05-31 15:33:49 +02:00
Maxime Desroches 88ae07b37b UI: add missing override identifiers (#21081)
old-commit-hash: 3c058e0b64
2021-05-30 10:12:11 +02:00
Maxime Desroches 79931cc594 UI: Updated in settings (#21051)
* last update time + release notes

* remove test

* revert to previous constructor

* change label name

* time format for last update check

* cleanup

* add time formatting function

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e3f6360e45
2021-05-28 21:15:45 -07:00
Willem Melching c0984ebb97 cleanup brightness params (#21066)
old-commit-hash: 93424ec6b4
2021-05-28 15:45:41 +02: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 6afdeb58f1 Compute on-road screen brightness based on camera exposure (#21024)
* Compute screen brightness based on camera exposure

* fix up scaling

* remove light sensor completely

* fix gain calculation

* cleanup

* remove comment

* bump offroad brightness
old-commit-hash: 23789c9d4e
2021-05-26 12:21:11 -07:00
Dean Lee 7b253433f2 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
old-commit-hash: 5540dcae78
2021-05-24 17:01:15 -07:00
Adeeb Shihadeh 23ee6342be coords need to be float
old-commit-hash: bc8ac03b15
2021-05-24 00:56:54 -07:00
Adeeb Shihadeh 88fbaf6fd0 nav destination script
old-commit-hash: a947be76b0
2021-05-24 00:45:18 -07:00
Comma Device fc77b88fa9 fix sidebar network type and signal
old-commit-hash: 1fd7f66a14
2021-05-22 18:42:42 -07:00
Dean Lee 90d952b218 Sidebar: repaint only when properties updated (#20929)
* use qt_property

s

* cleanup

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 179ff6e7ae
2021-05-22 14:37:12 -07:00