From bbc289b6711b958336cbaf87edede10050385867 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 14 Dec 2020 13:37:55 +0100 Subject: [PATCH] paint.cc: fix y offset --- selfdrive/ui/paint.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/paint.cc b/selfdrive/ui/paint.cc index a953450f1d..b45de4dab8 100644 --- a/selfdrive/ui/paint.cc +++ b/selfdrive/ui/paint.cc @@ -22,7 +22,7 @@ extern "C"{ // TODO: this is also hardcoded in common/transformations/camera.py // TODO: choose based on frame input size #ifdef QCOM2 -const float y_offset = 0.0; +const float y_offset = 200.0; const float zoom = 1.1; const mat3 intrinsic_matrix = (mat3){{ 2648.0, 0.0, 1928.0/2, @@ -733,7 +733,7 @@ void ui_nvg_init(UIState *s) { const mat4 frame_transform = {{ zx, 0.0, 0.0, 0.0, - 0.0, zy, 0.0, -y_offset / s->video_rect.h * zy, + 0.0, zy, 0.0, -y_offset / s->video_rect.h * 2, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, }};