summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 21:41:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 21:41:10 +0200
commitc34777d460d41a485f2e2900bd2954490b82ac1b (patch)
treed1e8ba9f111cb3c3cf40256466b0861c3bb9d61e /facetracknoir
parenteb3fac6ac66f85db0778cd47f01ba6a2854c9ab8 (diff)
filter API: Remove implementation detail. Sprinkle const
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/tracker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index cdf28d40..5acf7dea 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -56,7 +56,6 @@ static void get_curve(double pos, double& out, THeadPoseDOF& axis) {
/** QThread run method @override **/
void Tracker::run() {
- T6DOF current_camera; // Used for filtering
T6DOF target_camera;
T6DOF new_camera;
@@ -135,7 +134,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(current_camera.axes, target_camera.axes, new_camera.axes, last_post_filter);
+ Libraries->pFilter->FilterHeadPoseData(target_camera.axes, new_camera.axes, last_post_filter);
}
else {
new_camera = target_camera;