summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-13 16:20:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-13 16:20:25 +0200
commit463737c1b50246c56a67c35c1116732006348593 (patch)
tree2bb7d1721f24a06ef1b0fcc264326ff0db9057cf /facetracknoir/tracker.cpp
parent04c1f89044a6abc7f922cc8981e74872d63a1bff (diff)
Don't expose filter internal state. Sprinkle some const
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r--facetracknoir/tracker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index f2b4845f..ff23a3bc 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;