]> git.mxchange.org Git - flightgear.git/commitdiff
Corrected wind, so that properties give the FROM direction for all
authordavid <david>
Mon, 18 Feb 2002 19:33:18 +0000 (19:33 +0000)
committerdavid <david>
Mon, 18 Feb 2002 19:33:18 +0000 (19:33 +0000)
FDMs, and the --wind option takes the direction *from* which the wind
is blowing.

src/FDM/JSBSim.cxx
src/Main/options.cxx

index 425109d46b1da773ab5664ed715a9e0e9481cddc..f880724584a1f027deee930549582231366500a7 100644 (file)
@@ -326,9 +326,9 @@ bool FGJSBsim::copy_to_JSBsim() {
     Atmosphere->SetExTemperature(get_Static_temperature());
     Atmosphere->SetExPressure(get_Static_pressure());
     Atmosphere->SetExDensity(get_Density());
-    Atmosphere->SetWindNED(get_V_north_airmass(),
-                           get_V_east_airmass(),
-                           get_V_down_airmass());
+    Atmosphere->SetWindNED(get_V_north_airmass() * -1.0,
+                           get_V_east_airmass() * -1.0,
+                           get_V_down_airmass() * -1.0);
 //    SG_LOG(SG_FLIGHT,SG_INFO, "Wind NED: "
 //                  << get_V_north_airmass() << ", "
 //                  << get_V_east_airmass()  << ", "
index e5949e0be57a794384166e361d57670eb993150c..f2c9cbb5d6c7b99c3b0d9d9d0fd4e41529744c47 100644 (file)
@@ -904,7 +904,7 @@ parse_option (const string& arg)
 
         // convert to fps
        speed *= SG_NM_TO_METER * SG_METER_TO_FEET * (1.0/3600);
-       // dir += 180;
+       dir += 180;
        if (dir >= 360)
          dir -= 360;
        dir *= SGD_DEGREES_TO_RADIANS;