Revert "dmonitoring/DriverView: get crop_rect & transform by video size (#23014)"

This reverts commit 1af715d6a2.
This commit is contained in:
Willem Melching
2021-12-08 19:13:38 +01:00
parent 1af715d6a2
commit b5fdf646ff
3 changed files with 32 additions and 24 deletions
+5 -9
View File
@@ -1,8 +1,6 @@
#pragma once
#include <array>
#include "selfdrive/common/mat.h"
#include "selfdrive/hardware/hw.h"
const int TRAJECTORY_SIZE = 33;
const int LAT_MPC_N = 16;
@@ -38,14 +36,10 @@ const std::array<double, TRAJECTORY_SIZE> X_IDXS = {
168.75 , 180.1875, 192.};
const auto X_IDXS_FLOAT = convert_array_to_type<double, float, TRAJECTORY_SIZE>(X_IDXS);
const int TICI_CAM_WIDTH = 1928;
namespace tici_dm_crop {
const int x_offset = -72;
const int y_offset = -144;
const int width = 954;
};
#ifdef __cplusplus
#include "selfdrive/common/mat.h"
#include "selfdrive/hardware/hw.h"
const mat3 fcam_intrinsic_matrix =
Hardware::EON() ? (mat3){{910., 0., 1164.0 / 2,
0., 910., 874.0 / 2,
@@ -68,3 +62,5 @@ static inline mat3 get_model_yuv_transform(bool bayer = true) {
}};
return bayer ? transform_scale_buffer(transform, db_s) : transform;
}
#endif