Commit Graph

157 Commits

Author SHA1 Message Date
Adeeb Shihadeh 62fd824553 fix spinner and text diff 2020-11-14 18:19:06 -08:00
Adeeb Shihadeh 12bddb985d nicer spinner 2020-11-14 17:54:05 -08:00
Adeeb Shihadeh ff6dac7dd3 fix setup for new weston build 2020-11-14 15:50:11 -08:00
Adeeb Shihadeh eae04fc67e improve onboarding (#2537) 2020-11-12 21:37:02 -08:00
Adeeb Shihadeh 5c0bfe9f10 larch64 text window 2020-11-12 19:57:46 -08:00
Adeeb Shihadeh 51cc8a6b84 larch64 spinner 2020-11-12 19:56:55 -08:00
robbederks c5c875bad9 Tici Focal (#2459)
* fix i2c

* fix libi2c (again?)

* qt 5.12.8

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-12 17:09:36 -08:00
Adeeb Shihadeh 7b72bbe9f3 Qt setup + installer (#2511)
* getting started

* setup screens

* cleanupg

* url input

* installer

* setup

* installer
2020-11-12 11:31:02 -08:00
Dean Lee 91f79acac3 remove std::clamp (#2530) 2020-11-12 11:30:04 -08:00
HaraldSchafer 08846b5c0e Torch model (#2452)
* refactor draw model

* rebase master

* correct valid_len

* rename function

* rename variables

* white space

* rebase to master

* e16c13ac-927d-455e-ae0a-81b482a2c787

* start rewriting

* save proress

* compiles!

* oops

* many fixes

* seems to work

* fix desires

* finally cleaned

* wrong std for ll

* dont pulse none

* compiles!

* ready to test

* WIP does not compile

* compiles

* various fixes

* does something!

* full 3d

* not needed

* draw up to 100m

* fix segfault

* wrong sign

* fix flicker

* add road edges

* finish v2 packet

* Added pytorch supercombo

* fix rebase

* no more keras

* Hacky solution to the NCHW/NHWC incompatibility between SNPE and our frame data

* dont break dmonitoringd, final model 229e3ce1-7259-412b-85e6-cc646d70f1d8/430

* fix hack

* Revert "fix hack"

This reverts commit 5550fc01a7881d065a5eddbbb42dac55ef7ec36c.

* Removed axis permutation hack

* Folded padding layers into conv layers

* Removed the last pad layer from the dlc

* Revert "Removed the last pad layer from the dlc"

This reverts commit b85f24b9e1d04abf64e85901a7ff49e00d82020a.

* Revert "Folded padding layers into conv layers"

This reverts commit b8d1773e4e76dea481acebbfad6a6235fbb58463.

* vision model: 5034ac8b-5703-4a49-948b-11c064d10880/780  temporal model: 229e3ce1-7259-412b-85e6-cc646d70f1d8/430  with permute + pool opt

* fix ui drawing with clips

* ./compile_torch.py 5034ac8b-5703-4a49-948b-11c064d10880/780 dfcd2375-81d8-49df-95bf-1d2d6ad86010/450 with variable history length

* std::clamp

* not sure how this compiled before

* 2895ace6-a296-47ac-86e6-17ea800a74e5/550

* db090195-8810-42de-ab38-bb835d775d87/601

* 5m is very little

* onnx runner

* add onnxruntime to pipfile

* run in real time without using the whole CPU

* bump cereal;

* add stds

* set road edge opacity based on stddev

* don't access the model packet in paint

* convert mat.h to a c++ header file (#2499)

* update tests

* safety first

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: mitchell <mitchell@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: George Hotz <george@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-11 20:31:46 -08:00
Willem Melching 8896b7a791 paint.cc: fix drawing lane lines on sidebar 2020-11-11 02:12:55 -08:00
Adeeb Shihadeh 6c86afee16 Qt spinner (#2494)
* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
2020-11-06 18:44:04 -08:00
Adeeb Shihadeh 68ba1649b9 Qt text window (#2489)
* qt text window

* auto size

* real text

* this is cleaner

* fix android build

* exit on pc

* tici fixes
2020-11-06 12:05:24 -08:00
Adeeb Shihadeh 1690fd62c2 qt sound cleanup 2020-11-04 11:48:34 -08:00
Adeeb Shihadeh b00cb389ef qt cleanup (#2476) 2020-11-04 11:16:34 -08:00
Christo Mitov 029be49012 switch build flags to use opengl framework rather than gl library for OSX (#2467)
* switch build flags to use opengl framework rather than library for OSX

* little cleaner

* arch

Co-authored-by: thatsaboi <thatsa@boi.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-03 19:54:29 -08:00
Comma Device ccecd37554 lower volume 2020-11-01 04:21:22 +00:00
Adeeb Shihadeh d8437a58b5 qt settings touchups 2020-10-31 20:24:22 -07:00
Adeeb Shihadeh 9d84a835d8 Qt onboarding (#2465)
* terms

* clean up

* style
2020-10-31 17:07:04 -07:00
Comma Device e8587520ac big button 2020-10-31 03:06:38 +00:00
Adeeb Shihadeh 06400af09f Qt offroad (#2451) 2020-10-30 17:03:51 -07:00
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