]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/YASim/Rotorpart.cpp
Add support for a turbo prop condition lever.
[flightgear.git] / src / FDM / YASim / Rotorpart.cpp
index 4efe6e59ddda61a98f3fcb6f182426d95f2dc8a6..5cc302eed07c84dd5851cb16812535df24bd5694 100644 (file)
@@ -1,3 +1,5 @@
+#include <simgear/debug/logstream.hxx>
+
 #include "Math.hpp"
 #include "Rotorpart.hpp"
 #include <stdio.h>
@@ -246,7 +248,8 @@ float Rotorpart::getrealAlpha(void)
 }
 void Rotorpart::setAlphaoutput(char *text,int i)
 {
-   printf("setAlphaoutput rotorpart [%s] typ %i\n",text,i);
+   SG_LOG(SG_FLIGHT, SG_DEBUG, "setAlphaoutput rotorpart ["
+          << text << "] typ" << i);
 
    strncpy(_alphaoutputbuf[i>0],text,255);
 
@@ -347,7 +350,7 @@ void Rotorpart::calcForce(float* v, float rho, float* out, float* torque)
         
         float fcw;
         if(_c2==0)
-          fcw==0;
+          fcw=0;
         else
           //fcw=vz/_c2*_maxpitchforce*_omega/_omegan;
           fcw=vz*(_c2-1)*_maxpitchforce*_omega/(_omegan*_omegan*_len*_maxpitch);