]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UIUCModel/uiuc_controlInput.cpp
Port over remaining Point3D usage to the more type and unit safe SG* classes.
[flightgear.git] / src / FDM / UIUCModel / uiuc_controlInput.cpp
index 40a89f27ea945ce96e3049435033ed4298124a78..b18a77c4e395663b2a7af14790f0dbb27dff81ad 100644 (file)
@@ -65,8 +65,7 @@
 
  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA or view http://www.gnu.org/copyleft/gpl.html.
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 **********************************************************************/
 
@@ -74,7 +73,7 @@
 
 #include "uiuc_controlInput.h"
 
-#include STL_IOSTREAM
+#include <iostream>
 
 void uiuc_controlInput()
 {
@@ -177,6 +176,21 @@ void uiuc_controlInput()
                                  time);
         }
     }
+
+  if (flap_pos_input)
+    {
+      double flap_pos_input_endTime = flap_pos_input_timeArray[flap_pos_input_ntime];
+      if (Simtime >= flap_pos_input_startTime && 
+          Simtime <= (flap_pos_input_startTime + flap_pos_input_endTime))
+        {
+          double time = Simtime - flap_pos_input_startTime;
+          flap_pos = uiuc_1Dinterpolation(flap_pos_input_timeArray,
+                                         flap_pos_input_dfArray,
+                                         flap_pos_input_ntime,
+                                         time);
+        }
+    }
+
   return;
 }