From 2dd8b322b996df15e6c79a9af9dbfd7ef7352e72 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Wed, 20 Mar 2024 17:05:22 -0700 Subject: [PATCH] fix --- common/transformations/camera.py | 2 +- selfdrive/ui/ui.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/transformations/camera.py b/common/transformations/camera.py index dc3ca5f388..a39c4ff686 100644 --- a/common/transformations/camera.py +++ b/common/transformations/camera.py @@ -49,7 +49,7 @@ class DeviceCameraConfig: _ar_ox_fisheye = CameraConfig(1928, 1208, 567.0) # focal length probably wrong? magnification is not consistent across frame _os_fisheye = CameraConfig(2688, 1520, 567.0 / 2 * 3) _ar_ox_config = DeviceCameraConfig(CameraConfig(1928, 1208, 2648.0), _ar_ox_fisheye, _ar_ox_fisheye) -_os_config = DeviceCameraConfig(CameraConfig(2688, 1520, 2648.0 * 2 / 3), _os_fisheye, _os_fisheye) +_os_config = DeviceCameraConfig(CameraConfig(2688, 1520, 2648.0 / 2 * 3), _os_fisheye, _os_fisheye) _neo_config = DeviceCameraConfig(CameraConfig(1164, 874, 910.0), CameraConfig(816, 612, 650.0), _NoneCameraConfig()) DEVICE_CAMERAS = { diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index 6efb72af9a..7909fa76f6 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -27,13 +27,13 @@ typedef cereal::CarControl::HUDControl::AudibleAlert AudibleAlert; const float MIN_DRAW_DISTANCE = 10.0; const float MAX_DRAW_DISTANCE = 100.0; constexpr mat3 DEFAULT_CALIBRATION = {{ 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0 }}; -constexpr mat3 FCAM_INTRINSIC_MATRIX = (mat3){{2648.0, 0.0, 1928.0 / 2, - 0.0, 2648.0, 1208.0 / 2, +constexpr mat3 FCAM_INTRINSIC_MATRIX = (mat3){{2648.0 * 1.5, 0.0, 2688.0 / 2, + 0.0, 2648.0 * 1.5, 1520.0 / 2, 0.0, 0.0, 1.0}}; // tici ecam focal probably wrong? magnification is not consistent across frame // Need to retrain model before this can be changed -constexpr mat3 ECAM_INTRINSIC_MATRIX = (mat3){{567.0, 0.0, 1928.0 / 2, - 0.0, 567.0, 1208.0 / 2, +constexpr mat3 ECAM_INTRINSIC_MATRIX = (mat3){{567.0 * 1.5, 0.0, 2688.0 / 2, + 0.0, 567.0 * 1.5, 1520.0 / 2, 0.0, 0.0, 1.0}};