Commit Graph

95 Commits

Author SHA1 Message Date
Willem Melching
83d02c8c4a Don't show "no gps" when ubloxd is not running (#1479)
* dont show no gps when ubloxd is not running

* Just s

* Dropped that

* Connected is too long
old-commit-hash: f7c8707bf8
2020-05-08 21:04:55 -07:00
robbederks
5a12fc32e7 Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
old-commit-hash: 71bebc4fca
2020-05-08 19:39:18 -07:00
Dean Lee
90af65c41c UI: move c-capnp to c++ (#1455)
* ui:move c-capnp to c++

* move Subsockets into vector

* rename reader to msg

include cereal/gen/cpp/log.capnp

* fix some errors

restore some changes

restore previous

* cleanup codes

cleanup codes

* remove unused variable alert_size

* handle capnproto's enum in a robust way

add break to default

* switch -> std:map

* use static std::map instead of switch

do cleanup

* fix wrong variable name

* use FlatArrayMessageReader instead of custom MessageReader

remove messagehelp.h

Revert "use FlatArrayMessageReader instead of custom MessageReader"

This reverts commit 57d8b6b1e2b4bad908246f35eb068535b1627167.

use FlatArrayMessageReader instead of custom MessageReader

add header file

remove capnp_c lib,add kj lib

include serialize.h

fix

remove duplicate includes
old-commit-hash: ee725534bb
2020-05-06 08:38:26 -07:00
Dean Lee
c1641cc035 simplify drawing text and rect (#1446)
* add ui_draw_text

remove draw textbox

make draw_text static

add blank line

* add ui_draw_text

remove draw textbox

make draw_text static

add blank line

add ui_draw_rect

draw rounded rect

fx typo

* remove used variables

* reduce lines

fix typo

* resolve confilit
old-commit-hash: 846a58507f
2020-05-02 11:27:03 -07:00
Dean Lee
5da84ba511 simplify drawing circle images (#1445)
* simplify drawing circle images

add static

set default color to 0 0 0 0

remove lines

* fix img_weel_y

* use color macro
old-commit-hash: 4857f45d6a
2020-05-01 19:16:17 -07:00
Dean Lee
40dfc4874b better ui_draw() (#1432)
* better ui_draw()

* fix missed border

reduce code

remove white line
old-commit-hash: 3fe3afeede
2020-04-30 12:11:35 -07:00
Dean Lee
4622ab2944 replace duplicate codes with variable (#1431)
* eplace duplicate codes with variable

* remove space
old-commit-hash: b2be607974
2020-04-28 13:44:57 -07:00
ZwX1616
34eebc37b1 orange distracted alert is now continuous (#1412)
old-commit-hash: 922055f464
2020-04-23 14:15:05 -07:00
Comma Device
9521ac53e5 call it vehicle, not panda
old-commit-hash: d0e0746138
2020-04-22 20:30:53 +00:00
Comma Device
928b82c2db s/athena/connect on sidebar
old-commit-hash: 4e44ab313e
2020-04-20 20:49:28 +00:00
Dean Lee
e03aa33c6c Remove redundant code (#1361)
* changing the coordinate system only once

* remove white space

* remove white space

* s->scene. to  scene->

* whitespace
old-commit-hash: 3e2e241a38
2020-04-17 15:59:43 -07:00
Dean Lee
7f561f2d3d close sensors when it's done (#1367)
old-commit-hash: 24495a2278
2020-04-17 15:52:40 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b4
2020-04-15 16:48:44 -07:00
Dean Lee
746600dfb3 assert after nvgCreateImage in ui_nvg_init() (#1360)
* assert after nvgCreateImage

* update apks
old-commit-hash: ea055d169f
2020-04-14 12:27:55 -07:00
Dean Lee
9c9b8b2aa8 add ui_draw_image to reduce code repetition
old-commit-hash: 1ecef2c6be
2020-04-13 15:38:45 -07:00
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