mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
paint.cc: fix y offset
old-commit-hash: bbc289b6711b958336cbaf87edede10050385867
This commit is contained in:
@@ -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,
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user