]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsimIC.cxx
Solve for the elevator control input during approach. It turns out that
[flightgear.git] / src / FDM / LaRCsimIC.cxx
index 69af5ecdd031c35e749c86d06d4c7db497d8e630..4e689fc2542b1577e9265395efa3b66c133765b4 100644 (file)
@@ -28,7 +28,7 @@
 #include <simgear/compiler.h>
 
 #include <math.h>
-#include <iostream>
+#include STL_IOSTREAM
 
 #include "FDM/LaRCsimIC.hxx"
 #include <FDM/LaRCsim/ls_cockpit.h>
 #include <FDM/LaRCsim/ls_constants.h>
 #include <FDM/LaRCsim/ls_geodesy.h>
 
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
 SG_USING_STD(cout);
 SG_USING_STD(endl);
+#endif
 
 
 LaRCsimIC::LaRCsimIC(void) {
@@ -97,15 +99,11 @@ void LaRCsimIC::SetClimbRateFpmIC( SCALAR tt) {
 
 void LaRCsimIC::SetClimbRateFpsIC( SCALAR tt) {
   vtg=vt+vw;
-  cout << "vtg: " << vtg << endl;
   if(vtg > 0.1) {
     hdot = tt - vdownwind;
     gamma=asin(hdot/vtg);
     getTheta();
     vdown=-1*hdot;
-    cout << "hdot: " << hdot << endl;
-    cout << "gamma: " << gamma*RAD_TO_DEG << endl;
-    cout << "vdown: " << vdown << endl;
   }
 }
 
@@ -114,7 +112,6 @@ void LaRCsimIC::SetFlightPathAngleRadIC( SCALAR tt) {
   getTheta();
   vtg=vt+vw;
   hdot=vtg*sin(tt);
-  cout << "hdot: " << hdot << endl;
   vdown=-1*hdot;
 }