summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:45:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:45:27 +0100
commit83997336c88f75cc183eb7ccdb7ae002be9b0fac (patch)
tree3a12db5d46ec493dad49b7d769d9ca7c155ede2e /facetracknoir
parentc1845054628c42017b838ceb7769a779dc1f1e08 (diff)
get rid of "last_post_filter"
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index dfe71f28..fbf90a66 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -85,11 +85,9 @@ static void t_compensate(double* input, double* output)
/** QThread run method @override **/
void Tracker::run() {
- T6DOF offset_camera, gameoutput_camera;
+ T6DOF offset_camera;
double newpose[6] = {0};
- double last_post_filter[6] ;
-
int sleep_ms = 15;
if (Libraries->pTracker)
@@ -144,9 +142,7 @@ void Tracker::run() {
}
if (Libraries->pFilter) {
- for (int i = 0; i < 6; i++)
- last_post_filter[i] = gameoutput_camera.axes[i];
- Libraries->pFilter->FilterHeadPoseData(target_camera2.axes, new_camera.axes, last_post_filter);
+ Libraries->pFilter->FilterHeadPoseData(target_camera2.axes, new_camera.axes);
} else {
new_camera = target_camera2;
}
@@ -159,8 +155,7 @@ void Tracker::run() {
t_compensate(output_camera.axes, output_camera.axes);
if (Libraries->pProtocol) {
- gameoutput_camera = output_camera;
- Libraries->pProtocol->sendHeadposeToGame( gameoutput_camera.axes ); // degrees & centimeters
+ Libraries->pProtocol->sendHeadposeToGame( output_camera.axes ); // degrees & centimeters
}
}