From 40786632433e0e8fe887cee243721edbdef5e8c3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 13 Apr 2013 08:08:34 +0200 Subject: Inverted axes didn't survive refactor either --- facetracknoir/facetracknoir.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'facetracknoir') diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index 41c456ce..f2e13899 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -759,10 +759,21 @@ void FaceTrackNoIR::startTracker( ) { "rz_alt", }; + static const char* invert_names[] = { + "invertX", + "invertY", + "invertZ", + "invertYaw", + "invertPitch", + "invertRoll" + }; + iniFile.beginGroup("Tracking"); - for (int i = 0; i < 6; i++) + for (int i = 0; i < 6; i++) { GlobalPose->axes[i].altp = iniFile.value(names[i], false).toBool(); + GlobalPose->axes[i].invert = iniFile.value(invert_names[i], false).toBool() ? 1 : -1; + } iniFile.endGroup(); -- cgit v1.2.3