diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-29 07:31:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-29 07:31:46 +0100 |
commit | 78e7b38162d525923feb13c6b609ecf1a75847a9 (patch) | |
tree | 21f32dfcc76b75a2d4a310750d949e4dc634f253 | |
parent | f879a8eeed54cb09929235a9a60fe335ee256eff (diff) |
move variable decls into inner scope
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r-- | facetracknoir/tracker.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index eb6348ca..a91d9f58 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -62,18 +62,18 @@ static void get_curve(double pos, double& out, THeadPoseDOF& axis) { /** QThread run method @override **/
void Tracker::run() {
- T6DOF offset_camera, new_camera, gameoutput_camera, target_camera, target_camera2;
-
+ T6DOF offset_camera, gameoutput_camera;
+
bool bTracker1Confid = false;
bool bTracker2Confid = false;
-
+
double newpose[6] = {0};
double last_post_filter[6];
-
+
#if defined(_WIN32)
(void) timeBeginPeriod(1);
#endif
-
+
for (;;)
{
if (should_quit)
@@ -88,6 +88,7 @@ void Tracker::run() { }
{
+ T6DOF target_camera;
QMutexLocker foo(&mtx);
const bool confid = bTracker1Confid || bTracker2Confid;
@@ -106,6 +107,8 @@ void Tracker::run() { Libraries->pFilter->Initialize();
}
+ T6DOF target_camera2, new_camera;
+
if (enabled && confid)
{
for (int i = 0; i < 6; i++)
@@ -164,7 +167,7 @@ void Tracker::run() { Libraries->pProtocol->sendHeadposeToGame( gameoutput_camera.axes ); // degrees & centimeters
}
}
-
+
msleep(15);
}
#if defined(_WIN32)
|