summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2012-08-27 13:40:13 +0000
committerWim Vriend <facetracknoir@gmail.com>2012-08-27 13:40:13 +0000
commit863efe5f6f51fb0fd9dedec38527a11e8510e0f2 (patch)
treeeafb0a4e99cc0a66466b80693ddad753e32fa47d
parent429be5148cbeacbbb84469ac59a22e9cb8322440 (diff)
For update v170 alpha 2
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@121 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r--FTNoIR_Protocol_FT/FTNoIR_FTcontrols.ui33
-rw-r--r--FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp6
-rw-r--r--FTNoIR_Protocol_SC/FTNoIR_SCcontrols.ui16
-rw-r--r--FaceTrackNoIR.sln12
-rw-r--r--FaceTrackNoIR/FTNoIR_Curves.ui2
-rw-r--r--FaceTrackNoIR/FaceTrackNoIR.cpp2
-rw-r--r--FaceTrackNoIR/tracker.cpp27
7 files changed, 44 insertions, 54 deletions
diff --git a/FTNoIR_Protocol_FT/FTNoIR_FTcontrols.ui b/FTNoIR_Protocol_FT/FTNoIR_FTcontrols.ui
index 89b5d712..29cba42b 100644
--- a/FTNoIR_Protocol_FT/FTNoIR_FTcontrols.ui
+++ b/FTNoIR_Protocol_FT/FTNoIR_FTcontrols.ui
@@ -7,11 +7,11 @@
<x>0</x>
<y>0</y>
<width>411</width>
- <height>157</height>
+ <height>112</height>
</rect>
</property>
<property name="windowTitle">
- <string>FTIR settings FaceTrackNoIR</string>
+ <string>FreeTrack settings FaceTrackNoIR</string>
</property>
<property name="windowIcon">
<iconset>
@@ -39,16 +39,6 @@
</property>
</spacer>
</item>
- <item>
- <widget class="QCheckBox" name="chkTIRViews">
- <property name="layoutDirection">
- <enum>Qt::RightToLeft</enum>
- </property>
- <property name="text">
- <string>Use TIRViews</string>
- </property>
- </widget>
- </item>
</layout>
</item>
<item>
@@ -69,24 +59,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
- <string>TIRViews is only required for some older games (like CFS3).</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label">
- <property name="text">
- <string>For it to work, TIRViews.dll must be placed in the FaceTrackNoIR program folder.</string>
- </property>
- <property name="wordWrap">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_3">
- <property name="text">
- <string>If the checkbox is disabled, the DLL was not found.</string>
+ <string>There are no settings necessary for the FreeTrack protocol.</string>
</property>
</widget>
</item>
diff --git a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp
index e6100956..d51072e5 100644
--- a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp
+++ b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.cpp
@@ -356,7 +356,7 @@ QWidget()
// Connect Qt signals to member-functions
connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK()));
connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel()));
- connect(ui.chkTIRViews, SIGNAL(stateChanged(int)), this, SLOT(chkTIRViewsChanged()));
+// connect(ui.chkTIRViews, SIGNAL(stateChanged(int)), this, SLOT(chkTIRViewsChanged()));
// Load the settings from the current .INI-file
loadSettings();
@@ -445,7 +445,7 @@ void FTControls::loadSettings() {
qDebug() << "loadSettings says: iniFile = " << currentFile;
iniFile.beginGroup ( "FT" );
- ui.chkTIRViews->setChecked (iniFile.value ( "useTIRViews", 0 ).toBool());
+// ui.chkTIRViews->setChecked (iniFile.value ( "useTIRViews", 0 ).toBool());
iniFile.endGroup ();
settingsDirty = false;
@@ -461,7 +461,7 @@ void FTControls::save() {
QSettings iniFile( currentFile, QSettings::IniFormat ); // Application settings (in INI-file)
iniFile.beginGroup ( "FT" );
- iniFile.setValue ( "useTIRViews", ui.chkTIRViews->isChecked() );
+// iniFile.setValue ( "useTIRViews", ui.chkTIRViews->isChecked() );
iniFile.endGroup ();
settingsDirty = false;
diff --git a/FTNoIR_Protocol_SC/FTNoIR_SCcontrols.ui b/FTNoIR_Protocol_SC/FTNoIR_SCcontrols.ui
index 82cd40f2..3e7a5062 100644
--- a/FTNoIR_Protocol_SC/FTNoIR_SCcontrols.ui
+++ b/FTNoIR_Protocol_SC/FTNoIR_SCcontrols.ui
@@ -7,11 +7,11 @@
<x>0</x>
<y>0</y>
<width>346</width>
- <height>180</height>
+ <height>104</height>
</rect>
</property>
<property name="windowTitle">
- <string>PPJoy settings FaceTrackNoIR</string>
+ <string>SimConnect settings FaceTrackNoIR</string>
</property>
<property name="windowIcon">
<iconset>
@@ -35,7 +35,7 @@
</sizepolicy>
</property>
<property name="text">
- <string>Virtual Joystick number:</string>
+ <string>There are no setting necessary for SimConnect</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
@@ -45,16 +45,6 @@
</property>
</widget>
</item>
- <item>
- <widget class="QComboBox" name="cbxSelectPPJoyNumber">
- <property name="toolTip">
- <string>Select Number</string>
- </property>
- <property name="insertPolicy">
- <enum>QComboBox::InsertAlphabetically</enum>
- </property>
- </widget>
- </item>
</layout>
</item>
<item>
diff --git a/FaceTrackNoIR.sln b/FaceTrackNoIR.sln
index 27f45ef1..c4ac19ec 100644
--- a/FaceTrackNoIR.sln
+++ b/FaceTrackNoIR.sln
@@ -41,6 +41,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FTNoIR_Filter_Accela", "FTN
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FTNoIR_Protocol_VJOY", "FTNoIR_Protocol_VJOY\FTNoIR_Protocol_VJOY.vcproj", "{07E729F2-57E5-408E-A009-3501B38A621A}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FTNoIR_Tracker_Toradex", "FTNoIR_Tracker_Toradex\FTNoIR_Tracker_Toradex.vcproj", "{07B81A72-65AE-4ACF-8734-8519E8604CEC}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FTNoIR_Tracker_Arduino", "FTNoIR_Tracker_Arduino\FTNoIR_Tracker_Arduino.vcproj", "{26073935-6C44-49FD-A986-DD91FE727306}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@@ -122,6 +126,14 @@ Global
{07E729F2-57E5-408E-A009-3501B38A621A}.Debug|Win32.Build.0 = Debug|Win32
{07E729F2-57E5-408E-A009-3501B38A621A}.Release|Win32.ActiveCfg = Release|Win32
{07E729F2-57E5-408E-A009-3501B38A621A}.Release|Win32.Build.0 = Release|Win32
+ {07B81A72-65AE-4ACF-8734-8519E8604CEC}.Debug|Win32.ActiveCfg = Debug|Win32
+ {07B81A72-65AE-4ACF-8734-8519E8604CEC}.Debug|Win32.Build.0 = Debug|Win32
+ {07B81A72-65AE-4ACF-8734-8519E8604CEC}.Release|Win32.ActiveCfg = Release|Win32
+ {07B81A72-65AE-4ACF-8734-8519E8604CEC}.Release|Win32.Build.0 = Release|Win32
+ {26073935-6C44-49FD-A986-DD91FE727306}.Debug|Win32.ActiveCfg = Debug|Win32
+ {26073935-6C44-49FD-A986-DD91FE727306}.Debug|Win32.Build.0 = Debug|Win32
+ {26073935-6C44-49FD-A986-DD91FE727306}.Release|Win32.ActiveCfg = Release|Win32
+ {26073935-6C44-49FD-A986-DD91FE727306}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/FaceTrackNoIR/FTNoIR_Curves.ui b/FaceTrackNoIR/FTNoIR_Curves.ui
index c241cc42..fbe96b1c 100644
--- a/FaceTrackNoIR/FTNoIR_Curves.ui
+++ b/FaceTrackNoIR/FTNoIR_Curves.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>901</width>
- <height>824</height>
+ <height>585</height>
</rect>
</property>
<property name="windowTitle">
diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp
index da70816c..6ed3a64a 100644
--- a/FaceTrackNoIR/FaceTrackNoIR.cpp
+++ b/FaceTrackNoIR/FaceTrackNoIR.cpp
@@ -455,7 +455,7 @@ void FaceTrackNoIR::loadSettings() {
// Put the filename in the window-title.
//
QFileInfo pathInfo ( currentFile );
- setWindowTitle ( "FaceTrackNoIR (1.7) - " + pathInfo.fileName() );
+ setWindowTitle ( "FaceTrackNoIR (1.7 alpha 2) - " + pathInfo.fileName() );
//
// Get a List of all the INI-files in the (currently active) Settings-folder.
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp
index 31fcff04..74fa2df5 100644
--- a/FaceTrackNoIR/tracker.cpp
+++ b/FaceTrackNoIR/tracker.cpp
@@ -23,6 +23,7 @@
*********************************************************************************/
/*
Modifications (last one on top):
+ 20120827 - WVR: Signal tracking = false to Curve-widget(s) when quitting run(). Also when Alternative Pitch curve is used.
20120805 - WVR: The FunctionConfig-widget is used to configure the Curves. It was tweaked some more, because the Accela filter now also
uses the Curve(s). ToDo: make the ranges configurable by the user. Development on the Toradex IMU makes us realize, that
a fixed input-range may not be so handy after all..
@@ -359,7 +360,15 @@ T6DOF gameoutput_camera(0,0,0,0,0,0);
// Set event
::SetEvent(m_WaitThread);
- qDebug() << "Tracker::run terminated run()";
+ qDebug() << "Tracker::run terminated run()";
+ X.curvePtr->setTrackingActive( false );
+ Y.curvePtr->setTrackingActive( false );
+ Z.curvePtr->setTrackingActive( false );
+ Yaw.curvePtr->setTrackingActive( false );
+ Pitch.curvePtr->setTrackingActive( false );
+ Pitch.curvePtrAlt->setTrackingActive( false );
+ Roll.curvePtr->setTrackingActive( false );
+
return;
}
@@ -507,9 +516,17 @@ T6DOF gameoutput_camera(0,0,0,0,0,0);
output_camera.position.x = X.invert * X.curvePtr->getValue(new_camera.position.x);
output_camera.position.y = Y.invert * Y.curvePtr->getValue(new_camera.position.y);
output_camera.position.z = Z.invert * Z.curvePtr->getValue(new_camera.position.z);
- int altp = new_camera.position.pitch < 0;
- output_camera.position.pitch = Pitch.invert * (altp ? Pitch.curvePtrAlt : Pitch.curvePtr)->getValue(new_camera.position.pitch);
- ///output_camera.position.pitch = Pitch.invert * Pitch.curvePtr->getValue(new_camera.position.pitch);
+ bool altp = new_camera.position.pitch < 0;
+ if (altp) {
+ output_camera.position.pitch = Pitch.invert * Pitch.curvePtrAlt->getValue(new_camera.position.pitch);
+ Pitch.curvePtr->setTrackingActive( false );
+ Pitch.curvePtrAlt->setTrackingActive( true );
+ }
+ else {
+ output_camera.position.pitch = Pitch.invert * Pitch.curvePtr->getValue(new_camera.position.pitch);
+ Pitch.curvePtr->setTrackingActive( true );
+ Pitch.curvePtrAlt->setTrackingActive( false );
+ }
output_camera.position.yaw = Yaw.invert * Yaw.curvePtr->getValue(new_camera.position.yaw);
output_camera.position.roll = Roll.invert * Roll.curvePtr->getValue(new_camera.position.roll);
@@ -518,8 +535,6 @@ T6DOF gameoutput_camera(0,0,0,0,0,0);
Y.curvePtr->setTrackingActive( true );
Z.curvePtr->setTrackingActive( true );
Yaw.curvePtr->setTrackingActive( true );
- Pitch.curvePtr->setTrackingActive( true );
- Pitch.curvePtrAlt->setTrackingActive( true );
Roll.curvePtr->setTrackingActive( true );
//