Commit Graph

102 Commits

Author SHA1 Message Date
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
Dean Lee
f8ab6bd009 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
2020-08-18 15:26:43 +02:00
Dean Lee
fe43d51686 paint.cc: remove redundant calls (#2025)
* remove redundant calls

* set MODEL_LANE_PATH_CNT=2
2020-08-17 12:06:09 +02:00
Dean Lee
934506e154 fix two little bugs (#2033) 2020-08-17 11:59:27 +02:00
Chris
1b52930a52 Kilometers per hour now displayed as km/h (#2032)
Fixes #2031

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
2020-08-17 11:16:52 +02:00
Dean Lee
56e63bafa8 remove duplicate call to getDMonitoringState (#1964) 2020-08-02 10:55:24 -07:00
Adeeb Shihadeh
a7ee2a53a8 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
2020-08-01 17:26:35 -07:00
Dean Lee
2953ae2810 UI cleanup (#1941)
* remove unused variables

* remove unused variables
2020-07-28 11:13:37 -07:00
Willem Melching
405d94ec6d qcom2 build fixes 2020-07-27 16:13:25 +00:00
Dean Lee
5cbdaa19bb sidebar: remove unnecessary checks on uilayout_sidebarcollapsed (#1928)
* cleanup

* keep local variables

* done
2020-07-26 21:00:24 -07:00
Adeeb Shihadeh
61548f5a48 Only draw lead car indicators when controlling longitudinal (#1914) 2020-07-23 13:28:58 -07:00
Adeeb Shihadeh
5db81f60ca 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
2020-07-19 16:12:22 -07:00
Adeeb Shihadeh
eb1aa3d831 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>
2020-07-09 09:25:32 -07:00
Dean Lee
11fbe85c14 remove offroadLayout from sm (#1846) 2020-07-08 21:24:55 -07:00
Dean Lee
ff4f432f0f paint.cc: Simplify drawing line (#1643)
* simplify drawing line

* remove space
2020-07-03 19:42:26 -07:00
Dean Lee
9de015f588 better update_offroad_layout_state (#1808)
apply review suggestion
2020-07-03 12:52:43 -07:00
Adeeb Shihadeh
2f16349c4c fix hardcoded frequencies in UI 2020-07-03 12:30:47 -07:00
Adeeb Shihadeh
e8259895f7 remove unused UI variables 2020-06-29 14:12:28 -07:00
George Hotz
b62da571b4 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>
2020-06-29 13:54:23 -07:00
Adeeb Shihadeh
f8ce6502a9 better alert when controls takes too long to start 2020-06-23 16:07:10 -07:00
Willem Melching
99949cc27d ui, fix vision_seen when starting with camerad already running 2020-06-23 15:16:55 -07:00
Adeeb Shihadeh
51b7dc0e38 fix engage/disengage sounds 2020-06-23 10:50:24 -07:00
Adeeb Shihadeh
af22b282ff Fix some alert sounds not repeating (#1763)
* fix sounds not repeating

* fix PC build

* 3 loop

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

* fix Dockerfile

* update precommit config

* exclude panda and opendbc
2020-06-19 20:39:34 -07:00
Adeeb Shihadeh
968443c545 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>
2020-06-19 19:28:56 -07:00
Adeeb Shihadeh
78b428e534 fix alert sounds looping 2020-06-19 14:53:55 -07:00
Dean Lee
8cacc14b31 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
2020-06-15 15:26:38 -07:00
George Hotz
344a9a3699 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>
2020-06-11 18:21:59 -07:00
ZwX1616
681ef81ed8 fix dtype (#1676) 2020-06-10 15:15:51 -07:00
Dean Lee
8ad1135e80 add set_brightness in framebuffer.h (#1659) 2020-06-10 10:28:18 -07:00
Dean Lee
5fdb60d43e remove function is_leon (#1660) 2020-06-08 17:24:55 -07:00
George Hotz
7770041f92 Getting PC openpilot working again (#1650)
* fixup keras_runner to work and be nicer

* truncate the lane lines based on the valid len
2020-06-05 17:40:56 -07:00
Dean Lee
d720f28ecb 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
2020-06-05 15:33:45 -07:00
Adeeb
ab83e48ec4 Add pre-commit hooks (#1629) 2020-06-03 12:54:49 -07:00
Willem Melching
884b327374 ui.cc: read_db_value is not null terminated 2020-06-01 16:41:04 -07:00