Commit Graph

267 Commits

Author SHA1 Message Date
Shane Smiskol
b119006f6a Cycle onroad when changing offroad-only toggles (#35361)
* bad

* Revert "bad"

This reverts commit 6b5475dd90c3a29c00d946c94d726563cbec6179.

* notify param

* doesn't need to live in low level paramcontrol, rename param

* should work

* fix

* disable while engaged

* note

* fix

* just in case

* param is cleared by manager -- this was all to ensure manager got our `started` transition

* clean up

* and that

* rm

* negative better than generic thing

* timer is needed as it's not clean to fix case where you toggle while no ignition -- you can't go onroad + this allows some nice tolerance time for user to switch 2 toggles

* these aren't required or useful

* add to description

* no longer unlive

* allow reset button too

* another pr -- Revert "allow reset button too"

This reverts commit 5d03edddc80d8625ceba5d5178b2781e9d10d9c9.

* rm space from i18n string

* car is powered on
2025-05-27 20:20:38 -07:00
Kevin Robert Keegan
127c922aed ui: Fix Night Brightness (#33984) 2024-11-11 11:54:18 -08:00
Dean Lee
354e909ab1 ui: smooth transition of path colors on AllowThrottle state changes (#33766)
* smooth transition of path colors on AllowThrottle state changes

* Invert blend factor when the state changes mid-animation
2024-10-11 21:08:32 -07:00
Lee Jong Mun
68f4c8a986 ui: remove space (#33724) 2024-10-03 17:19:06 -07:00
Dean Lee
6baa541501 ui: refactor model updating and rendering into ModelRenderer class (#33702)
refactor model update

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-10-03 10:46:05 -07:00
Dean Lee
47409ab4d4 ui: refactor CameraView to serve as a generic vision stream display class (#33457)
refactor transform
2024-09-10 11:53:10 -07:00
Dean Lee
343de54030 ui: consolidate prime state management into PrimeState Class (#33473)
new class PrimeState
2024-09-09 14:34:11 -07:00
Dean Lee
43025c2836 ui: refactor driver monitor updating and rendering into DriverMonitorRenderer class (#33375)
* Refactor Driver Monitor Updating and Rendering

add comments

* rebase master

* rename dmon to driver_monitoring
old-commit-hash: af80a13716f2ba40b6652ab188d1881385b6aa71
2024-09-01 12:11:16 -07:00
Adeeb Shihadeh
1b2bc44227 controlsd: split out state/alerts into selfdriveState (#33421)
* setup selfdriveState

* little more

* update refs

* migration

* all too slow
old-commit-hash: 87051803ab
2024-08-31 18:48:17 -07:00
Dean Lee
81fc1be189 ui: fix memory corruption by using std::vector for PubMaster initialization (#33390)
Fix memory Corruption Issue
old-commit-hash: 1c19cbc437
2024-08-27 11:34:28 -07:00
Kacper Rączy
e66855c54d ui: remove GPS status from the sidebar (#33304)
* Remove usage of llk in ui

* Remove GPS from sidebar

* Remove it from test
old-commit-hash: c61d504516
2024-08-14 15:52:47 -07:00
Dean Lee
973c6c2e7e ui: remove map & navigation related code (#32836)
remove map
old-commit-hash: 669553aa37
2024-06-25 21:45:44 -07:00
Adeeb Shihadeh
3b8ed67aa3 remove navigation (#32773)
* remove navigation

* lil more

* fix cabana

* revert for now

* fix docs

* move that over

* lock

* rm assets
old-commit-hash: e491c9d964
2024-06-19 19:14:13 -07:00
Shane Smiskol
272216b2a8 remove uiPlan (#32721)
* remove uiPlan from ui

* remove publishing

* Update log.capnp

* Update services.py

* no uiPlan here

* Update ref_commit
old-commit-hash: 684209e077
2024-06-11 21:31:10 -07:00
Shane Smiskol
2a6e025183 ui: re-generate JWT on valid system time (#32571)
* revert me

* Revert "revert me"

This reverts commit 17d815ddfc9a18f7fb9f39f89ec8b4481389b339.

* duh we have timed!

* clean up

* use clocks

* re-initialize map on SSL handshake failure (time)

* this is fine, takes some time to init

* fix

* log errors like map renderer

* more clean up

full message is "loading style failed: SSL handshake failed"

* MOAR

* we still can't swap the token live

* mbgl has its own retries that never work, don't reinit multiple times at once

* simpler

* more

* whoops

* this works

* fix from merge

* rm

* fix cmt

* only an issue calling the function inside itself
old-commit-hash: 57d64279bd
2024-05-30 02:08:31 -07:00
Dean Lee
6400f9644a ui/update_dmonitoring: Improve readability of r_xyz matrix initialization (#32359)
old-commit-hash: d234085496
2024-05-21 17:27:25 -07:00
Dean Lee
124b0180c3 ui: improve update_line_data() (#32354)
improve update_line_data
old-commit-hash: 0678644a8f
2024-05-20 19:38:24 -07:00
Adeeb Shihadeh
f641d7e851 ui: fix brightness when there's no camera (#32413)
old-commit-hash: 79c8fb0236
2024-05-13 13:27:05 -07:00
Dean Lee
cd7430d1ce ui: remove unused roadCameraState from submaster (#30757)
old-commit-hash: f9ee7bff00
2023-12-15 19:32:25 -08:00
Dean Lee
62525a60ee ui/onroad: avoid drawing invalid lanes and leads (#29666)
old-commit-hash: 33987d4cc9
2023-12-13 14:51:09 -08:00
Dean Lee
54346eccee modeld: remove modeldata.h (#30423)
* remove modeldata.h

* remove TRAJECTORY_SIZE
old-commit-hash: 335237aea0
2023-11-18 22:45:26 -08:00
Dean Lee
de809632bf cpplint: add filter whitespace/comma (#29595)
old-commit-hash: 7bfd3dac81
2023-08-24 10:42:06 -07:00
Cameron Clough
c7820cf1cc ui: hasPrime/primeChanged helper (#29590)
old-commit-hash: 05e91c074d
2023-08-24 12:47:22 +01:00
Dean Lee
c6db4c515c ui: use enum PrimeType for prime_type (#29491)
old-commit-hash: 99279b8eef
2023-08-24 12:26:45 +01:00
Dean Lee
5f4b422305 cpplint: add filter whitespace/semicolon (#29568)
old-commit-hash: f203648de0
2023-08-23 15:00:30 -07:00
Dean Lee
97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e75
2023-08-23 13:25:17 -07:00
Dean Lee
5cc9fbe23f ui: longer screen timeout for driver view (#27457)
* longer driverview timeout

* Update ui.cc

* reset timeout

* do cleanup

* Apply suggestions from code review

* Update selfdrive/ui/ui.cc

* reset to default timeout on hidden

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: f1568b960a
2023-08-16 22:22:39 -07:00
Dean Lee
b8110a90d2 ui: set max brightness when showing the QR code (#28907)
* set max brightness when showing the QR code

* set brightness in ui

* set in device
old-commit-hash: e958ce1c31
2023-07-14 12:22:35 -07:00
Shane Smiskol
222f7f6727 ui: singleton Device instance (#28908)
* singleton

* remove awake
old-commit-hash: b8dd4dcc28
2023-07-12 18:36:44 -07:00
Shane Smiskol
b9aa2c232f ui: fix timeout typo (#28905)
tim is out -> timeout
old-commit-hash: d68bd905fc
2023-07-12 13:09:42 -07:00
Dean Lee
573e1ddbc4 ui: capnp best practices (#28877)
old-commit-hash: d34138e275
2023-07-11 10:26:57 +01:00
Dean Lee
235235b2d9 modeldata.h: convert constants to uppercase (#28769)
old-commit-hash: 32c5e6aafb
2023-07-01 08:26:21 +01:00
Adeeb Shihadeh
39d1e68030 UI: border is always engagement state (#27416)
* border is for engagement state

* round shading too

* alerts =/= status

* no debug print

* Full still full

* more cleanup

* more radius

* Update mui too

* normal black

* cleanup

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 07a68ca032
2023-06-22 21:37:08 -07:00
Dean Lee
9858839db0 ui: refactor setPrimeType (#28143)
handle prime type change in new function UIState::setPrimeType
old-commit-hash: 8ca3be9788
2023-05-15 13:08:21 -07:00
Harald Schäfer
5ddceb553d Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

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

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 598343aad1
2023-05-15 09:29:57 -07:00
Dean Lee
2936d72386 ui: auto detect available streams (#27470)
* auto detect available streams

* no switch if wide cam not available

* clear frames before getAvailableStreams

* warning

* clear at same time

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d5375af2f5
2023-03-14 13:59:22 -07:00
Harald Schäfer
f05cf4cdf1 Only trust locationd for nav (#27579)
* Only trust locationd for nav

* unused var
old-commit-hash: d75ee19def
2023-03-14 09:25:09 -07:00
Harald Schäfer
0ac73f2a81 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
old-commit-hash: eb8bdc0026
2023-02-17 19:58:30 -08:00
ZwX1616
8fd5f1b50d ui: dmoji (#27070)
* will draw

* gradient

* bg

* add sense of depth

* refactor

* cleanup

* fix endpoint

* clean up

* use array

* 1 matmul

* lives in modeldata

* standstill only

* remove bad pts

* do less math

* smooth

* kind

* fix d

* lineswidth

* fade in and out

* hide

* quick

* gray out

* fix joints

* offset

* rest icon

* clean up

* circle as state

* longlat

* new design

* gap and g

* scaledown, fix jts and unlock not standstill

* width

* different

* intermediate

* sand

* motion effect

* vis

* fix bg

* clean up

* t

* btn_size

* small speedup

* sligh

* clean up

* facelift

* match .2

* .4 is good

* size

* no ss

* rhd compat

* less filt

* more line

* engaged

* not white

* drop prop

* this is fine

* independent falg

* sg

* dont look like hitman

* cleanup

* little more

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 955c1dff45
2023-02-08 19:06:59 -08:00
Adeeb Shihadeh
16dabbd686 fix typo AR0321 -> AR0231 (#26993)
old-commit-hash: ef42652368
2023-01-17 19:52:06 -08:00
Lee Jong Mun
a5f952c69b remove unused space (#26680)
old-commit-hash: 92296ce55d
2022-12-02 18:53:50 -08:00
Adeeb Shihadeh
aec5f32f3c publish experimental mode state (#26512)
* publish experimental mode state

* remove that
old-commit-hash: 9c96b21367
2022-11-15 17:18:13 -08:00
Adeeb Shihadeh
74979a7c76 experimental mode (#26416)
* experimental mode

* rename param

* red lights
old-commit-hash: 9a3f468051
2022-11-08 14:45:01 -08:00
Shane Smiskol
5aa8e0789a ui: revert e2e path changes (#26382)
* Revert "ui: fade to default path color when inactive (#26375)"

This reverts commit 73bff7b2a9f0b49969bf2134393383fe5faa065d.

* Revert "ui: minor e2e path tweaks (#26351)"

This reverts commit d0f80298a6491d22ac67f1eea27b9cc57c8f22bb.

* stronger colors

45
old-commit-hash: e079751f79
2022-11-05 15:05:30 -07:00
Shane Smiskol
b79c186192 ui: fade to default path color when inactive (#26375)
* fade to default path color when inactive

* long!
old-commit-hash: 0b385a5650
2022-11-04 21:04:53 -07:00
Shane Smiskol
d3c22d56ac Update comment in ui.cc
old-commit-hash: 033ffa4a88
2022-11-04 02:30:14 -07:00
Shane Smiskol
a81683f4ec ui: fix disappearing path with wide cam (#26354)
* split lat long icons

* no overriding border status, consider steering pressed for lat icon, spacing for readability

* add engageable back

add engageable back

add engageable back

* all the debugging code 🙃

* revert that stuff

* only the fix

* comment

comment

* fix dat

* explicit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 384f940237
2022-11-03 23:07:29 -07:00
Adeeb Shihadeh
273b1c5b5c UI: draw onroad objects on right frame (#26306)
* update before draw

* fix a lot of janky

* fix more flicker

* cleanup

* fix flicker when opening settings

* simplify
old-commit-hash: c171fe9f9a
2022-10-31 23:01:22 -07:00
HaraldSchafer
ed91648949 UI: fade into wide camera (#26203)
* UI: fade into wide camera

* handle routes with no wide calib

* more cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbc30c053c
2022-10-27 17:27:31 -07:00
Willem Melching
e31ca17926 ui brightness: fix exposure scale factor (#26104)
old-commit-hash: f957f3391d
2022-10-20 11:25:20 -07:00