diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 08:08:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 08:08:34 +0200 |
commit | 40786632433e0e8fe887cee243721edbdef5e8c3 (patch) | |
tree | 1f0cf50f702543a52532b2865ca39b36acef4015 | |
parent | a3b43ff980d0cfca58d32da7e7a26253890e98ed (diff) |
Inverted axes didn't survive refactor either
-rw-r--r-- | facetracknoir/facetracknoir.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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();
|