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: f7c8707bf854f40c54d3c0b9676e26584b95103c
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: 71bebc4fca91681669c86b5600b67bf2b7f899bf
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: ee725534bb1ae2335705562e9f1eb176e5cd91fd
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: 846a58507fb2e19d399555ad321c0208f1dec0d9
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: 4857f45d6a0236f9977b8848a48c1d883cf0e837
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: 3fe3afeedeab176f7423a73c0f573396eef41d45
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: b2be607974f4b51eba9832d9d242662a128b863f
2020-04-28 13:44:57 -07:00
ZwX1616
34eebc37b1 orange distracted alert is now continuous (#1412)
old-commit-hash: 922055f464fbb98ef8366f802897035aa5342333
2020-04-23 14:15:05 -07:00
Comma Device
9521ac53e5 call it vehicle, not panda
old-commit-hash: d0e0746138194f9aa3bb22989c1f0705eb721eeb
2020-04-22 20:30:53 +00:00
Comma Device
928b82c2db s/athena/connect on sidebar
old-commit-hash: 4e44ab313e22f0dac466bb606ab2f97a3dc49756
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: 3e2e241a3879694ef00900bb4f42691d6cc2d31d
2020-04-17 15:59:43 -07:00
Dean Lee
7f561f2d3d close sensors when it's done (#1367)
old-commit-hash: 24495a2278cd52a74d071b8ae7e571ba3563dece
2020-04-17 15:52:40 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b42e56dc67a013dc2ee856360e4d1d1c
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: ea055d169f312430141c757cc9a62dbda4d91f85
2020-04-14 12:27:55 -07:00
Dean Lee
9c9b8b2aa8 add ui_draw_image to reduce code repetition
old-commit-hash: 1ecef2c6be9e47ab5942ef3c4bf48e9baf6af921
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: 76052865cd0b8fdc7ba323390bd4e686fb794258
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: 54d8f9c27b49efe56b813eb2538b3aa9dc1c2897
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: ef8aaa77b79194cd0bc25b1e2a42ca857c34a401
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: 35b34fb7002e1e80ddeb6082d3f19b9d41f01daf
2020-04-09 19:28:11 -07:00
Dean Lee
5449ad52a5 remove unnecessary nvgLineTo (#1333)
old-commit-hash: ee52046957955d423a1ac4db09079613ca1bdcc5
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: 41bb3ac7ca586b41fa91ad5a6392c88a2c4d5cb3
2020-04-05 11:06:49 -07:00
Comma Device
7c4f8f5098 fix background on computer ui
old-commit-hash: 6abbda14671bf3fdc1d52cfc0a1337f8ca43331f
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: 202a4c2011d0c4638c454a39718084548b8ba95d
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: 431155029399e904258d6e7b525ebec037ae608c
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: 47f17622d9e4991beec73df40a3ffcc0654a3e09
2020-03-27 11:00:42 -07:00
DeanLee
3bae5ab6e8 repace nvgFontFace with nvgFontFaceId (#1279)
old-commit-hash: 993b0e942792b5439055bf2eb22734bf7ac8c8af
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: f0779d86e4fbcd5a258aa5a42292b6b814644b5e
2020-03-23 14:16:51 -07:00
Comma Device
77615056ec fix multiline strings in ui_draw_sidebar_metric
old-commit-hash: 50d2dc24d26005104affe75b736169cd0505ecac
2020-03-23 20:11:48 +00:00
Greg Hogan
1768b4745f remove storage metric from sidebar (#1254)
old-commit-hash: 16ad4bf58be12a20384e84b5a3dc1b5f3f08bb18
2020-03-20 10:35:58 -07:00
Willem Melching
897d9ff1e2 camerad zmq_poll, also recover from EAGAIN
old-commit-hash: e69e0486ff6125e9d209c4bdda02b5201236548f
2020-03-17 13:40:07 -07:00
Willem Melching
9fd08dd1e2 No logging on EINTR, and log all the errnos
old-commit-hash: a4c94128c2ee9824dd4763e7d0ba4d3db3a99fe4
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: 439b4625b68fb7f933c646229da8667e9cf4fea8
2020-03-16 14:55:12 -07:00
Andrew Valish
a4bdf0c577 fix sidebar shadow in network settings (#1245)
old-commit-hash: 0aafd67b56a4bac08c5c84e95cad044e5c41dc80
2020-03-16 13:02:45 -07:00
Andrew Valish
013111e8d0 filter ublox packets for sidebar (#1233)
old-commit-hash: fa7abadc80d508cf39555f67f1c36bc50e0e42dc
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: 5ba6beed17baf17081169d2e1d5b144df00cda76
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: e8cb6ea06a2470dd89a6ad8fd17bd1d1b62034cc
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: 049f2d0e1b54745bd6aad4b71ee125345f8ab8b1
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: 175243af40fbf70e4fe13da62e6c89a0d41b10ed
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: 811b3b7a9acbcd71ae3e80990cdf39e9e0289c55
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: f72f78f2b9e1028a8421dc8f57bccfa2fab3396a
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: 855abbd99ee39b5b308226c2261fb2c7b1a40c14
2020-01-21 11:25:12 -08:00
George Hotz
8f8a9931ca ui was gitignored
old-commit-hash: a3dde4e7fe9764029f82988bc54d93d601804a15
2020-01-17 17:34:23 -08:00
George Hotz
7e639d98aa selfdrive/ui
old-commit-hash: aeb2fff068e13c5d99f350a92373eb905e1a1522
2020-01-17 11:05:23 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3878e1d8c8a9db600dd44d188f02c87
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c600ec653c16606239364ab9324fd98
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a15640ee4d6e4d513fada6ed101afe5
2019-12-13 13:03:08 -08:00
Vehicle Researcher
b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a878b185dbf65d0a7819f5959dd9b8c2
2019-11-04 15:13:52 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28bc737f50e096b21dea2dd2d6d4a1621
2019-10-09 18:43:53 +00:00
Vehicle Researcher
dfe603c178 openpilot v0.6.4 release
old-commit-hash: 61229779e4a38431e934cabe700a93e120dfa468
2019-09-09 23:03:02 +00:00
Vehicle Researcher
02cedeadd9 openpilot v0.6.3 release
old-commit-hash: d5f9caa82d80cdcc7f1b7748f2cf3ccbf94f82a3
2019-08-13 01:36:45 +00:00