summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:27:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:27:41 +0100
commit474e4f75998ca0782f5212c7365d107790cab5c6 (patch)
treea3113c7ae2e0012162dde9e4e4c004685386f1dd /facetracknoir/tracker.cpp
parent1744c1cc6058e4508c912eac1e40a277fe4c4bfe (diff)
move declarations closer to usage
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r--facetracknoir/tracker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 9bf5fb2c..dfc5d230 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -85,7 +85,7 @@ static void t_compensate(double* input, double* output)
/** QThread run method @override **/
void Tracker::run() {
- T6DOF offset_camera, gameoutput_camera, target_camera;
+ T6DOF offset_camera;
bool bTracker1Confid = false;
bool bTracker2Confid = false;
@@ -139,7 +139,7 @@ void Tracker::run() {
Libraries->pFilter->Initialize();
}
- T6DOF target_camera2, new_camera;
+ T6DOF target_camera, target_camera2, new_camera;
if (enabled && confid)
{
@@ -149,6 +149,8 @@ void Tracker::run() {
target_camera2 = target_camera - offset_camera;
}
+ T6DOF gameoutput_camera;
+
if (Libraries->pFilter) {
for (int i = 0; i < 6; i++)
last_post_filter[i] = gameoutput_camera.axes[i];