]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGTrimAxis.cpp
Encapsulate the interpolstion version of FGEnvironment and fix some bugs
[flightgear.git] / src / FDM / JSBSim / FGTrimAxis.cpp
index e41f7af3c3c59e42cd392f3e2f91c7dff8503ec3..e95d1c54bfc0e564f268172178d6e592be3d2643 100644 (file)
@@ -337,8 +337,10 @@ bool FGTrimAxis::initTheta(void) {
          i++;   
   }                    
   //cout << i << endl;
-  cout << "    Initial Theta: " << fdmex->GetRotation()->Gettht()*radtodeg << endl;
-  cout << "    Used gear unit " << iAft << " as aft and " << iForward << " as forward" << endl;
+  if (debug_lvl > 0) {
+      cout << "    Initial Theta: " << fdmex->GetRotation()->Gettht()*radtodeg << endl;
+      cout << "    Used gear unit " << iAft << " as aft and " << iForward << " as forward" << endl;
+  }
   control_min=(theta+5)*degtorad;
   control_max=(theta-5)*degtorad;
   fgic->SetAltitudeAGLFtIC(saveAlt);