summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-24 20:14:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-24 20:14:10 +0200
commit542c5e475f151ba7f531e3128a3bcead247a317c (patch)
tree2f6bd112ca7151ba2935680f498d8da8d0954d9d
parent4bde5b3cfc82348d822bcd99a0ca6bab022b2933 (diff)
main: ignore confid errors
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
-rw-r--r--facetracknoir/tracker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index 38b70199..c0fe4eef 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -70,7 +70,7 @@ void Tracker::run() {
bool bTracker1Confid = false;
bool bTracker2Confid = false;
- double newpose[6];
+ double newpose[6] = {0};
double last_post_filter[6];
#if defined(_WIN32)
@@ -82,9 +82,6 @@ void Tracker::run() {
if (should_quit)
break;
- for (int i = 0; i < 6; i++)
- newpose[i] = 0;
-
//
// The second tracker serves as 'secondary'. So if an axis is written by the second tracker it CAN be overwritten by the Primary tracker.
// This is enforced by the sequence below.