Commit Graph

633 Commits

Author SHA1 Message Date
ShaneSmiskol ce94b4bc4b networking: properly set route metric for hotspot (#21265)
* Add dns priority to tethering connection

* it was route-metric

* only ipv4 is needed
old-commit-hash: 04ef4eeedae71d4af6cdc8b09f0f0aba532d9fec
2021-06-14 16:12:18 -07:00
Dean Lee 1b51d71ef4 sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT

* apply review

* space
old-commit-hash: 648b60a381e08597f2a7c2b05142070b947fa128
2021-06-14 14:54:38 -07:00
Dean Lee dcc1f28bb2 onroad: remove sound_map from OnroadAlert (#21258)
* remove sound_map from OnroadAlert

* fix indentation

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6816b6d8f8c73531e1ac4e6a49bce8e0e3a10f17
2021-06-14 14:52:14 -07:00
Dean Lee a760fcfbde OnroadAlerts: construct QPainter only when needed (#21260)
old-commit-hash: d07b45f50a9d05d91b27ef4a1488cd1910f45f31
2021-06-14 17:42:59 +02:00
Adeeb Shihadeh 2d047aae7e nicer replay prints
old-commit-hash: 060b5caf1bfe38dfc28114b167ee578afe650f62
2021-06-12 23:35:52 -07:00
Dean Lee d852c98d52 Refactor C++ LogReader (#21152)
* refactor logreader

* fix include order

* apply review

* remove typedefs

* remove include timing.h

* no parent

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8c202d1bb4a7e74431609eb16446973894edf100
2021-06-12 23:31:00 -07:00
Dean Lee 71b346b3e8 UI: refactor SoftwarePanel (#21244)
* refactor

cleanup

* one params

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7009ba0344834f18adc93b34960fa97d1ebf2efc
2021-06-12 21:36:35 -07:00
Dean Lee 63ff493fe8 UI widgets: remove unnecessary setLayout (#21232)
* remove setlayout

* remove setLayout

* space

* Update selfdrive/ui/qt/maps/map.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8f5c7e7bb5e4796708a8be672529bf65e89edaca
2021-06-12 21:28:17 -07:00
Dean Lee 842dabcff7 SoftwarePanel: fix padding (#21237)
old-commit-hash: d09c1de0ec2d89581004bc2c918f98318080c5c0
2021-06-11 17:40:21 -07:00
Adeeb Shihadeh 5f3712d340 remove panda fw string from settings
old-commit-hash: 66bf6fea5df4b10e6807269acd3077b1c4399873
2021-06-11 17:34:55 -07:00
Dean Lee e39a03e098 qt/util.h: new functions getBrand&getBrandVersion (#21238)
old-commit-hash: 5baad4692da08c1b3063fc50bf337b1b58f96406
2021-06-11 17:20:29 -07:00
Adeeb Shihadeh 5aa30638fe Fix UI crash when going onroad after onboarding (#21236)
old-commit-hash: d47b00b45a866bef088f51d1ff31de5885ab04e9
2021-06-11 16:17:53 -07:00
ShaneSmiskol 23ea456f4f Fixup joystick (#21129)
* some common changes

* rename to joystick

* add alert and update controlsd to work with joystick

* update joystickd

* Update Joystick readme

* assume we have inputs

* only send gb or steer when engaged_toggle is true

* Update instructions

* fix --ip

* Easier to understand at a glance

* much better

* -a

* receive events and send msg in same loop

* always import

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* combine logic and clean up

* use argparse

* outdated, and use normal class

* rm

* bit of a refactor

* refactor part 2 / 3

* much better (3 / 3)

* Simplify

* bump cereal and update readme

* capitalize

* Update tools/joystick/joystickd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update tools/joystick/joystickd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* make joystick abstraction class clearer

* use interp, clearer without comments

* no need to use apply_deadzone

* more explicit

* define btns and axes once

* split function by use_keyboard again, but simpler

* we can use handle_button as a reset function

* need to flip sign

* remove

* invert axes map for kb, easier to read the button mapping

* apply changes from review

* new lateral log for debug mode

* bump

* add saturated

* static alert

* joystick_mode

* conditionally subscribe

* Update selfdrive/controls/controlsd.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* move params instantiation

* Spoof active and enabled

* Only allow car to engage

* no startup alert if joystick

* Update controlsd.py

* Should be orange not enabled, green enabled

* no more button states

* should work

* blue

* submaster conflates, so only send when we have an update

* final change

* remove msg

* clean up a bit

sort of clean up

clean up a bit

remove msg

* this was right

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* lowercase

* suggestions from code review

* forgot laptop

* bump to latest

* fixes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
old-commit-hash: ae77f693a26527ffbee044f852cc4185718c2433
2021-06-11 14:33:17 -07:00
Dean Lee d36392cdea OffroadHome::refresh(): remove emit keyword on slot (#21227)
old-commit-hash: 7d3dc4d0311bef51a66c224327e0cba591a73eea
2021-06-11 12:17:33 +02:00
Dean Lee 147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0fc1a919dfb38800099f8e3ad52346f1
2021-06-11 10:17:52 +02:00
Dean Lee 2594804780 OffroadHome::refresh(): remove emit before closeAlerts() (#21219)
old-commit-hash: fda0c6895c434c74a5d57d1a8fd80b60b044b565
2021-06-10 13:34:42 -07:00
Willem Melching 94c76f41e9 nav: expand banner at correct distance from maneuver
old-commit-hash: 43151389e77ae6c4de8f61270e9a07e2d1c57f84
2021-06-10 12:31:47 +02:00
Willem Melching 4f842b076d nav: cleanup eta spacing
old-commit-hash: 08a7ea1af40b700922c9de2de7a299ec9b28cb3d
2021-06-10 11:09:27 +02:00
Willem Melching 1a483aad55 remove debug statement
old-commit-hash: 34edaa543ad41d42e52d82b4d91537c2d46729ad
2021-06-10 10:01:38 +02:00
Willem Melching af5cbb346b nav: lighter eta colors for better readability
old-commit-hash: 63cb0f7c20bbc4252e12090f8d62650cc799c859
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: 3c197953bc19c470547b950cd987af39909c5e9e
2021-06-10 09:59:34 +02:00
Dean Lee 133723680b configFont: pass family by const reference (#21216)
old-commit-hash: a8b6178c1ee9db6220127397030da7f7187fa375
2021-06-10 00:05:52 -07:00
Dean Lee 60c7e01d2d remove double semicolons (#21215)
old-commit-hash: d82fa763d86750b31fe3edbb278d71565f6e3580
2021-06-10 00:03:34 -07:00
Maxime Desroches 426df0435b Convert C++ while loops from int to bool (#21214)
old-commit-hash: 03df1b08bbe6b4156e9aa0bfbc5a85717094c877
2021-06-09 21:09:21 -07:00
Willem Melching 4d47e3383c alerts: fix gradient
old-commit-hash: a361441fe295a3d349750945f284158d3108d4dd
2021-06-09 15:06:29 +02:00
Dean Lee 625bf79623 qt/util.h : add new function setQtSurfaceFormat (#21206)
old-commit-hash: 9429bd27835bf2b9e2df192c888d3600ef784cef
2021-06-09 14:09:49 +02:00
Dean Lee 51cf285c31 Passing arguments by reference (#21205)
old-commit-hash: ee46672d3c8c86b41fd8ae2fce9120e050b8e628
2021-06-09 14:09:02 +02:00
Willem Melching 93858572b5 nav: only use cache on device
old-commit-hash: 6cfc7d5af19b36d2aeb56667b033a2e4052ed5bb
2021-06-09 12:37:14 +02:00
Willem Melching 8fd0aafdbc nav: eta match alert colors
old-commit-hash: ff94882fa6315de6e50bfd3975d18c0e529b6156
2021-06-09 12:34:52 +02:00
Willem Melching 9643e0fcdd alerts: fix alpha blending
old-commit-hash: ace39431eb256a43b887c0092ebf5a22a51b9ea2
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: 0958bd225349dd03a32708468def8dc1fe8b1021
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: 48696105ae5901ccfc5b5f41792dca48f09ed651
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: c53cb5d570adb82bc454fcabab458d7e7f09738c
2021-06-08 13:46:22 -07:00
Dean Lee afd0b1ee64 FrameReader: use 'from' in std::min comparison (#21195)
old-commit-hash: 211212f86b07cff5873ee35b1530734addb4c989
2021-06-08 13:32:42 -07:00
Dean Lee a88660795a Properly set parent for widgets (#21196)
old-commit-hash: 4a74d777f09b606abdde141c456cd73281d20947
2021-06-08 13:32:10 -07:00
Dean Lee d122a3a2ad settings.cc: set parent for network & software panel (#21197)
old-commit-hash: 9e0fb09f9b69f3db1e0b8392f8d66118f4c1450d
2021-06-08 13:31:51 -07:00
Dean Lee 3a698faadc Use full include path (#21194)
old-commit-hash: b06b3ecb60c651dacf079513635f7d9d99228783
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: 561f3b3191806760dc8e2f4ce803cd06e9f4c728
2021-06-08 16:48:20 +02:00
Willem Melching efde8146e1 nav: fix negative bearings
old-commit-hash: 0d9c0d602f102c80199961768d0dc3199beee9a0
2021-06-08 16:11:20 +02:00
Willem Melching f79ad64b31 nav: add current bearing to route request (#21186)
old-commit-hash: 41c96c99c7b37eb3067d610fe46094daebc02df8
2021-06-08 16:00:31 +02:00
Dean Lee 33d48d8139 ssh_keys.cc: remove shadowed params (#21184)
old-commit-hash: e772bbf7239a8f33e45310a0410a60c1d742dc29
2021-06-08 01:57:46 -07:00
Adeeb Shihadeh 585d98a464 fix settings buttons not disabling if started with ignition on
old-commit-hash: 1c952e75b58b1733742644a3d77bf57cc7d1818f
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: 67fe3feb09f7b800f197da328a5e5d837c30a141
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: 21be4434998476669c807c3d1ba9b25c1cbc495f
2021-06-07 12:14:08 +02:00
Dean Lee 10029fb0b9 ui.h: const bg_colors (#21169)
old-commit-hash: 514111ca85daeda3d12feebac3f40cbdfa50fd81
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: 14f09e4ee14ce9c0497c60fbd00bc12ab151ced6
2021-06-04 13:45:42 +02:00
Adeeb Shihadeh 78d65db218 limit icon flickering in UI (#21132)
old-commit-hash: 2ddfd829134effcf9420019a92984a3133a3f20b
2021-06-03 23:06:14 -07:00
Adeeb Shihadeh 61d3b1f177 disable uploading raw by default (#21128)
old-commit-hash: c76c30fa2d37d471d065e908739c69f06b43ccfe
2021-06-03 15:24:30 -07:00
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