1
0
Fork 0

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.
This commit is contained in:
david 2002-02-18 19:33:18 +00:00
parent 6c978b02f8
commit e90cbeacc3
2 changed files with 4 additions and 4 deletions

View 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() << ", "

View 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;