]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsim/cherokee_aero.c
Updates to the scenery loading infrastructure to make it more flexible,
[flightgear.git] / src / FDM / LaRCsim / cherokee_aero.c
index 19b9b219b581f0c59f65310462e28c6e693b9d02..e74f2e5dc1f01eba28bb8cdcd4cecc30cc9a8b4f 100644 (file)
@@ -61,6 +61,7 @@ This source is not checked in this configuration in any way.
 #include "ls_types.h"
 #include "ls_generic.h"
 #include "ls_cockpit.h"
+#include "ls_constants.h"
 
 
 
@@ -140,7 +141,7 @@ void cherokee_aero()
                Cz = Cz0 + Cza*Alpha + Czat*(Alpha_dot*c/2.0/V) + Czq*(q*c/2.0/V) + Czde * elevator;
                Cm = Cm0 + Cma*Alpha + Cmat*(Alpha_dot*c/2.0/V) + Cmq*(q*c/2.0/V) + Cmde * elevator; 
 
-               Cx = Cx0 - (Cza*Alpha)*(Cza*Alpha)/(M_PI*5.71*0.6);
+               Cx = Cx0 - (Cza*Alpha)*(Cza*Alpha)/(LS_PI*5.71*0.6);
                Cl = Clb*Beta + Clp*(p*b/2.0/V) + Clr*(r*b/2.0/V) + Clda * aileron;
 
                Cy = Cyb*Beta + Cyr*(r*b/2.0/V);