summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorWei Shuai <cpuwolf@gmail.com>2018-01-26 16:22:53 +0800
committerWei Shuai <cpuwolf@gmail.com>2018-01-26 21:50:36 +0800
commit889a53b25b4bf79d4efc574b48266a8e8a154ee8 (patch)
treeff31fc055cc7b651c668b2a8f9ad04387e280118 /tracker-pt
parent19eca40d3f057868f49d3285683e4a32b03b9385 (diff)
tracker/wii: fix fov
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/tracker-wii/wii_camera.cpp1
-rw-r--r--tracker-pt/tracker-wii/wii_camera.h12
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;