Commit Graph

1098 Commits

Author SHA1 Message Date
Willem Melching
ca8d4e417e MacOS: ensure 1:1 rendering on HiDPI screens (#23860) 2022-02-25 14:36:27 +01:00
Willem Melching
a03685c3f9 Fix watch3 on mac (#23834) 2022-02-23 14:31:28 +01:00
Willem Melching
dc7de79dc9 replay: use VideoToolbox HW decoder on Mac (#23832)
* replay: support VideoToolbox HW decoding

* rename flag

* remove debug assert
2022-02-23 13:52:50 +01:00
Willem Melching
df88280e0f replay: use QCoreApplication (#23831) 2022-02-23 13:34:31 +01:00
Willem Melching
724bab8ef3 Update raw_logger/framereader to new new ffmpeg api (#23799)
* Update raw_logger/framereader to new new ffmpeg api

* Can be removed now

* Handled by avcodec_free_context

* handle EAGAIN and clean up
2022-02-21 16:39:32 +01:00
Adeeb Shihadeh
95da470795 same check 2022-02-15 16:44:13 -08:00
Adeeb Shihadeh
00d469dbc9 UI: fix power buttons disable logic (#23774) 2022-02-15 16:18:09 -08:00
Willem Melching
f8c81103fc nav: set settings stack based on uiState.prime_type (#23770)
* nav: set settings stack based on uiState.prime_type

* also show on success
2022-02-15 16:39:10 +01:00
Willem Melching
14f7a78251 nav: handle route responses with duplicate points (#23769) 2022-02-15 16:14:57 +01:00
Willem Melching
e76ef93a83 ui: fix onroad transition with active nav (#23757) 2022-02-14 13:55:30 +01:00
Lee Jong Mun
ab9fb0541d missing optional include (#23749) 2022-02-11 12:08:09 +01:00
Willem Melching
955c7435f8 fix UI segfault when starting onroad and receiving radarState before modelV2 (#23739) 2022-02-10 13:52:03 +01:00
Willem Melching
4e4cb07297 ui: configure tethering based on prime type (#23733)
* Store prime type in param

* set tethering metric based on prime type

* update existing connections

* returning zero is fine

* always set

* add callback on activate

* call systemctl

* match server enum

* add delay

* assume field is there

* snake case
2022-02-09 20:27:58 +01:00
Shane Smiskol
e5005b8f44 scons: fix duplicate environments with test flag (#23702)
* fix duplicate environments when built with --test

* lib

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-06 14:08:02 -08:00
Dean Lee
786152f0f1 remove trailing whitespaces (#23716) 2022-02-06 10:42:41 -08:00
Dean Lee
4e0c08c0a6 WifiManager: fix crash if no wifi device found (#23701) 2022-02-03 15:33:29 -08:00
Jason Wen
4715510e91 UI: hide power off button on C3 while onroad (#23689)
* Grey out power button while onroad - comma three only

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-02-03 15:32:57 -08:00
Jonathan Frey
a39e635b5c replay: fix pause key doc (#23697) 2022-02-03 09:59:07 -08:00
Adeeb Shihadeh
e6d8a84578 for those who want to live in the moment 2022-01-31 14:30:40 -08:00
Adeeb Shihadeh
e9cd0a059c setup: add OS version to user agent (#23656) 2022-01-28 14:21:37 -08:00
Dean Lee
fa3a787e9a replay: fix wrong logging for local route (#23652) 2022-01-28 12:03:19 -08:00
Dean Lee
520c99a050 replay: add test case for local route (#23650)
* add test for local route

* retry download on network error

* sleep 500ms before retry

* read 100 frames

* read more segments from route

* add REQUIRE
2022-01-28 12:02:29 -08:00
Dean Lee
2f91441382 replay: cleanup functions (#23655)
* cleanup function seek

* cleanup signals&slots

* use false

* add comment back
2022-01-28 12:02:11 -08:00
Dean Lee
a901104a96 log error on avcodec_receive_frame (#23649) 2022-01-27 19:35:18 -08:00
Dean Lee
3ca8e3653b replay: ncurses GUI (#23608)
* initial version

* print all message's in ncurses window

* show download progress bar

* move all to class ConsoleUI

* timeline

* improve timeline&stats

* fix logMessage

* add warning indicator

* continue

* cleanup

* cast type to int

* simplify seekToFlag

* more

* <=

* handle enter

* add box to logging window

* fix multiple threads problem

* fix concurrency issues

* draw indicator

* many improvements

* more

* fix multipe threads logging

* stop replay before exit

* use lambda instead of std::bind

* cleanup

* small cleanup

* use carFingerPrint

* don't emit signal in replay::stream

* merge car_events into timeline

* cleanup DonloadStats

* cleanup

* rename carname to carFingerprint

* improve alert

* add comments

* add help functions

templete function

* handle term resize

* display replaying status

* rename to INSTANT

* helper function pauseReplay

* more

* cleanup

use rDebug

* no template

* less colors

* remove function mv_add_str

* use BORDER_SIZE

* tune colors

* add spaces

* apply reviews

use /
2022-01-27 13:17:41 -08:00
Kevin Robert Keegan
347583d423 Use Wide Road Camera as Light Sensor for Screen Brightness (#23610)
Using the narrow camera as a light sensor meant that the
reflection of our own headlights, tail lights, and head lights
of opposing vehicles dominated the sensor value at night
even though the broader overall scene is very dark.

This has very little effect during daylight hours.  The change
affects nightime driving the most, resulting in a dimmer
screen when it is dark.

I think this makes more sense as the wide angle camera's
field of view is much closer to the human eye's field of
view than the narrow road camera.
2022-01-25 11:13:59 +01:00
Adeeb Shihadeh
3e9cb7fa12 remove community features toggle (#23214)
* remove community features toggle

* bump cereal

* little more

* update refs
2022-01-24 14:49:47 -08:00
Dean Lee
1e906366f8 ui/setup: check http status code (#23597)
* check resp code

* always cleanup curl and close file

* curl_global_init

* space

* cleaner

* Revert "curl_global_init"

This reverts commit c3f1a7cee87804993ce8f5fd5939570a8e9ffd3a.
2022-01-22 13:49:03 -08:00
Dean Lee
bca92a95cc ui: fix lead vertex coordinates (#23550) 2022-01-21 15:14:18 -08:00
Dean Lee
f7932f874d ui/networking: async dbus calls (#23535)
* async dbus calls

* simplify get ip address

* Revert "simplify get ip address"

This reverts commit 7ade7ec57dd0bb76cb3194f94f039498fdcd8881.

* cleanup getConnectionPath()

* remove unused functions

* cleanup

* rename to getIp4Address

* clenup class definition
2022-01-17 12:12:58 -08:00
Dean Lee
6bd0e4b087 ui: fix invalid line vertices on startup (#23541) 2022-01-15 09:09:24 -08:00
Dean Lee
43a2674ffc ui/networking: simplify dbus calls with a helper function (#23531)
* simplify d-bus calls

* move template function to source file
2022-01-14 11:46:45 -08:00
Dean Lee
39d904d2aa ui/networking: combine connect functions into one (#23522) 2022-01-14 08:42:29 -08:00
Dean Lee
75be1223f8 ui/WifiManager: inherit from QObject instead of QWidget (#23523) 2022-01-14 08:40:39 -08:00
Dean Lee
785180d234 MainWindow::eventFilter: add static keyword for evts (#23521) 2022-01-14 15:28:38 +01:00
Dean Lee
6dbae9593e UI: reset interactivity timeout on PC (#23508)
* reset interactive timeout on pc

* cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-01-13 19:20:22 -08:00
HaraldSchafer
85dcfbbf36 update comment (#23495) 2022-01-11 18:49:53 -08:00
Willem Melching
d77782ea93 CameraView: sync pbo with glFence instead of calling glFinish (#23409)
* CameraView: sync pbo with glFence instead of calling glFinish (#23293)

* Sync pbo with fence

* use std::unique_ptr

* cameraview.cc: call glFlush after creating fence

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2022-01-07 15:24:20 +01:00
Willem Melching
c4b36ce11e Revert "ui/update_model: do not recalculate the max_idx If there is no lead (#23356)"
This reverts commit f561d84c62.
2022-01-07 14:31:23 +01:00
Dean Lee
86d730774d replay: handle abort in getRemoteFileSize (#23427) 2022-01-06 15:56:14 +01:00
Cameron Clough
64caee88eb replay: add missing import for std::optional (#23416) 2022-01-05 09:19:51 -08:00
Willem Melching
8d80c0107f catch gl_buffer->map() returning nullptr (#23411) 2022-01-05 14:23:57 +01:00
Adeeb Shihadeh
25f51470fc Revert "CameraView: sync pbo with glFence instead of calling glFinish (#23293)"
This reverts commit 5dbdad3276.
2022-01-04 20:16:52 -08:00
Adeeb Shihadeh
34926dfab5 Revert "cameraview.cc: call glFlush after creating fence"
This reverts commit 8655f6df6b.
2022-01-04 20:16:42 -08:00
Dean Lee
d2948f250b replay: Add next engagement / disengagement jump capabilities (#23248)
* seek engament/disengament in qlogs

* cleanup

* cleanup

* little more

* add output

* remove qinfo

* fix typo

* do nothing if tm less than current mono time

* const

* short variable name

* lgtm
2022-01-04 16:02:04 +01:00
Willem Melching
8655f6df6b cameraview.cc: call glFlush after creating fence 2022-01-04 15:55:28 +01:00
Dean Lee
5dbdad3276 CameraView: sync pbo with glFence instead of calling glFinish (#23293)
* Sync pbo with fence

* use std::unique_ptr
2022-01-04 14:14:38 +01:00
Dean Lee
cd9813ab6a UI: run set_brightness in QtConcurrent (#23326)
* use QFuture

* update at 10 hz

* don't change frequency
2022-01-04 14:03:27 +01:00
Robbe Derks
a1e201ef5a MUI should be a status bar (#23287) 2022-01-04 12:15:18 +01:00
Dean Lee
937a0df57b replay/logreader: handle abort in load (#23321)
* handle abort

* handle abort in decompressBZ2
2022-01-04 12:06:23 +01:00