From 9d98966685016addc153c370efd9e1b2c2e88d3f Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 17 Jan 2007 23:38:13 +0000 Subject: [PATCH] Maik JUSTUS: minor fix for bending patch --- src/FDM/YASim/Rotorpart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FDM/YASim/Rotorpart.cpp b/src/FDM/YASim/Rotorpart.cpp index dcf62d9ab..1bd3a7088 100644 --- a/src/FDM/YASim/Rotorpart.cpp +++ b/src/FDM/YASim/Rotorpart.cpp @@ -373,7 +373,7 @@ float Rotorpart::calculateAlpha(float* v_rel_air, float rho, int i,n; for (i=0;i<3;i++) moment[i]=0; - lift_moment=-_mass*_len; //*cos yaw * cos roll + lift_moment=-_mass*_len*9.81; //*cos yaw * cos roll *torque=0;// if((_nextrp==NULL)||(_lastrp==NULL)||(_rotor==NULL)) return 0.0;//not initialized. Can happen during startupt of flightgear @@ -464,7 +464,7 @@ float Rotorpart::calculateAlpha(float* v_rel_air, float rho, //as above, use 1st order approximation //float alpha=Math::atan2(lift_moment,_centripetalforce * _len); float alpha; - alpha=lift_moment/(_centripetalforce * _len - _mass * _len/_alpha0); + alpha=lift_moment/(_centripetalforce * _len - _mass * _len * 9.81 /_alpha0); //centripetalforce is >=0 and _alpha0<-0.01 return (alpha); }