diff options
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-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();
|