Commit Graph

149 Commits

Author SHA1 Message Date
Willem Melching 35155d5efa ui: simplify shader versions and fix hardcoded texture size (#2112)
* fix shader version

* fix texture buffer size

* Attribute/Varying is deprecated
old-commit-hash: 42b6292fa5220ca979b0354de91aa16d2cf54039
2020-08-31 15:02:01 +02:00
Willem Melching fff4680443 Fix camera view on PC
old-commit-hash: 01b30794518ef1e8d8a4315baf5678095f3a8283
2020-08-31 13:16:30 +02:00
Adeeb Shihadeh cb3f689e36 remove read_param_timeout (#2095)
* remove read_param_timeout

* missed that
old-commit-hash: 9cd5180b43e03f84adb870fa25c91428a18394e0
2020-08-27 19:24:51 -07:00
Adeeb Shihadeh cc2c6180f9 Sound stability test (#2089)
* play sound

* clean this up

* no cereal

* fix module issue

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 685340d57897b8a0db4aa1c754c1760c59b92ead
2020-08-27 15:50:48 -07:00
Adeeb Shihadeh d2cdd7706c 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>
old-commit-hash: 43e3ec1bc1ee0d7b8044c5cabbe4022c5ddc9783
2020-08-27 11:57:31 -07:00
Adeeb Shihadeh 4936fd4709 mac ui kind of works (#2079)
old-commit-hash: 7956bb6883c75d97ca823d33c038841ef9e9e679
2020-08-25 00:56:42 -07:00
Willem Melching cb21237c26 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
old-commit-hash: 9eb3d89ca273bf9960890c9e60687960b552346d
2020-08-24 14:17:41 +02:00
Dean Lee 205a47abaa paint.cc: deleted two meaningless lines (#2043)
old-commit-hash: 08d6fe18805c3e7e9fe512b1b343ab69d49f12da
2020-08-24 14:15:34 +02:00
Willem Melching 698d4e4af1 ui: larger font size
old-commit-hash: d7f3690e85b2712cadaa8da2a1d153d5d915393f
2020-08-20 21:37:28 +02:00
Willem Melching 191d2e55d0 ui: force GLES context
old-commit-hash: 2410c7e26bbf60dda83792d273f049586c1aa001
2020-08-20 21:33:32 +02:00
Willem Melching 473fb11d34 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>
old-commit-hash: e115c514521c7705112bd0cb2e4bf865b536501a
2020-08-20 17:16:44 +02:00
Dean Lee ebd4f68cba ui: refactor model related functions (#2026)
* remove read_model

* remove structs for c-capnp

* remove duplicate #define from modeld

* add function fill_path_points

* fix Indentation

* use MODEL_PATH_DISTANCE instead of 192

* fix type

use validLen

* rename left_path_points&right_path_points to xxx_lane_points
old-commit-hash: f8ab6bd009410a9f7ab9c30ce7b72a82c6d2507b
2020-08-18 15:26:43 +02:00
Dean Lee fb8c67ba1f paint.cc: remove redundant calls (#2025)
* remove redundant calls

* set MODEL_LANE_PATH_CNT=2
old-commit-hash: fe43d51686da19063c4ee3ebdb09eadfdd3a56ad
2020-08-17 12:06:09 +02:00
Dean Lee 00e8238b78 fix two little bugs (#2033)
old-commit-hash: 934506e1545acd30bf65e9544e565005d6c56fc6
2020-08-17 11:59:27 +02:00
Chris 42538fd54b Kilometers per hour now displayed as km/h (#2032)
Fixes #2031

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
old-commit-hash: 1b52930a52828b1423c59c677c9b42a5ff76125c
2020-08-17 11:16:52 +02:00
Dean Lee 3e083c1074 remove duplicate call to getDMonitoringState (#1964)
old-commit-hash: 56e63bafa87995eb6795bd77df931a29bf89c684
2020-08-02 10:55:24 -07:00
Adeeb Shihadeh 069bd4061e Driver view refactor (#1869)
* quick driver view cleanup

* send at correct freq

* let manager handle that

* don't block starting on driver view

* fix UI hacks

* ui cleanup

* move driver view functionality into dmonitoringd

* dmonitoring thresholds shouldnt be in UI

* remove driver view file from release files

* timeout on frontview

* bump cereal
old-commit-hash: a7ee2a53a8a832f3678171403471380a9a72b9cb
2020-08-01 17:26:35 -07:00
Dean Lee b35f7909ba UI cleanup (#1941)
* remove unused variables

* remove unused variables
old-commit-hash: 2953ae28104c3ccde59a7659c25b853ea0421adc
2020-07-28 11:13:37 -07:00
Willem Melching daaefd6cca qcom2 build fixes
old-commit-hash: 405d94ec6d98727d9ffbfc4d469c92ca327dfa1a
2020-07-27 16:13:25 +00:00
Dean Lee 1bff58ff15 sidebar: remove unnecessary checks on uilayout_sidebarcollapsed (#1928)
* cleanup

* keep local variables

* done
old-commit-hash: 5cbdaa19bbe3a44b5fadcf5dfc77b4e885295cf2
2020-07-26 21:00:24 -07:00
Adeeb Shihadeh 660928eedf Only draw lead car indicators when controlling longitudinal (#1914)
old-commit-hash: 61548f5a483e0fa7fba6f167017c3fbe73e3f684
2020-07-23 13:28:58 -07:00
Adeeb Shihadeh cd317b0780 Fix most remaining LGTM alerts (#1893)
* fixups from LGTM

* short globals

* fix spinner and textwindow

* total ordering

* no spinner/text window when import from manager

* not android
old-commit-hash: 5db81f60ca8fbc0ef28924b7e93f25a1d4bb3764
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh cdfb090c7a Wunused (#1841)
* enable Wunused, first pass

* unused stuff in snpe model

* these are used on phone

* handle sigint and sigterm in modeld

* fix phone build

* camera qcom

* QCOM build works

* delete unused camerad vars

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831fd0d7fffd9aacec1accb0a5bdb0304
2020-07-09 09:25:32 -07:00
Dean Lee 9c33f51990 remove offroadLayout from sm (#1846)
old-commit-hash: 11fbe85c1436c67bf9e42fdc5f7a6f36f9a837a0
2020-07-08 21:24:55 -07:00
Dean Lee 0a9b8f2a32 paint.cc: Simplify drawing line (#1643)
* simplify drawing line

* remove space
old-commit-hash: ff4f432f0fd2ca5cf592082914e3a3a7b091a3db
2020-07-03 19:42:26 -07:00
Dean Lee fa06882a72 better update_offroad_layout_state (#1808)
apply review suggestion
old-commit-hash: 9de015f588352ef1a81be1139733eea0c927f19c
2020-07-03 12:52:43 -07:00
Adeeb Shihadeh 219b117c21 fix hardcoded frequencies in UI
old-commit-hash: 2f16349c4cffe592d9b97a37ded37e8215ed8892
2020-07-03 12:30:47 -07:00
Adeeb Shihadeh d10d3287a3 remove unused UI variables
old-commit-hash: e8259895f7d29b153aa2d5e9c86391f47413a133
2020-06-29 14:12:28 -07:00
George Hotz ada8359180 UI 10x speedup with hardware antialias (#1787)
* enable MSAA, disable nvg antialias

* less opaque and clean up

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b62da571b4108487cfc4d2dbd1970a504ba0a317
2020-06-29 13:54:23 -07:00
Adeeb Shihadeh 3d56b4cc35 better alert when controls takes too long to start
old-commit-hash: f8ce6502a9d66008d3a90b521707c4d1cbc51756
2020-06-23 16:07:10 -07:00
Willem Melching 31e0931cee ui, fix vision_seen when starting with camerad already running
old-commit-hash: 99949cc27db23662bb97747ce911a99829e9cc15
2020-06-23 15:16:55 -07:00
Adeeb Shihadeh ab66589a46 fix engage/disengage sounds
old-commit-hash: 51b7dc0e385945faf0341c52b14555e75e804d04
2020-06-23 10:50:24 -07:00
Adeeb Shihadeh 4c19a49586 Fix some alert sounds not repeating (#1763)
* fix sounds not repeating

* fix PC build

* 3 loop

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: af22b282ff20201914a462488700971cfe32cb20
2020-06-22 19:22:02 -07:00
Adeeb Shihadeh 0891b1331d Add cppcheck as a pre-commit hook (#1646)
* add cppcheck as a pre-commit hook

* fix Dockerfile

* update precommit config

* exclude panda and opendbc
old-commit-hash: 3c461ca5ccf1b0ae2b9164feced96a5aa4998555
2020-06-19 20:39:34 -07:00
Adeeb Shihadeh dd3247d128 Alert when controls fails to start (#1750)
* alert when controls fails to start

* more friendly

* fix sound

* remove that

* just else

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 968443c545ab1443fb2aefe0583d414c384182a7
2020-06-19 19:28:56 -07:00
Adeeb Shihadeh 1f6af4ded2 fix alert sounds looping
old-commit-hash: 78b428e53441da339f8d13b78bfcf1f5ca192d6f
2020-06-19 14:53:55 -07:00
Dean Lee dffb9800ad Sound refactor (#1589)
* Soud refactor

* remove files from  files_common

* add timeout to set_volumn

* add param volume to init

* done

* test.cc

* fix typo

* add repeat param instead of loop

* revert submodule

* add member function currentSound

* remove function create_player from class member

* fix build error

fix repeat

* rename CHECK_RESULT to ReturnOnError

* set currentSound_ before posible err

* use std::map to initialize sound table

cleanup

cleanup

cleanup

fix bug in stop

change paramater name

* done

* remove function CreatePlayer, create player in init()

* resolve conflict

* remove sound test

* rebase

* remove whitespace

* Apply great review suggestion

* use player's SLVolumeItf interface to set volume

* use float

* leave the volume control the way it is
old-commit-hash: 8cacc14b3180e831ed4fa0782102f973efe8851f
2020-06-15 15:26:38 -07:00
George Hotz 5d069eb8c3 Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 344a9a369983f58fe1e71f84478ded5c766e0d1b
2020-06-11 18:21:59 -07:00
ZwX1616 82c3b6c110 fix dtype (#1676)
old-commit-hash: 681ef81ed82650e5cc1d420362d363ee83f7a9ad
2020-06-10 15:15:51 -07:00
Dean Lee 0f9202c4b7 add set_brightness in framebuffer.h (#1659)
old-commit-hash: 8ad1135e80f93b19bb2f0a6b4c7531a9b5eb7d8a
2020-06-10 10:28:18 -07:00
Dean Lee 36ee93e0fe remove function is_leon (#1660)
old-commit-hash: 5fdb60d43e8d141c086d9c25f2235cfb18106a17
2020-06-08 17:24:55 -07:00
George Hotz 4b6c80336b Getting PC openpilot working again (#1650)
* fixup keras_runner to work and be nicer

* truncate the lane lines based on the valid len
old-commit-hash: 7770041f9201c4f84717435b7a585fd70a937923
2020-06-05 17:40:56 -07:00
Dean Lee 92b5c00d0e ui.cc: remove variables from UIScene, use event::Reader to get data (#1585)
* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space
old-commit-hash: d720f28ecb35c06a5ffb6004e79d82c80707fcde
2020-06-05 15:33:45 -07:00
Adeeb d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Willem Melching f9036398e8 ui.cc: read_db_value is not null terminated
old-commit-hash: 884b327374890358424c90d1fc20b459f599987e
2020-06-01 16:41:04 -07:00
Dean Lee 32fa3e26be Template version of read_param (#1593)
old-commit-hash: c9dbaf821c5654019dec0ac814c56ed54c3cacf3
2020-06-01 14:30:53 -07:00
Dean Lee b72fcb69e2 driving.cc: Pass ModelDataRaw by reference (#1600)
* pass ModelDataRaw by reference

* pass NVGpaint by refer
old-commit-hash: af36aa28abeb55a4445cbc1ff13ac55993d989d9
2020-05-30 10:08:44 -07:00
Dean Lee 7db5410f10 UI: better read_model (#1586)
* update model struct inplace

* refer params

* pass path by refer
old-commit-hash: 108a13ead84ea5f06bba77d81cae371a08c020c6
2020-05-28 15:10:49 -07:00
Willem Melching 56bddd9105 Fix #1566, athena status flicker in sidebar
old-commit-hash: 4de2c57bd104b18557a0364f7b3e08aa1df45827
2020-05-26 13:41:02 -07:00
Willem Melching 91f1082394 -Werror (#1567)
* werror

* -Wno-inconsistent-missing-override

* Silence ffmpeg deprecation warnings

* add some more pragmas to ignore warnings

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 50f3f1d3357b356c5b1144c518f35375f5bb9924
2020-05-26 13:27:01 -07:00