Commit Graph

210 Commits

Author SHA1 Message Date
Harald Schafer 4a4fb376b9 sometimes never goes into the loop
old-commit-hash: d409dabedd
2020-11-17 10:19:12 -08:00
Adeeb Shihadeh be55621d6b fix spinner and text diff
old-commit-hash: 62fd824553
2020-11-14 18:19:06 -08:00
Adeeb Shihadeh 6a6bab9917 nicer spinner
old-commit-hash: 12bddb985d
2020-11-14 17:54:05 -08:00
Adeeb Shihadeh b5f01a713b fix setup for new weston build
old-commit-hash: ff6dac7dd3
2020-11-14 15:50:11 -08:00
Adeeb Shihadeh 08e1e45753 improve onboarding (#2537)
old-commit-hash: eae04fc67e
2020-11-12 21:37:02 -08:00
Adeeb Shihadeh 7ba5da6a7d larch64 text window
old-commit-hash: 5c0bfe9f10
2020-11-12 19:57:46 -08:00
Adeeb Shihadeh 75f3d1a875 larch64 spinner
old-commit-hash: 51cc8a6b84
2020-11-12 19:56:55 -08:00
robbederks 394a3f4d86 Tici Focal (#2459)
* fix i2c

* fix libi2c (again?)

* qt 5.12.8

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

* setup screens

* cleanupg

* url input

* installer

* setup

* installer
old-commit-hash: 7b72bbe9f3
2020-11-12 11:31:02 -08:00
Dean Lee ed4c4cd8b3 remove std::clamp (#2530)
old-commit-hash: 91f79acac3
2020-11-12 11:30:04 -08:00
HaraldSchafer 008f37c749 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>
old-commit-hash: 08846b5c0e
2020-11-11 20:31:46 -08:00
Willem Melching 2e3337d654 paint.cc: fix drawing lane lines on sidebar
old-commit-hash: 8896b7a791
2020-11-11 02:12:55 -08:00
Adeeb Shihadeh 3a05f06ced Qt spinner (#2494)
* move android spinner

* qt spinner

* rotation

* nothing by default

* spin spin

* fix rotate

* style

* spinner for all

* -2

* unused
old-commit-hash: 6c86afee16
2020-11-06 18:44:04 -08:00
Adeeb Shihadeh 57de41eae5 Qt text window (#2489)
* qt text window

* auto size

* real text

* this is cleaner

* fix android build

* exit on pc

* tici fixes
old-commit-hash: 68ba1649b9
2020-11-06 12:05:24 -08:00
Adeeb Shihadeh 435d16ab87 qt sound cleanup
old-commit-hash: 1690fd62c2
2020-11-04 11:48:34 -08:00
Adeeb Shihadeh b251e323b0 qt cleanup (#2476)
old-commit-hash: b00cb389ef
2020-11-04 11:16:34 -08:00
Christo Mitov ac75ea342b 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>
old-commit-hash: 029be49012
2020-11-03 19:54:29 -08:00
Comma Device 1f7c4600ef lower volume
old-commit-hash: ccecd37554
2020-11-01 04:21:22 +00:00
Adeeb Shihadeh a5e5f21d47 qt settings touchups
old-commit-hash: d8437a58b5
2020-10-31 20:24:22 -07:00
Adeeb Shihadeh 2c712a9ea2 Qt onboarding (#2465)
* terms

* clean up

* style
old-commit-hash: 9d84a835d8
2020-10-31 17:07:04 -07:00
Comma Device faef2563ff big button
old-commit-hash: e8587520ac
2020-10-31 03:06:38 +00:00
Adeeb Shihadeh 89c511b32b Qt offroad (#2451)
old-commit-hash: 06400af09f
2020-10-30 17:03:51 -07:00
Adeeb Shihadeh 2403db7084 stop sounds after going offroad
old-commit-hash: ffbd5e9f2d
2020-10-27 14:05:13 -07:00
Adeeb Shihadeh 53cfb51c28 enable event processing in UI
old-commit-hash: 9807361ef2
2020-10-26 20:27:52 -07:00
Willem Melching 004e903972 simplify settings a bit (#2384)
old-commit-hash: 118faa71e5
2020-10-22 17:11:52 +02:00
Willem Melching 2aaf09da79 improve Qt ui smoothess (#2380)
* improve ui smoothess

* fix backlight filter

* More default brightness

* write backlight in real background thread

* immediate repaint
old-commit-hash: b73e8ab324
2020-10-21 15:15:21 +02:00
ZwX1616 e9d58939d2 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>
old-commit-hash: 53bd3050ee
2020-10-20 17:42:19 -07:00
George Hotz 16e2bbf536 std::async has nodiscard in 20.04, i believe that function won't return until the async completes
old-commit-hash: cb3ade51ef
2020-10-20 15:38:07 -07:00
Willem Melching 65b397460e 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
old-commit-hash: 9d0b893944
2020-10-20 12:14:19 +02:00
Adeeb Shihadeh 05fca52169 explicitly turn display on in updater (#2362)
* explicitly turn display on

* clean that up

* update binary

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2fd5ab782b
2020-10-19 20:16:27 -07:00
Adeeb Shihadeh 53b2a39a90 tap to wake with accelerometer (#2267)
old-commit-hash: 9e03c2e929
2020-10-18 19:03:41 -07:00
Adeeb Shihadeh a0845d8301 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
old-commit-hash: f9a5f71bf5
2020-10-18 17:03:28 -07:00
Willem Melching 651d4ce031 --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>
old-commit-hash: 339d1967cb
2020-10-17 13:33:12 -07:00
Willem Melching 0db7cd7571 tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
old-commit-hash: 442f2543e3
2020-10-15 20:48:05 +02:00
Willem Melching 498ecbdf3c 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>
old-commit-hash: 2e182e5c57
2020-10-13 16:23:23 +02:00
Willem Melching a331861873 Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

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

* qcom low power mode

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

* put back intrinsic matrix fix
old-commit-hash: 53e71f44ce
2020-09-23 23:16:55 +02:00
Dean Lee a7c8adcdbe 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>
old-commit-hash: 0e5a5efffc
2020-09-21 18:17:35 +02:00
Comma Device 4f622a1dbb Fix makefiles after read_file() helper
old-commit-hash: 4be0e23ca5
2020-09-21 08:03:36 -07:00
Adeeb Shihadeh 864f32ce1b quick lgtm fixes
old-commit-hash: 4acc82604d
2020-09-19 12:53:36 -07:00
Adeeb Shihadeh 98135d4482 tici: set volume at 90%
old-commit-hash: 002e0065cb
2020-09-18 14:54:12 -07:00
ZwX1616 e8cbf6cf11 revert tici ui rotate
old-commit-hash: b3fad609d9
2020-09-18 14:12:03 -07:00
Willem Melching 3ff821f18c tici: offroad ui powersave (#2191)
* ui powersaving

* Lower brightness even more
old-commit-hash: 9330070bb5
2020-09-17 15:50:09 +02:00
Comma Device c6cfa6e30f fix tici ui lag
old-commit-hash: 45c58f561a
2020-09-17 00:13:54 +00:00
Willem Melching 47b5b1516d 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
old-commit-hash: 9bbb166303
2020-09-16 17:46:08 +02:00
Adeeb Shihadeh 64b92f49da fix stretched UI on pc
old-commit-hash: 16f40e6ff3
2020-09-14 19:07:14 -07:00
Adeeb Shihadeh ac3422fc0f 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>
old-commit-hash: 4d5733924a
2020-09-12 21:48:15 -07:00