ui: use C3 video sizes by default on PC

This commit is contained in:
Willem Melching
2021-09-14 11:27:34 -07:00
parent 362f067c9c
commit cf4cd3b693
2 changed files with 10 additions and 10 deletions
+2 -3
View File
@@ -28,10 +28,9 @@
typedef cereal::CarControl::HUDControl::AudibleAlert AudibleAlert;
// TODO: this is also hardcoded in common/transformations/camera.py
// TODO: choose based on frame input size
const float y_offset = Hardware::TICI() ? 150.0 : 0.0;
const float ZOOM = Hardware::TICI() ? 2912.8 : 2138.5;
const float y_offset = (Hardware::TICI() || Hardware::PC()) ? 150.0 : 0.0;
const float ZOOM = (Hardware::TICI() || Hardware::PC()) ? 2912.8 : 2138.5;
typedef struct Rect {
int x, y, w, h;