Commit Graph

585 Commits

Author SHA1 Message Date
Adeeb Shihadeh 53be19e8bd UI: rename developer -> software in settings (#21117)
old-commit-hash: 895c054213d2734cc18472b198121e54c700bd1d
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: 9876723169ba0fd0c61169699caaa63246473e85
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: 65e1d8f63345cf78f05a605a52313c6f520cf4a8
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: 867f7d39fd6d8179d924cbc11ae60f1f628293e9
2021-06-01 17:03:37 -07:00
Adeeb Shihadeh ddf151dc30 show upload toggle on tici
old-commit-hash: c985291e167b430df2669d2fe1f0e2078a508c52
2021-06-01 16:53:03 -07:00
Willem Melching f8c5f2f111 ui: offroad -> while car is off
old-commit-hash: f184bae8e0bcb9cb26dc2cdacac3d415f00486ae
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: e66bbec52b88abbf712fdd37be3f80bc00a3c7cf
2021-05-31 15:33:49 +02:00
Maxime Desroches 88ae07b37b UI: add missing override identifiers (#21081)
old-commit-hash: 3c058e0b646c7918650c7779928ea67fe1627c9b
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: e3f6360e45f3cc820c26a2f65e2bf382515db7e0
2021-05-28 21:15:45 -07:00
Willem Melching c0984ebb97 cleanup brightness params (#21066)
old-commit-hash: 93424ec6b4f1fb18db61e27877f28fa0357c5455
2021-05-28 15:45:41 +02:00
Dean Lee a436b51e84 move c++ framereader to selfdrive/ui/replay (#21053)
old-commit-hash: bb5bcc7e49b8a1ae04e951ffc03848432edd8859
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: 23789c9d4ecbeb7a4b7cbecd0d5c231e303544ba
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: 5540dcae7820f0c5f3e0122ed22bd19a8bb0203e
2021-05-24 17:01:15 -07:00
Adeeb Shihadeh 23ee6342be coords need to be float
old-commit-hash: bc8ac03b15bdf46696a8e840dc48622e9ebda1e9
2021-05-24 00:56:54 -07:00
Adeeb Shihadeh 88fbaf6fd0 nav destination script
old-commit-hash: a947be76b099a4ee15a1fd793a0b163b410b0232
2021-05-24 00:45:18 -07:00
Comma Device fc77b88fa9 fix sidebar network type and signal
old-commit-hash: 1fd7f66a14ee2718cebaad01148f9541b2d221bc
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: 179ff6e7ae0d3d1648860b3b2b1e7b4b96fb4756
2021-05-22 14:37:12 -07:00
Willem Melching 53a78620b9 maps: fix pan amount after 2x scaling
old-commit-hash: 9c588e6117b0c25d42877fad1d7e59dce030170f
2021-05-21 17:10:59 +02:00
Willem Melching 837e9eb290 maps: fix pan and zoom
old-commit-hash: 80ffbe913665626619da14e14213068df8d3fccf
2021-05-21 17:06:01 +02:00
Willem Melching a207482fc7 ecam toggle: clear calibration (#20987)
* ecam toggle: clear calibration

* whitespace

* no more reboot needed
old-commit-hash: 9bb2209c8eb88a75367696e79a565545f1fc38d4
2021-05-21 16:31:51 +02:00
George Hotz bf3ba8badc 4G sounds slower than LTE
old-commit-hash: d62e00738058f9b531c8add14c78258eb4c50fac
2021-05-20 11:33:39 -07:00
Maxime Desroches 778f54057b UI: add decline page for the Terms and Conditions (#20919)
* add decline page

* change action + keep the same layout
old-commit-hash: d44ee69b24f530e7b5bde681f331642a32f0d265
2021-05-20 15:59:56 +02:00
Willem Melching f923f47b98 athenad: reconnect after not receiving ping (#20974)
* athenad: reconnect after not receiving ping

* make sidebar timeout longer than timeout in athena

* whitespace
old-commit-hash: f9f84fe8a2540dd87b05d93cb8234707d8bbe21b
2021-05-20 13:57:46 +02:00
Adeeb Shihadeh d1498aa3d3 replay: fix jwt path on PC
old-commit-hash: a394d1017a726d1230dc58e59736bc39235ba3e5
2021-05-20 02:29:41 -07:00
George Hotz 6922150ede Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar (#20960)
* wip

* one day i'll flip that right

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f43671c9878e2babc7c524a6f1476c571e8b900a
2021-05-18 22:37:33 -07:00
Adeeb Shihadeh 4d137f459f fix inlcude in setup.cc after include cleanup
old-commit-hash: efca6eaa702dedb08a6bfa7c0f562e434ac6e8c8
2021-05-18 20:28:16 -07:00
Willem Melching 60ac2dd4c0 Update visionIPC stream and intrinsic matrix when going onroad (#20947)
* Choose correct vipc stream when going onroad

* whitespace
old-commit-hash: ccdec0291d97da29c8b2d0edce579e0f9a5ab07d
2021-05-18 14:17:38 +02:00
Willem Melching 19dfb1d1f0 strip whitespace from token
old-commit-hash: f9b20095a24e69173fffaa806decfcf3cbbcf64d
2021-05-18 12:14:16 +02:00
Maxime Desroches 7042222026 Fix Terms and Training guide skip when the screen turns off (#20942)
old-commit-hash: 553e7d1cce314e7eb0587186b1764c3ff43bed62
2021-05-18 11:26:04 +02: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: 86aefbe7667f0693402c1883d286ce331e9d6215
2021-05-17 14:57:07 +02:00
Dean Lee 5609f32cee Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
old-commit-hash: 0495426535490e7d8d503af35ace7a20dc70a7bb
2021-05-17 10:31:31 +02:00
Dean Lee 8d2dc5b18c MainWindow: use static QSet for filter_events (#20924)
old-commit-hash: 2c73cac0a230e57138e5e9cd75e1da76a211e97f
2021-05-16 21:21:46 -07:00
iejMac f786b284d5 Replay: seeking functionality (#20763)
old-commit-hash: f0d0b82b8d6f5f450952113e234d0a5a49e80c48
2021-05-15 17:06:30 -07:00
Dean Lee ebe3a39909 UI: remove duplicate capnp readers (#20855)
* refactor submaster

* rebase master

* CAPNP best pratice

* zero initialize

* vwp_w has not been initialized before UIState()

* no static

* rebase master

* Minimize refactoring

* cleanup

* remove gpsOk

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 533bc30c2e4ecac5e022f2ba4f3919842dfa0a1a
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh f1d4b920bc fix reverse gear alert text cutoff (#20888)
* fix reverse gear alert text cutoff

* offset removed
old-commit-hash: ff16145f4de95b67815104596ec46da09b3f704a
2021-05-12 18:18:06 -07:00
Adeeb Shihadeh 4f29e600a7 prime ad: comma connect -> explorer
old-commit-hash: ace5ee9d466606584c4eb961c1d0e5fed38cba3c
2021-05-11 14:50:48 -07:00
Adeeb Shihadeh 8002b848b6 offroad alert for unregistered devices (#20870)
* offroad alert for unregistered devices

* update tests

* add param

* fix stretch
old-commit-hash: b93ccc465dbc8b847b65f7d062182465344dac4d
2021-05-11 03:18:45 -07:00
Adeeb Shihadeh 7410c4a2d7 onroad UI optimizations (#20871)
* onroad UI optimizations

* remove that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5f5bbd64f28c2567cddccd5e27a93599d57b010b
2021-05-10 23:19:32 -07:00
Adeeb Shihadeh 494860c201 remove offset from full screen onroad alerts
old-commit-hash: 38741b2e08c31516d269ba26d34900d17038202a
2021-05-10 22:39:28 -07:00
Adeeb Shihadeh eb79a7214e match nvg onroad alerts (#20854)
old-commit-hash: e06f9828eaf93fcbd9b0cdfbebc54b4197565fc5
2021-05-10 22:09:36 -07:00
grekiki d05c5df569 Qt ui: show open panel on startup (#20859)
* should work

* spaces
old-commit-hash: 95e8c75ebd4d96b5436431644c040fec1a02fdad
2021-05-08 22:24:22 -07:00
Dean Lee cd50782410 OffroadAlert: add stretch at the bottom (#20856)
old-commit-hash: b0e2374635ba85dcbc9eeeb040dcff924b1ffb24
2021-05-08 22:21:00 -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: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh 7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e62688190ab7a6db0b518a5ba77cbd0902c
2021-05-07 15:12:29 -07:00
Willem Melching 78bf4f5867 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>
old-commit-hash: ab319d4f54a53e1a0aa1c2c0d94d56a9acef8362
2021-05-06 14:39:05 +02:00
Willem Melching 39c18d4c5a Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.

old-commit-hash: 3a95d3ccaae7168073410cd7d392a9564d9d45ba
2021-05-06 12:29:30 +02:00
Willem Melching f8608d2e7b Revert "Fixes after ifdef clenaup (#20842)"
This reverts commit 59c31bac9a340f120ff40ed541ee377c31e7e85e.

old-commit-hash: d34647bbf7f877f56bacaab04a2a0dc8a332fc6a
2021-05-06 12:29:19 +02:00
Willem Melching 3cc799ecd8 Fixes after ifdef clenaup (#20842)
old-commit-hash: fd7c2b4adf3844e8fc15b6b371cedf33438bbc22
2021-05-06 11:58:35 +02:00
Dean Lee e0282ced49 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
old-commit-hash: 757d2923d2bfcda620b252e21a348ac3f87f3a63
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh 5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f9072199571742f9e349990bb58540401a863f67
2021-05-04 23:23:00 -07:00