diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-05-20 11:03:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-05 14:44:25 +0200 |
commit | e523ad7584e4e71e393b18c6c8f020370d10e2d7 (patch) | |
tree | 640f4218eb68536365435d8d4d8662686d4cce75 /tracker-trackhat | |
parent | 4fb2f4dcfb2d4dfaa3d0028ea8cd08aec7225a1f (diff) |
tracker/trackhat: fix custom model
Issue: #1474
Diffstat (limited to 'tracker-trackhat')
-rw-r--r-- | tracker-trackhat/settings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tracker-trackhat/settings.cpp b/tracker-trackhat/settings.cpp index ec46b1e9..71ab17d2 100644 --- a/tracker-trackhat/settings.cpp +++ b/tracker-trackhat/settings.cpp @@ -45,6 +45,7 @@ void trackhat_camera::set_pt_options() s.t_MH_x = 0; s.t_MH_y = 0; s.t_MH_z = 0; break; case model_mystery_meat: + break; case model_clip_left: case model_mini_clip_left: s.t_MH_x = -135; s.t_MH_y = 0; s.t_MH_z = 0; @@ -63,13 +64,16 @@ void trackhat_camera::set_pt_options() case model_clip_left: case model_clip_right: s.clip_tz = 27; s.clip_ty = 43; s.clip_by = 62; s.clip_bz = 74; + s.active_model_panel = 0; break; case model_mini_clip_left: case model_mini_clip_right: s.clip_tz = 13; s.clip_ty = 42; s.clip_by = 60; s.clip_bz = 38; + s.active_model_panel = 0; break; case model_cap: s.cap_x = 60; s.cap_y = 90; s.cap_z = 95; + s.active_model_panel = 1; break; case model_mystery_meat: break; @@ -80,7 +84,6 @@ void trackhat_camera::set_pt_options() s.camera_name = QStringLiteral("TrackHat Sensor (WIP)"); - s.active_model_panel = t.model == model_cap ? 1 : 0; s.enable_point_filter = t.enable_point_filter; s.point_filter_coefficient = *t.point_filter_coefficient; s.point_filter_limit = *t.point_filter_limit; |