Commit Graph

80 Commits

Author SHA1 Message Date
andyh2
f7e3d8349d offroad/ui: Fix layout bugs (offroad drawing on top, settings open after drive)
old-commit-hash: 76052865cd
2020-04-13 08:53:52 -07:00
Willem Melching
ce4958dc3a ui.cc: use thermald to decide when to go onroad (#1351)
* use thermald to decide when to go onroad

* Check for stopped

* set alert timeout to 0 when going offroad

* set controls seen to false

* Don't mark as seen when already stopped

* Don't process controlsState when stopped

* Needs free

* Small cleanup

* Remove that again

* Process controlsState when started

* Need that back
old-commit-hash: 54d8f9c27b
2020-04-10 16:12:39 -07:00
George Hotz
24f5831a94 Remove bg_thread from ui (#1347)
* remove bg_thread

* debug print app

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ef8aaa77b7
2020-04-09 20:55:54 -07:00
Andy
3879963b5a offroad/ui: Transparent layout mode and msgq-based layout control (#1337)
* offroadLayout

* replace broadcasts with offroadLayout socket

* apk

* set 'none' layoutstate for transparent offroad

* refactor, hide offroad when vision connected

* apk supporting transparency

* reset layout state when stopping

* apk

* cleanup includes

* permit offroad to mangae sidebar state only when vision disconnected

* apk

* use c-capnp

* always upd

* send that too

* sync layout state with offroad

* apk

* fix regression in onboarding (mock engage green border)

* apk

* bump apks

* simplify event processing

* bump cereal to master

* in case ui exited in a bad state

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 35b34fb700
2020-04-09 19:28:11 -07:00
Dean Lee
5449ad52a5 remove unnecessary nvgLineTo (#1333)
old-commit-hash: ee52046957
2020-04-08 15:10:42 -07:00
Andy
e43b40540d Sidebar Connectivity Status (#1268)
* store athena connected-at time

* refactor

* deref

* dt import

* Athena status based on last ping time param

* upd test for pingtime

* lower error timeout
old-commit-hash: 41bb3ac7ca
2020-04-05 11:06:49 -07:00
Comma Device
7c4f8f5098 fix background on computer ui
old-commit-hash: 6abbda1467
2020-04-01 23:01:17 +00:00
Willem Melching
935753357a Add binary to display text (#1301)
* add binary to display text

* fake text needs status too

* Rename to TextWindow

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 202a4c2011
2020-03-31 20:14:26 -07:00
eFini
02ad0e743e only run system() command when vol has changed (#1148)
* only run system command when vol has changed

* fix indent
old-commit-hash: 4311550293
2020-03-30 14:41:17 -07:00
eFini
645512dbb4 paint.cc uses color defined in ui.hpp (#1261)
* pain.cc uses color defined in ui.hpp

* use macro
old-commit-hash: 47f17622d9
2020-03-27 11:00:42 -07:00
DeanLee
3bae5ab6e8 repace nvgFontFace with nvgFontFaceId (#1279)
old-commit-hash: 993b0e9427
2020-03-27 11:00:07 -07:00
George Hotz
fedd440066 fix offroad processing events in bg (#1266)
* fix offroad processing events in bg

* first run of ui

* actually, we don't need that at all

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f0779d86e4
2020-03-23 14:16:51 -07:00
Comma Device
77615056ec fix multiline strings in ui_draw_sidebar_metric
old-commit-hash: 50d2dc24d2
2020-03-23 20:11:48 +00:00
Greg Hogan
1768b4745f remove storage metric from sidebar (#1254)
old-commit-hash: 16ad4bf58b
2020-03-20 10:35:58 -07:00
Willem Melching
897d9ff1e2 camerad zmq_poll, also recover from EAGAIN
old-commit-hash: e69e0486ff
2020-03-17 13:40:07 -07:00
Willem Melching
9fd08dd1e2 No logging on EINTR, and log all the errnos
old-commit-hash: a4c94128c2
2020-03-16 14:58:21 -07:00
Willem Melching
f260ab4d94 Add logging to poll EINTR handling, add another catch in camerad/main.cc
old-commit-hash: 439b4625b6
2020-03-16 14:55:12 -07:00
Andrew Valish
a4bdf0c577 fix sidebar shadow in network settings (#1245)
old-commit-hash: 0aafd67b56
2020-03-16 13:02:45 -07:00
Andrew Valish
013111e8d0 filter ublox packets for sidebar (#1233)
old-commit-hash: fa7abadc80
2020-03-11 14:28:29 -07:00
Andrew Valish
20816d909d Refactor frame (#1192)
* start drawing new sidebar, add assets

* add thermal to ui, draw network_type and battery

* draw sidebar metrics, add freeSpace and paTemp

* draw static panda metric and network strength, start ubloxGnss messaging

* use array for network_img

* start sidebar touch events

* prevent multiple touch events with touch_timeout

* filter old touches, isolate sidebar events

* add hwType check with timeout for panda metric

* cleanup touch poll, handle vision touch, remove frame and black apks

* cleanup per willem comments

* update offroad, only read active_app from cereal

* tweak sidebar behavior, show active app status

* update offroad apk

* read networkstrength from thermal in sidebar
old-commit-hash: 5ba6beed17
2020-03-09 19:13:32 -07:00
Adeeb
65a2c62114 Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref

old-commit-hash: e8cb6ea06a
2020-02-20 16:22:25 -08:00
Willem Melching
6c1c2f3788 Don't add 2.7 m to lead distance in ui. The reference frame shifted a while ago.
old-commit-hash: 049f2d0e1b
2020-02-20 14:29:09 -08:00
Arne Schwarck
2b79e60cd7 Draw leadTwo chevron in ui (#1133)
* Add leadTwo

* Add leadTwo

* Draw leadTwo car indicator

* Reuse leaddatad

* refactor draw_lead

No idea if this is the correct syntax

* Python is too good to us

Add ;

* Only show if more than 3m apart

* Delete unused scene

old-commit-hash: 175243af40
2020-02-20 14:27:11 -08:00
George Hotz
bc50dccf97 Fix ui on mac (#1044)
* remove line_shader dead code

* fix glfwCreateWindow

* don't assert on ipc socket failure

* window now appears on mac

old-commit-hash: 811b3b7a9a
2020-02-02 22:19:26 -08:00
George Hotz
b846f88ade Support scons build on Mac (#1034)
* fix clock and add Darwin sconstruct

* it builds, this changes should be simplifications too

* fix boardd build

* that's the real type of EGLClientBuffer

* remove extra lines

* ui needs opencl on phone

old-commit-hash: f72f78f2b9
2020-02-01 23:36:50 -08:00
Arne Schwarck
d034708be3 Subsock no longer exsists (#987)
* Subsock no longer exsists

use the new SubSocket as SubSock has been removed

* fix poller syntax

update to the new syntax and remove unused messaging library

old-commit-hash: 855abbd99e
2020-01-21 11:25:12 -08:00
George Hotz
8f8a9931ca ui was gitignored
old-commit-hash: a3dde4e7fe
2020-01-17 17:34:23 -08:00
George Hotz
7e639d98aa selfdrive/ui
old-commit-hash: aeb2fff068
2020-01-17 11:05:23 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28b
2019-10-09 18:43:53 +00:00
Vehicle Researcher
dfe603c178 openpilot v0.6.4 release
old-commit-hash: 61229779e4
2019-09-09 23:03:02 +00:00
Vehicle Researcher
02cedeadd9 openpilot v0.6.3 release
old-commit-hash: d5f9caa82d
2019-08-13 01:36:45 +00:00
Vehicle Researcher
3835061760 openpilot v0.6.2 release
old-commit-hash: e90c41c576
2019-07-30 02:27:48 +00:00
Vehicle Researcher
9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f
2019-06-28 21:11:30 +00:00
Vehicle Researcher
e47a2e6e30 openpilot v0.5.13 release
old-commit-hash: dd34ccfe28
2019-06-06 04:38:45 +00:00
Vehicle Researcher
0932b367bd openpilot v0.5.12 release
old-commit-hash: 3f9059fea8
2019-05-16 13:20:29 -07:00
Vehicle Researcher
83dfc3ca1f openpilot v0.5.11 release
old-commit-hash: 2f92d577f9
2019-04-23 01:41:19 +00:00
Vehicle Researcher
3bde47d556 openpilot v0.5.8 release
old-commit-hash: b967da5fc1
2019-01-23 15:34:52 -08:00
Vehicle Researcher
f8ce921247 openpilot v0.5.7 release
old-commit-hash: 210db686bb
2018-12-10 14:13:12 -08:00
Vehicle Researcher
fdbf213be8 openpilot v0.5.6 release
old-commit-hash: 860a48765d
2018-11-17 02:08:34 -08:00
Vehicle Researcher
7062c6dcc4 openpilot v0.5.4 release
old-commit-hash: a422246dc3
2018-09-25 00:13:41 -07:00
Vehicle Researcher
b73d457d20 openpilot v0.5.2 release
old-commit-hash: 0129a8a4ff
2018-08-19 20:36:37 -07:00
Vehicle Researcher
86d4bbcba6 openpilot v0.5.1 release
old-commit-hash: 6f3d10a4c4
2018-08-02 02:58:52 +00:00
Vehicle Researcher
e41a943dd0 openpilot v0.5 release
old-commit-hash: de33bc4645
2018-07-12 18:52:06 -07:00
Vehicle Researcher
242328f92c openpilot v0.4.7 release
old-commit-hash: ae5cb7a0da
2018-06-16 20:59:34 -07:00
Vehicle Researcher
8fc7b0b828 openpilot v0.4.6 release
old-commit-hash: c6df34f55b
2018-05-23 03:59:04 +00:00
Vehicle Researcher
7c1e812922 openpilot v0.4.5 release
old-commit-hash: 37285038d3
2018-04-28 09:44:39 +00:00