a couple of minor modifications, including hardwiring temperature again
(the global temperature property returns that at the aircrafts altitude) and adding "information" to the airport name to avoid having to store it in the default.atis file 1200 odd times.
This commit is contained in:
parent
e35fffa035
commit
2bc1e7d365
1 changed files with 5 additions and 1 deletions
|
@ -115,6 +115,8 @@ string FGATIS::get_transmission() {
|
|||
|
||||
// Start with the transmitted station name.
|
||||
transmission += name;
|
||||
// Add "Information"
|
||||
transmission += " Information";
|
||||
|
||||
//cout << "In atis.cxx, time_str = " << time_str << '\n';
|
||||
// Add the recording identifier
|
||||
|
@ -133,7 +135,9 @@ string FGATIS::get_transmission() {
|
|||
transmission = transmission + " Weather " + time_str.substr(0,3) + "00 hours Zulu";
|
||||
|
||||
// Get the temperature
|
||||
temperature = fgGetDouble("/environment/weather/temperature-K");
|
||||
// (Hardwire it for now since the global property returns the temperature at the current altitude
|
||||
//temperature = fgGetDouble("/environment/weather/temperature-K");
|
||||
temperature = 15 + 273.15;
|
||||
sprintf(buf, "%i", int(temperature - 273.15));
|
||||
transmission += " Temperature ";
|
||||
transmission += buf;
|
||||
|
|
Loading…
Reference in a new issue