1
0
Fork 0

If no wind, active runway is now read-out as the most Westward facing one which is consistent with the rest of FlightGear

This commit is contained in:
daveluff 2003-03-05 21:40:24 +00:00
parent 42527ecf1b
commit 3f15f38d8d

View file

@ -252,6 +252,8 @@ void FGATIS::UpdateTransmission() {
double speed = stationweather.get_wind_speed_kt(); double speed = stationweather.get_wind_speed_kt();
double hdg = stationweather.get_wind_from_heading_deg(); double hdg = stationweather.get_wind_from_heading_deg();
if (speed == 0) { if (speed == 0) {
hdg = 270; // This forces West-facing rwys to be used in no-wind situations
// which is consistent with Flightgear's initial setup.
transmission += " / Winds_light_and_variable"; transmission += " / Winds_light_and_variable";
} else { } else {
// FIXME: get gust factor in somehow // FIXME: get gust factor in somehow