Commit Graph

247 Commits

Author SHA1 Message Date
Dean Lee 86fe2d1697 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
2021-01-05 20:19:53 -08:00
Dean Lee 20918d82b6 cleanup draw alert (#19655)
* cleanup

* use Rect

* Revert "use Rect"

This reverts commit 96d04339a0adc7f7f543828ae8ff8101dd9f5f60.

* remove None from static map
2021-01-05 13:27:15 +01:00
Dean Lee 30c1164287 refactor ui_draw_image (#19656) 2021-01-05 13:01:32 +01:00
Dean Lee f232f86a73 simplify ui_draw_vision_maxspeed (#19642)
if is_curise_set
2021-01-04 15:55:04 +01:00
Dean Lee ba4fb80e92 UI: simplify ui_draw_vision_speed (#19594)
* simplify draw_vision_speed

* use std::nearbyint

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

* helper function sleep_for
2021-01-04 13:59:23 +01:00
Dean Lee 37a43124c0 max_idx should be initialized as -1 (#19625) 2021-01-04 11:29:31 +01:00
Willem Melching 493937d2d9 round close button 2021-01-04 11:28:28 +01:00
Willem Melching 0cf3da17be offroad alerts: put back reboot button 2021-01-04 11:24:06 +01:00
Willem Melching 250f285894 Nicer blue/red colors offroad alert button 2021-01-04 10:33:43 +01:00
Dean Lee 0c4e2fadc8 UI:shorten variable name (#19633) 2021-01-03 12:25:24 -08:00
Comma Device 3e34b67715 square looks better 2020-12-30 18:08:18 +00:00
Adeeb Shihadeh 0300eb3849 tici: fix backlight timer interval 2020-12-30 01:19:49 -08:00
Dean Lee 39bd8c7ce6 ui_draw_chevron: simplify calc size (#19616) 2020-12-29 14:08:49 -08:00
Adeeb Shihadeh ce48d3c91e 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>
2020-12-25 01:02:47 -08:00
Adeeb Shihadeh b7adecdf59 make wifi settings a bit nicer 2020-12-24 14:31:13 -08:00
Adeeb Shihadeh 550b5e422f qt settings style (#19588)
* dark mode

* inter

* frame

* this looks pretty good

* revert that

* fix bg hack

* don't override style sheet
2020-12-24 14:10:43 -08:00
Dean Lee e3ffa91d17 simpilify ui_read_params (#19585)
* simpilify ui_read_params

* apply review
2020-12-24 03:01:53 -08:00
Adeeb Shihadeh 1bcc3beae8 spinner: pre-compute rotations 2020-12-24 01:55:52 -08:00
Dean Lee e032c31069 improved handle_display_state (#19574) 2020-12-23 13:53:39 -08:00
Dean Lee 81369a65bb don't check dMonitorState's frame if frontview is false (#19584) 2020-12-23 11:20:18 -08:00
Mayfield 5864f566df add start_time parameter to unlogger (#19573)
* add start_time parameter to unlogger

* fix ui crash

* fix ui build
2020-12-21 23:34:24 -08:00
Dean Lee c1cde2d148 UI: add function ui_read_params (#19565)
* ui_read_params

* remove last_athena_ping from UIState

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

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

* cleanup

* remove that
2020-12-20 19:39:59 -08:00
Adeeb Shihadeh d5deaf2e6b make onboarding a bit nicer 2020-12-20 16:07:33 -08:00
Adeeb Shihadeh 8d9be50bcc uninstall from qt offroad (#19538)
* more offroad

* implement uninstall

* just uninstall for now
2020-12-18 23:06:40 -08:00
Adeeb Shihadeh 069189fd7f build Qt UI with clazy (#19537)
* clazy, level0

* level1
2020-12-18 19:26:59 -08:00
Adeeb Shihadeh a36632cc39 offroad home styling and cleanup 2020-12-18 16:40:23 -08:00
grekiki 5b26c97141 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>
2020-12-18 13:29:20 +01:00
Comma Device 717e49019f increase controls alert timeout 2020-12-17 15:22:55 -08:00
Comma Device 1ea307a299 factory reset -> system reset 2020-12-15 23:35:55 +00:00
Comma Device 54c6931b5c fix camera malfunction ui timeout 2020-12-15 14:16:47 -08:00
Dean Lee 1ee8287705 cleanup camera malfunction alert (#2751)
* cleanup alert

* move ui_draw_vision_alert out of ui_draw_vision
2020-12-15 13:06:22 -08:00
Willem Melching 93cc7335fc paint.cc: lower y offset 2020-12-15 14:47:53 +01:00
Adeeb Shihadeh c4a05ba369 Qt system reset (#19502)
* qt factory reset

* confirmation

* better ui
2020-12-14 19:49:01 -08:00
Willem Melching 11fb6efba2 add optional margin to car_space_to_full_frame check 2020-12-14 14:09:26 +01:00
Willem Melching bbc289b671 paint.cc: fix y offset 2020-12-14 13:38:00 +01:00
komma zwei 41bc3c558e increase startup timeout for camera malfunction 2020-12-11 20:07:27 -08:00
grekiki c16c8f3c2c WiFI UI show IP (#2735)
WiFi widget now shows the IP of currently connected network.
2020-12-11 00:29:31 +01:00
grekiki bffdfd5303 Dynamically colored alert widget. (#2717)
blue background on update
2020-12-10 23:39:15 +01:00
grekiki f96fb625d9 Add label if no network manager is found (#2718) 2020-12-10 19:04:19 +01:00
ZwX1616 257c5f9d94 road camera malfunction alert (#2697)
* camera unresponsive

* blue and remove loge

* simplify

* should override to avoid blank screen

* let it be

* stop sound

Co-authored-by: WXEon <device@comma.ai>
2020-12-09 20:05:47 -08:00
Willem Melching 3d2fec6c9a dont init wifi widget if there is no adapter 2020-12-08 16:33:00 +01:00
Dean Lee 232cb25683 small cleanup (#2715) 2020-12-08 14:20:06 +01:00
grekiki 3e466aa528 UI style improvements with improved keyboard (#2710)
* fix spaces and make spacebar dynamically sized

* some spaces and a comment

* more spaces

* const

Co-authored-by: Comma Device <device@comma.ai>
2020-12-08 12:00:51 +01:00
grekiki ec671d4741 Tethering (#2676)
We can now enable tethering on the device. The user still has to reconnect to the wifi network after disabling tethering, the network manager is lazy.
2020-12-07 12:55:17 +01:00
Adeeb Shihadeh 8320a153fb move offroad alerts to home screen (#2681)
* move offroad alerts to home screen

* offroad aletrs work, but sidebar doesn't look nice

* fix sidebar

* looks better

* cleanup

* little bigger

Co-authored-by: grekiki <gregor1234567890@gmail.com>
2020-12-04 15:21:55 -08:00