Commit Graph

316 Commits

Author SHA1 Message Date
Dean Lee ad696592ec remove read_param from ui_init (#19745)
old-commit-hash: cf2585adf671c5777b8cedcf44d04614e0161845
2021-01-13 09:53:45 -08:00
Dean Lee 74dc639515 convert glutil.c to gltuil.cc & add class GLShader (#19720)
* c++ glutil

* function getUniformLocation

* rebase master
old-commit-hash: cef469cbed1d835e70e952d06e1fd8b4eabca450
2021-01-12 15:43:34 +01:00
Dean Lee 4b15f8a12d Refactor image texture stuff into class (#19719)
* Refactor image texture stuff into class

* cleanup

* Update selfdrive/common/visionimg.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b3107e153cca4aa98b623b80fdd13b8446f76d1c
2021-01-11 15:52:58 +01:00
Willem Melching ab5eef3a12 ui.cc: fix driverview (#19723)
old-commit-hash: 92257e4dfff411cd981ef7bad964531813d3f37f
2021-01-11 14:51:21 +01:00
Dean Lee aac74810a7 ui.cc: cleanup includes (#19704)
old-commit-hash: ccff89386150bd177a7ed6c85a41d2b9ee622068
2021-01-10 21:48:49 -08:00
Dean Lee 4c1919f41e merge utilpp.h into util.h (#19710)
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Dean Lee 38443793da Refactor alert blinking (#19583)
* add function get_alert_alpha()

* continue simplify

* reset alpha to 1.0 if blink_rate is 0

* review

* sine wave

* rebase master

* use time

* use cos
old-commit-hash: de309b156d2e9b9c2b771ccdd84915708f64338a
2021-01-08 12:05:07 -08:00
Dean Lee e8936467f5 refactor ui_draw_driver_view (#19597)
* refactor ui_draw_driver_view

* continue simplify

* fix gap
old-commit-hash: 4231b5b329ee778facc3139ab0f2137d5efca576
2021-01-08 11:30:37 -08:00
Willem Melching 3f950832b9 VisionIPC 2.0 (#19641)
* Squashed vipc

* Update release files

* Remove else

* add visionipc to release files

* use poller in vipc receive

* opencl framework instead of lib on macos

* Fix camera webcam

* Fix opencl on mac in ui

* more webcam fixes

* typo in ui sconsfile

* Use cur_yuv_buf

* visionbuf c++ class

* Camera qcom was still using visionbuf_allocate

* Turn loggerd back on

* fix snapshot

* No build needed

* update test camerad

* no more release callback

* make encoder c++

* Revert "no more release callback"

This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.

* fix exit handlers

* No need to check errno

* move release callback call

* s/VIPCBufExtra/VisionIpcBufExtra/g

* use non blocking connect

* ui use non blocking connect

* Lower condition variable wait time

* Snapshot cleanup

* bump cereal

* bump cereal
old-commit-hash: fb496c692a9ebdcda15069a8d4eb95734b587d68
2021-01-08 14:54:25 +01:00
Comma Device cac209e172 qt reset and setup improvements
old-commit-hash: b8aa250efb1392c79fbdb218c49d4346ab493dce
2021-01-08 01:36:29 +00:00
Dean Lee bc9074254e sidebar.cc remove prefix for static functions (#19683)
old-commit-hash: 61cf81502e4b2c04099fc42628b5239455f1e2a6
2021-01-07 11:16:47 +01:00
ffhspa 4ef1b8910f remove double semicolon in paint.cc (#19684)
old-commit-hash: dd9d8bba89c59164738e840609540ffc951d55e9
2021-01-07 11:15:59 +01:00
Dean Lee 4a137a3f41 remove double semicolons (#19681)
old-commit-hash: fd4ddb769a7b321ada3105ad2511c54ab08b1f63
2021-01-06 20:23:33 -08:00
Dean Lee af4b8bb307 paint.cc car_space_to_full_frame less paramaters (#19676)
old-commit-hash: 93cd4eae55a788eb7530fe369db65c7fffc5d931
2021-01-06 16:34:29 +01:00
Willem Melching 1cc43f8d7d UI: refactor model related functions (#19657)
Squashed commit of the following:

commit 7d7fb15e4cdd0e47fa38f949f79581dc611db015
Author: Willem Melching <willem.melching@gmail.com>
Date:   Wed Jan 6 11:31:09 2021 +0100

    no extern

commit 901893966e3f908435bceb8777253dfa916a3d91
Merge: 9816e01e c0703a57
Author: Willem Melching <willem.melching@gmail.com>
Date:   Wed Jan 6 11:27:29 2021 +0100

    Merge branch 'master' into refactor_model_draw

commit 9816e01e6ff0284521fa18b07ec15b3900577687
Author: deanlee <deanlee3@gmail.com>
Date:   Wed Jan 6 04:02:08 2021 +0000

    fix lead_d

commit 6fa500dbce26544cc3fdeb4d9b0d2d654382a40b
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 13:18:20 2021 +0000

    populate model data in update_socket

commit e25db7e28c1b543a04c3e837aa44431c42dbb5b2
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 12:59:13 2021 +0000

    update model in function

commit 0834a3ffe7eaa080671f13c32dd6475ae5392d5b
Author: deanlee <deanlee3@gmail.com>
Date:   Tue Jan 5 12:50:21 2021 +0000

    continue

commit 95b08679c2593eb0770a68b3cf1a59f1fb3b74f4
Author: Willem Melching <willem.melching@gmail.com>
Date:   Tue Jan 5 13:26:34 2021 +0100

    Update selfdrive/ui/paint.cc

commit 0eef065ae4f96c2ee5d97b4ccdfdbf0ae4945385
Author: Dean Lee <deanlee3@gmail.com>
Date:   Tue Jan 5 20:11:01 2021 +0800

    Update selfdrive/ui/paint.cc

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

commit 955ad9b03a176174b86b28d5bb6f48d6e2a09281
Author: deanlee <deanlee3@gmail.com>
Date:   Thu Dec 31 04:45:31 2020 +0000

    refactor model related functions

old-commit-hash: 37cb4bec631197f6b369bf89f94786772bd05336
2021-01-06 11:34:52 +01:00
Willem Melching b56d44bbd2 dont show speed below zero
old-commit-hash: d8e864e33d08c60e9740d7433067382128962f92
2021-01-06 11:25:37 +01:00
Dean Lee ff7d537c96 fix problem with drawing path (#19670)
old-commit-hash: d0ba19fedb897443248ad0f096dc6ffdca983872
2021-01-06 11:19:10 +01:00
Dean Lee 5e557ed96d common exit handler (#19661)
* common signal handle

* fix typo

* rename to ExitHandler

* remove include signal.h

* remove include csignal

* rename variable exit to v

* rebase master
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00
Dean Lee 4765ba9478 cleanup draw alert (#19655)
* cleanup

* use Rect

* Revert "use Rect"

This reverts commit 96d04339a0adc7f7f543828ae8ff8101dd9f5f60.

* remove None from static map
old-commit-hash: 20918d82b689c09c33a0fecef102fc91a65b00d5
2021-01-05 13:27:15 +01:00
Dean Lee 041db30454 refactor ui_draw_image (#19656)
old-commit-hash: 30c1164287d9ebb7ac3fb9e967d4e1d01bbb23f5
2021-01-05 13:01:32 +01:00
Dean Lee 9864456618 simplify ui_draw_vision_maxspeed (#19642)
if is_curise_set
old-commit-hash: f232f86a73dd635c2601f8da83a494100d2c3039
2021-01-04 15:55:04 +01:00
Dean Lee 9d0efaaccf UI: simplify ui_draw_vision_speed (#19594)
* simplify draw_vision_speed

* use std::nearbyint

* use std::to_string
old-commit-hash: ba4fb80e92145d7c31003b17a758f6a9c6a633c9
2021-01-04 14:18:38 +01:00
Dean Lee 5e30b23c58 UI: reducing CPU usage from 13% to 4% when offroad (#19575)
* Accurately control the UI frequency

* helper function sleep_for
old-commit-hash: a4afc03a732ab6438a72bda22911bf4532e9e4cd
2021-01-04 13:59:23 +01:00
Dean Lee 23a52deb5b max_idx should be initialized as -1 (#19625)
old-commit-hash: 37a43124c0c10909e7906c3fd0c124f31f11dd87
2021-01-04 11:29:31 +01:00
Willem Melching 40a74fe136 round close button
old-commit-hash: 493937d2d90ba6ed6512975e9821b777ffe1a65c
2021-01-04 11:28:28 +01:00
Willem Melching 17280ef5ef offroad alerts: put back reboot button
old-commit-hash: 0cf3da17be09b5cb5f3d4ea2aee5e7d927be9281
2021-01-04 11:24:06 +01:00
Willem Melching 9407ec9cfb Nicer blue/red colors offroad alert button
old-commit-hash: 250f285894d2dfb1cd4315e92ee4e7b3c98cfb39
2021-01-04 10:33:43 +01:00
Dean Lee 0ac1e659da UI:shorten variable name (#19633)
old-commit-hash: 0c4e2fadc82feee5a83ca03f05a6246b544d86ea
2021-01-03 12:25:24 -08:00
Comma Device fb17404dda square looks better
old-commit-hash: 3e34b67715db285dcdb9a87113efbfd55cd4fa36
2020-12-30 18:08:18 +00:00
Adeeb Shihadeh e580b248b6 tici: fix backlight timer interval
old-commit-hash: 0300eb3849609de4e8975b4c939e79ba9605b11a
2020-12-30 01:19:49 -08:00
Dean Lee e1723d7238 ui_draw_chevron: simplify calc size (#19616)
old-commit-hash: 39bd8c7ce6e7e7f63fd4873cabf164e4c028009c
2020-12-29 14:08:49 -08:00
Adeeb Shihadeh 7dd876805f offroad home style (#19593)
* make drive stats look nicer

* offroad alerts style

* rest of alerts

* move that

* fix up colors

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ce48d3c91eb66924ca20c0bcbd14a74e88207997
2020-12-25 01:02:47 -08:00
Adeeb Shihadeh 6e03a66575 make wifi settings a bit nicer
old-commit-hash: b7adecdf59dc520f2ff9f11ae806ab7cbe17fe1c
2020-12-24 14:31:13 -08:00
Adeeb Shihadeh 4d2ccb3a79 qt settings style (#19588)
* dark mode

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
old-commit-hash: 550b5e422f5ee7f7ca23d569cbd58f78bfdda9c5
2020-12-24 14:10:43 -08:00
Dean Lee f8f6545143 simpilify ui_read_params (#19585)
* simpilify ui_read_params

* apply review
old-commit-hash: e3ffa91d177d5e9ec8c9735a489b582e71a96e74
2020-12-24 03:01:53 -08:00
Adeeb Shihadeh c61d1bbce6 spinner: pre-compute rotations
old-commit-hash: 1bcc3beae80fd22e9536d8a3538917f327a74085
2020-12-24 01:55:52 -08:00
Dean Lee c9db9b1fb4 improved handle_display_state (#19574)
old-commit-hash: e032c310695f935b46f37b4bc6f5777c4de05586
2020-12-23 13:53:39 -08:00
Dean Lee d731984ad9 don't check dMonitorState's frame if frontview is false (#19584)
old-commit-hash: 81369a65bb68d150197f28b6a132afbccee1e24a
2020-12-23 11:20:18 -08:00
Mayfield 93d23902da add start_time parameter to unlogger (#19573)
* add start_time parameter to unlogger

* fix ui crash

* fix ui build
old-commit-hash: 5864f566df948e073ebe263eb3893ade2f566037
2020-12-21 23:34:24 -08:00
Dean Lee 8fb744e905 UI: add function ui_read_params (#19565)
* ui_read_params

* remove last_athena_ping from UIState

* use s->sm->frame
old-commit-hash: c1cde2d148a809178bf0accf2ed8536c40f2cb02
2020-12-21 18:44:23 -08:00
Dean Lee 36a283eac4 Sound: destructor should be virtual too (#19570)
* destructor should be virtual too

* empty commit, trigger tests
old-commit-hash: a56bbe167118881608ac8bfc22bbb6f12f7f4c0d
2020-12-21 13:22:50 -08:00
Dean Lee ce79fefe7b ui: delete the variable do_exit that is no longer used (#19551)
old-commit-hash: ff0d9c074f41eac949aca841b219fc6dd1d547a6
2020-12-20 21:33:44 -08:00
Adeeb Shihadeh 6506655011 Qt settings: highlight selected nav button
old-commit-hash: c0b1518a9b8719ac6636a7c8a69b628729f19b7b
2020-12-20 21:18:11 -08:00
Adeeb Shihadeh 5eecc6056f build nui with scons (#19561)
* it builds

* cleanup

* remove that
old-commit-hash: 3c00e6792c905bffb5997970fea9b13f43ccf451
2020-12-20 19:39:59 -08:00
Adeeb Shihadeh d64c3ae436 make onboarding a bit nicer
old-commit-hash: d5deaf2e6bf8bf9d9ae5dad4e20b55fed26d0a18
2020-12-20 16:07:33 -08:00
Adeeb Shihadeh c20cd542eb uninstall from qt offroad (#19538)
* more offroad

* implement uninstall

* just uninstall for now
old-commit-hash: 8d9be50bccfecbd0a9f346b3788b667aa00b6e61
2020-12-18 23:06:40 -08:00
Adeeb Shihadeh 6371eda194 build Qt UI with clazy (#19537)
* clazy, level0

* level1
old-commit-hash: 069189fd7fd9dc677b29725f92fd3b4b80911d8a
2020-12-18 19:26:59 -08:00
Adeeb Shihadeh 99b06dd837 offroad home styling and cleanup
old-commit-hash: a36632cc392151165af62e443386489202ef10ae
2020-12-18 16:40:23 -08:00
grekiki 9f0611507e Qt Offroad stats (#19498)
* probably broke a lot, need the commit though

* finally works

* make it work...

* ...

* kind of works

* better styling

* all should work

* tiny cleanup

* temp

* looks nicer

* create JWT in C++

* kilometers -> km

* use correct free methods

* dont put code in assert statement

* Build JWT payload dynamically

* get dongle id once

* include cleanup

* Remove qDebug

* Update drive_stats.cc

Github is a nice editor :)

* swap week and all and fix sconscript

* install openssl

* openssl include dirs on mac

* is this where openssl is?

* It's here

* small cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5b26c97141b65e3bcbddaec7e6526d5f2f1c910e
2020-12-18 13:29:20 +01:00
Comma Device 9a18d887dc increase controls alert timeout
old-commit-hash: 717e49019f7e25c091db74cc59d6fb4bdb792c73
2020-12-17 15:22:55 -08:00