Commit Graph

16 Commits

Author SHA1 Message Date
Adeeb Shihadeh
d10d3287a3 remove unused UI variables
old-commit-hash: e8259895f7
2020-06-29 14:12:28 -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: 3c461ca5cc
2020-06-19 20:39:34 -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: d720f28ecb
2020-06-05 15:33:45 -07:00
Willem Melching
83d02c8c4a Don't show "no gps" when ubloxd is not running (#1479)
* dont show no gps when ubloxd is not running

* Just s

* Dropped that

* Connected is too long
old-commit-hash: f7c8707bf8
2020-05-08 21:04:55 -07:00
Dean Lee
90af65c41c UI: move c-capnp to c++ (#1455)
* ui:move c-capnp to c++

* move Subsockets into vector

* rename reader to msg

include cereal/gen/cpp/log.capnp

* fix some errors

restore some changes

restore previous

* cleanup codes

cleanup codes

* remove unused variable alert_size

* handle capnproto's enum in a robust way

add break to default

* switch -> std:map

* use static std::map instead of switch

do cleanup

* fix wrong variable name

* use FlatArrayMessageReader instead of custom MessageReader

remove messagehelp.h

Revert "use FlatArrayMessageReader instead of custom MessageReader"

This reverts commit 57d8b6b1e2b4bad908246f35eb068535b1627167.

use FlatArrayMessageReader instead of custom MessageReader

add header file

remove capnp_c lib,add kj lib

include serialize.h

fix

remove duplicate includes
old-commit-hash: ee725534bb
2020-05-06 08:38:26 -07:00
Dean Lee
c1641cc035 simplify drawing text and rect (#1446)
* add ui_draw_text

remove draw textbox

make draw_text static

add blank line

* add ui_draw_text

remove draw textbox

make draw_text static

add blank line

add ui_draw_rect

draw rounded rect

fx typo

* remove used variables

* reduce lines

fix typo

* resolve confilit
old-commit-hash: 846a58507f
2020-05-02 11:27:03 -07:00
Dean Lee
40dfc4874b better ui_draw() (#1432)
* better ui_draw()

* fix missed border

reduce code

remove white line
old-commit-hash: 3fe3afeede
2020-04-30 12:11:35 -07:00
Comma Device
9521ac53e5 call it vehicle, not panda
old-commit-hash: d0e0746138
2020-04-22 20:30:53 +00:00
Comma Device
928b82c2db s/athena/connect on sidebar
old-commit-hash: 4e44ab313e
2020-04-20 20:49:28 +00:00
Dean Lee
9c9b8b2aa8 add ui_draw_image to reduce code repetition
old-commit-hash: 1ecef2c6be
2020-04-13 15:38:45 -07:00
Andy
e43b40540d Sidebar Connectivity Status (#1268)
* store athena connected-at time

* refactor

* deref

* dt import

* Athena status based on last ping time param

* upd test for pingtime

* lower error timeout
old-commit-hash: 41bb3ac7ca
2020-04-05 11:06:49 -07:00
eFini
645512dbb4 paint.cc uses color defined in ui.hpp (#1261)
* pain.cc uses color defined in ui.hpp

* use macro
old-commit-hash: 47f17622d9
2020-03-27 11:00:42 -07:00
DeanLee
3bae5ab6e8 repace nvgFontFace with nvgFontFaceId (#1279)
old-commit-hash: 993b0e9427
2020-03-27 11:00:07 -07:00
Comma Device
77615056ec fix multiline strings in ui_draw_sidebar_metric
old-commit-hash: 50d2dc24d2
2020-03-23 20:11:48 +00:00
Greg Hogan
1768b4745f remove storage metric from sidebar (#1254)
old-commit-hash: 16ad4bf58b
2020-03-20 10:35:58 -07:00
Andrew Valish
20816d909d Refactor frame (#1192)
* start drawing new sidebar, add assets

* add thermal to ui, draw network_type and battery

* draw sidebar metrics, add freeSpace and paTemp

* draw static panda metric and network strength, start ubloxGnss messaging

* use array for network_img

* start sidebar touch events

* prevent multiple touch events with touch_timeout

* filter old touches, isolate sidebar events

* add hwType check with timeout for panda metric

* cleanup touch poll, handle vision touch, remove frame and black apks

* cleanup per willem comments

* update offroad, only read active_app from cereal

* tweak sidebar behavior, show active app status

* update offroad apk

* read networkstrength from thermal in sidebar
old-commit-hash: 5ba6beed17
2020-03-09 19:13:32 -07:00