From 379f05cbaa02d328b538134a719f3a6a2400d6c6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 14 Jun 2014 18:33:34 +0200 Subject: update lerp api in filters --- ftnoir_filter_accela/ftnoir_filter_accela.cpp | 4 ++-- ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index a82ff077..b07290e2 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -32,7 +32,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double* target_camera_position, { for (int j = 0; j < 3; j++) last_output[j][i] = target_camera_position[i]; - l.write(target_camera_position, new_camera_position); + l.write(target_camera_position, target_camera_position, new_camera_position); } first_run = false; @@ -63,7 +63,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double* target_camera_position, } } - l.write(last_output[0], new_camera_position); + l.write(target_camera_position, last_output[0], new_camera_position); } extern "C" FTNOIR_FILTER_BASE_EXPORT IFilter* CALLING_CONVENTION GetConstructor() diff --git a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp index dcc1475c..d3cb2c32 100644 --- a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp +++ b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp @@ -71,7 +71,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double *target_camera_position, for (int i=0;i<6;i++) { delta[i] = 0.0; noise[i] = 0.0; - l.write(target_camera_position, new_camera_position); + l.write(target_camera_position, target_camera_position, new_camera_position); } first_run=false; return; @@ -100,7 +100,7 @@ void FTNoIR_Filter::FilterHeadPoseData(const double *target_camera_position, } } - l.write(pos, new_camera_position); + l.write(target_camera_position, pos, new_camera_position); } extern "C" FTNOIR_FILTER_BASE_EXPORT IFilter* CALLING_CONVENTION GetConstructor() -- cgit v1.2.3