From e90cbeacc3382fed2cb92867a6cf0198aa895471 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 18 Feb 2002 19:33:18 +0000 Subject: [PATCH] Corrected wind, so that properties give the FROM direction for all FDMs, and the --wind option takes the direction *from* which the wind is blowing. --- src/FDM/JSBSim.cxx | 6 +++--- src/Main/options.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FDM/JSBSim.cxx b/src/FDM/JSBSim.cxx index 425109d46..f88072458 100644 --- a/src/FDM/JSBSim.cxx +++ b/src/FDM/JSBSim.cxx @@ -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() << ", " diff --git a/src/Main/options.cxx b/src/Main/options.cxx index e5949e0be..f2c9cbb5d 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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; -- 2.39.5