Commit Graph

136 Commits

Author SHA1 Message Date
Adeeb Shihadeh ffbd5e9f2d stop sounds after going offroad 2020-10-27 14:05:13 -07:00
Adeeb Shihadeh 9807361ef2 enable event processing in UI 2020-10-26 20:27:52 -07:00
Willem Melching 118faa71e5 simplify settings a bit (#2384) 2020-10-22 17:11:52 +02:00
Willem Melching b73e8ab324 improve Qt ui smoothess (#2380)
* improve ui smoothess

* fix backlight filter

* More default brightness

* write backlight in real background thread

* immediate repaint
2020-10-21 15:15:21 +02:00
ZwX1616 53bd3050ee infinite sound (#2372)
* make sound infinite loopable

* Update selfdrive/ui/android/sl_sound.cc

* fix loop

* fix test threshold

* more fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-20 17:42:19 -07:00
George Hotz cb3ade51ef std::async has nodiscard in 20.04, i believe that function won't return until the async completes 2020-10-20 15:38:07 -07:00
Willem Melching 9d0b893944 UI: get video aspect ratio from camera intrinsics (#2351)
* UI: get video aspect ratio from camera intrinsics

* cleanup video rect definition

* const zoom

* Match zoom level

* Fix comment

* Zoom out more
2020-10-20 12:14:19 +02:00
Adeeb Shihadeh 2fd5ab782b explicitly turn display on in updater (#2362)
* explicitly turn display on

* clean that up

* update binary

Co-authored-by: Comma Device <device@comma.ai>
2020-10-19 20:16:27 -07:00
Adeeb Shihadeh 9e03c2e929 tap to wake with accelerometer (#2267) 2020-10-18 19:03:41 -07:00
Adeeb Shihadeh f9a5f71bf5 NEOS 15 (#2084)
* doze

* need a new apk

* new build

* neos 15 part 1

* new build to re-enable display control for ft8716

* production image
2020-10-18 17:03:28 -07:00
Willem Melching 339d1967cb --std=c++17 (#2330)
* switch to c++17

* more 17

* 1z

* use std::clamp

* Fix types in clamp

* bump submodules

* bump laika

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-17 13:33:12 -07:00
Willem Melching 442f2543e3 tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
2020-10-15 20:48:05 +02:00
Willem Melching 2e182e5c57 Params refactor, simplified (#2300)
* always c++

* Create C++ params class

* get works

* tests hang now

* passes tests

* cleanup string formatting

* handle interrupt in blocking read

* fix memory leak

* remove unused constructor

* Use delete_db_value directly

* Rename put -> write_db_value

* filename cleanup

* no semicolons in cython

* Update common/SConscript

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

* add std::string version of delete_db_value

* This is handled

* cleanup encoding

* Add clear method to clear all

* add persistent params

* fix android build

* Should be called clear_all

* only import params when needed

* set params path on manager import

* recusrively create directories

* Fix function order

* cleanup mkdirp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-13 16:23:23 +02:00
Willem Melching a4ccfcffe8 Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

* Add include for usleep
2020-10-13 16:01:07 +02:00
Adeeb Shihadeh 671183184b UI cleanup + startup time improvement (#2295) 2020-10-08 19:29:56 -07:00
Adeeb Shihadeh 06cb2f963d UI: refactor light sensor (#2129)
* refactor light thread

* qcom low power mode

Co-authored-by: Comma Device <device@comma.ai>
2020-10-03 20:58:46 -07:00
Adeeb Shihadeh 2490be762d tici light sensor (#2238) 2020-09-28 14:49:07 -07:00
Willem Melching 53e71f44ce tici: fix ui rotation (#2222)
* fix rotation using wayland

* put back intrinsic matrix fix
2020-09-23 23:16:55 +02:00
Dean Lee 0e5a5efffc read bool param with read_db_bool (#2205)
* read bool param with read_db_bool

* Update selfdrive/loggerd/loggerd.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-21 18:17:35 +02:00
Comma Device 4be0e23ca5 Fix makefiles after read_file() helper 2020-09-21 08:03:36 -07:00
Adeeb Shihadeh 4acc82604d quick lgtm fixes 2020-09-19 12:53:36 -07:00
Adeeb Shihadeh 002e0065cb tici: set volume at 90% 2020-09-18 14:54:12 -07:00
ZwX1616 b3fad609d9 revert tici ui rotate 2020-09-18 14:12:03 -07:00
Willem Melching 9330070bb5 tici: offroad ui powersave (#2191)
* ui powersaving

* Lower brightness even more
2020-09-17 15:50:09 +02:00
Comma Device 45c58f561a fix tici ui lag 2020-09-17 00:13:54 +00:00
Willem Melching 9bbb166303 tici: fix ui rotation (#2184)
* rotate ui 90 degree

* put rotation behind ifdef

* Also ifdef that

* ui intrinsic_matrix

* that doesnt do anything

* Keep parent on non qcom
2020-09-16 17:46:08 +02:00
Adeeb Shihadeh 16f40e6ff3 fix stretched UI on pc 2020-09-14 19:07:14 -07:00
Adeeb Shihadeh 4d5733924a message builder (#2161)
* use custom MessageBuilder from cereal

* use MesageBuilder.toBytes

* bump cereal

* unused

* another one

* fix ui msg

Co-authored-by: deanlee <deanlee3@gmail.com>
2020-09-12 21:48:15 -07:00
Dean Lee 8417be6f40 UI: simplify layout calculation (#2131)
* add Rect struct

* simplify layout calculation by using viz_rect

* fix

* add whitespace

* use the correct value for vwp_w

* correct vwp_w again

* rebase

* dd
2020-09-12 18:35:36 -07:00
Adeeb Shihadeh 0ebc037be7 turn display on in spinner (#2148)
Co-authored-by: Comma Device <device@comma.ai>
2020-09-09 20:24:13 -07:00
Comma Device d6571aa633 wait 5s before showing waiting for controls 2020-09-09 13:19:20 -07:00
Adeeb Shihadeh acd1bde496 QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-09-09 19:04:28 +02:00
Willem Melching e8c8e9dab2 ui: glTexImage2D only redundant on QCOM 2020-09-08 14:33:27 +00:00
Willem Melching 7cd4815773 link ui against right opengl(ES) lib 2020-09-07 17:13:47 +02:00
Adeeb Shihadeh e386133c4b Always keep display on with ignition (#2138)
* keep display on with ignition

* fix typo

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-07 13:13:10 +02:00
Adeeb Shihadeh 660e734022 sidebar cleanup (#2130)
* sidebar cleanup

* undo that
2020-09-04 15:05:45 -07:00
Adeeb Shihadeh 848301b091 UI vision refactor (#2115)
* refactor vision

* don't show slow frame message when in preview mode

* change draws to uint32_t

* set vision_seen=false after destroy

* remove vision_connect_thread

* refactor ui_update

* seelp 30ms when vision is not connected

* remove should_swap

* call ui_update_sizes before ui_draw

* rebase

* start bigger UI refactor

* don't need the touch fd

* fix qt build

* more cleanup

* more responsive

* more refactor

* fix for pc

* poll for frames

* lower CPU usage

* cleanup

* no more zmq

* undo that

* cleanup speed limit

* fix sidebar severity for athena status

* not aarch64

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-03 16:32:55 -07:00
Willem Melching 8880ec81f2 add more opengl info on startup to pc ui 2020-09-03 14:31:31 +02:00
Willem Melching 92de562ed9 pc ui: print opengl version on startup 2020-09-02 15:46:39 +02:00
Willem Melching 42b6292fa5 ui: simplify shader versions and fix hardcoded texture size (#2112)
* fix shader version

* fix texture buffer size

* Attribute/Varying is deprecated
2020-08-31 15:02:01 +02:00
Willem Melching 01b3079451 Fix camera view on PC 2020-08-31 13:16:30 +02:00
Adeeb Shihadeh 9cd5180b43 remove read_param_timeout (#2095)
* remove read_param_timeout

* missed that
2020-08-27 19:24:51 -07:00
Adeeb Shihadeh 685340d578 Sound stability test (#2089)
* play sound

* clean this up

* no cereal

* fix module issue

Co-authored-by: Comma Device <device@comma.ai>
2020-08-27 15:50:48 -07:00
Adeeb Shihadeh 43e3ec1bc1 UI cleanup (#2091)
* remove unused UI code

* these params aren't used anymore

* this is cleaner

* remove one more timeout

* read that from carParams

* only android needs pm

* fix that

* fix that

Co-authored-by: Comma Device <device@comma.ai>
2020-08-27 11:57:31 -07:00
Adeeb Shihadeh 7956bb6883 mac ui kind of works (#2079) 2020-08-25 00:56:42 -07:00
Willem Melching 9eb3d89ca2 Thermald cleanup (#2049)
* Thermald cleanup

* no Temps, fix ui formatter

* Fix scaling

* Don't touch that

* typo

* Fix fan control

* Fix if

* change cereal

* Update comment
2020-08-24 14:17:41 +02:00
Dean Lee 08d6fe1880 paint.cc: deleted two meaningless lines (#2043) 2020-08-24 14:15:34 +02:00
Willem Melching d7f3690e85 ui: larger font size 2020-08-20 21:37:28 +02:00
Willem Melching 2410c7e26b ui: force GLES context 2020-08-20 21:33:32 +02:00
Willem Melching e115c51452 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
2020-08-20 17:16:44 +02:00