Commit Graph

581 Commits

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

* it was route-metric

* only ipv4 is needed
2021-06-14 16:12:18 -07:00
Dean Lee 648b60a381 sidebar: display full signal when network strength is GREAT (#21259)
* full signal when network strength is GREAT

* apply review

* space
2021-06-14 14:54:38 -07:00
Dean Lee 6816b6d8f8 onroad: remove sound_map from OnroadAlert (#21258)
* remove sound_map from OnroadAlert

* fix indentation

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-14 14:52:14 -07:00
Dean Lee d07b45f50a OnroadAlerts: construct QPainter only when needed (#21260) 2021-06-14 17:42:59 +02:00
Adeeb Shihadeh 060b5caf1b nicer replay prints 2021-06-12 23:35:52 -07:00
Dean Lee 8c202d1bb4 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>
2021-06-12 23:31:00 -07:00
Dean Lee 7009ba0344 UI: refactor SoftwarePanel (#21244)
* refactor

cleanup

* one params

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-12 21:36:35 -07:00
Dean Lee 8f5c7e7bb5 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>
2021-06-12 21:28:17 -07:00
Dean Lee d09c1de0ec SoftwarePanel: fix padding (#21237) 2021-06-11 17:40:21 -07:00
Adeeb Shihadeh 66bf6fea5d remove panda fw string from settings 2021-06-11 17:34:55 -07:00
Dean Lee 5baad4692d qt/util.h: new functions getBrand&getBrandVersion (#21238) 2021-06-11 17:20:29 -07:00
Adeeb Shihadeh d47b00b45a Fix UI crash when going onroad after onboarding (#21236) 2021-06-11 16:17:53 -07:00
ShaneSmiskol ae77f693a2 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>
2021-06-11 14:33:17 -07:00
Dean Lee 7d3dc4d031 OffroadHome::refresh(): remove emit keyword on slot (#21227) 2021-06-11 12:17:33 +02:00
Dean Lee e4e669bb0f add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Dean Lee fda0c6895c OffroadHome::refresh(): remove emit before closeAlerts() (#21219) 2021-06-10 13:34:42 -07:00
Willem Melching 43151389e7 nav: expand banner at correct distance from maneuver 2021-06-10 12:31:47 +02:00
Willem Melching 08a7ea1af4 nav: cleanup eta spacing 2021-06-10 11:09:27 +02:00
Willem Melching 34edaa543a remove debug statement 2021-06-10 10:01:38 +02:00
Willem Melching 63cb0f7c20 nav: lighter eta colors for better readability 2021-06-10 10:01:06 +02:00
Willem Melching 3c197953bc nav: add page to settings (#21208)
* add navigation panel to settings

* am/pm display and dynamic width
2021-06-10 09:59:34 +02:00
Dean Lee a8b6178c1e configFont: pass family by const reference (#21216) 2021-06-10 00:05:52 -07:00
Dean Lee d82fa763d8 remove double semicolons (#21215) 2021-06-10 00:03:34 -07:00
Maxime Desroches 03df1b08bb Convert C++ while loops from int to bool (#21214) 2021-06-09 21:09:21 -07:00
Willem Melching a361441fe2 alerts: fix gradient 2021-06-09 15:06:29 +02:00
Dean Lee 9429bd2783 qt/util.h : add new function setQtSurfaceFormat (#21206) 2021-06-09 14:09:49 +02:00
Dean Lee ee46672d3c Passing arguments by reference (#21205) 2021-06-09 14:09:02 +02:00
Willem Melching 6cfc7d5af1 nav: only use cache on device 2021-06-09 12:37:14 +02:00
Willem Melching ff94882fa6 nav: eta match alert colors 2021-06-09 12:34:52 +02:00
Willem Melching ace39431eb alerts: fix alpha blending 2021-06-09 12:17:48 +02:00
Dean Lee 0958bd2253 networking: draw network strength without images (#21187)
* draw network strength wighout images

* remove include qpixmap

* space

* lower case

* cleanup
2021-06-08 14:20:08 -07:00
Dean Lee 48696105ae sidebar: draw network strength without images (#21185)
* draw network strength without images

* Trigger Build
2021-06-08 14:17:02 -07:00
Dean Lee c53cb5d570 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
2021-06-08 13:46:22 -07:00
Dean Lee 211212f86b FrameReader: use 'from' in std::min comparison (#21195) 2021-06-08 13:32:42 -07:00
Dean Lee 4a74d777f0 Properly set parent for widgets (#21196) 2021-06-08 13:32:10 -07:00
Dean Lee 9e0fb09f9b settings.cc: set parent for network & software panel (#21197) 2021-06-08 13:31:51 -07:00
Dean Lee b06b3ecb60 Use full include path (#21194) 2021-06-08 12:09:30 -07:00
Willem Melching 561f3b3191 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
2021-06-08 16:48:20 +02:00
Willem Melching 0d9c0d602f nav: fix negative bearings 2021-06-08 16:11:20 +02:00
Willem Melching 41c96c99c7 nav: add current bearing to route request (#21186) 2021-06-08 16:00:31 +02:00
Dean Lee e772bbf723 ssh_keys.cc: remove shadowed params (#21184) 2021-06-08 01:57:46 -07:00
Adeeb Shihadeh 1c952e75b5 fix settings buttons not disabling if started with ignition on 2021-06-08 00:15:40 -07:00
Dean Lee 67fe3feb09 refactor FrameReader (#21141)
* refactor FrameReader

* continue

* move that

* small cleanup

* little more

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-07 23:31:59 -07:00
Willem Melching 21be443499 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
2021-06-07 12:14:08 +02:00
Dean Lee 514111ca85 ui.h: const bg_colors (#21169) 2021-06-07 00:04:16 -07:00
Willem Melching 14f09e4ee1 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
2021-06-04 13:45:42 +02:00
Adeeb Shihadeh 2ddfd82913 limit icon flickering in UI (#21132) 2021-06-03 23:06:14 -07:00
Adeeb Shihadeh c76c30fa2d disable uploading raw by default (#21128) 2021-06-03 15:24:30 -07:00
Adeeb Shihadeh 895c054213 UI: rename developer -> software in settings (#21117) 2021-06-02 19:55:38 -07:00
Adeeb Shihadeh 9876723169 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>
2021-06-01 20:59:41 -07:00