From 889a53b25b4bf79d4efc574b48266a8e8a154ee8 Mon Sep 17 00:00:00 2001 From: Wei Shuai Date: Fri, 26 Jan 2018 16:22:53 +0800 Subject: tracker/wii: fix fov --- tracker-pt/tracker-wii/wii_camera.cpp | 1 + tracker-pt/tracker-wii/wii_camera.h | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tracker-pt/tracker-wii/wii_camera.cpp b/tracker-pt/tracker-wii/wii_camera.cpp index 514c71ae..22d53fcf 100644 --- a/tracker-pt/tracker-wii/wii_camera.cpp +++ b/tracker-pt/tracker-wii/wii_camera.cpp @@ -27,6 +27,7 @@ WIICamera::WIICamera(const QString& module_name) : s { module_name } cam_info.res_x = 1024; cam_info.res_y = 768; cam_info.fov = 42.0f; + cam_info.idx = 0; } QString WIICamera::get_desired_name() const diff --git a/tracker-pt/tracker-wii/wii_camera.h b/tracker-pt/tracker-wii/wii_camera.h index 6518de91..7bd4a7ae 100644 --- a/tracker-pt/tracker-wii/wii_camera.h +++ b/tracker-pt/tracker-wii/wii_camera.h @@ -25,13 +25,7 @@ #include "wii_frame.hpp" namespace pt_module { -#if 0 -struct WIICameraInfo final : pt_camera_info -{ - WIICameraInfo() {} - double get_focal_length() const { return 42.; } -}; -#endif + struct WIICamera final : pt_camera { WIICamera(const QString& module_name); @@ -48,7 +42,7 @@ struct WIICamera final : pt_camera operator bool() const override { return m_pDev && (!m_pDev->ConnectionLost()); } - void set_fov(double value) override { fov = value; } + void set_fov(double value) override {} void show_camera_settings() override; @@ -64,7 +58,7 @@ private: bool _get_points(struct wii_info&); void _get_status(struct wii_info&); - double dt_mean = 0, fov = 42.; + double dt_mean = 0; Timer t; -- cgit v1.2.3