]> git.mxchange.org Git - flightgear.git/commit
Fix incorrect QNH in spoken ATIS when using live weather fetch
authorRichard Senior <richard.j.senior@gmail.com>
Tue, 26 Apr 2016 09:30:15 +0000 (10:30 +0100)
committerRichard Senior <richard.j.senior@gmail.com>
Tue, 26 Apr 2016 09:52:29 +0000 (10:52 +0100)
commit29fe6569c41de08163572567ac01988e210cb1cf
treeafc47a17f2f8aba9c291faefb2cf3683b0b29f15
parentf825bb4f3cf693773ce1928799e4b0c289e1b02d
Fix incorrect QNH in spoken ATIS when using live weather fetch

When using live weather fetch, the QNH should be obtained from
environment/metar/pressure-inhg.

See: http://sourceforge.net/p/flightgear/mailman/message/35037125

Add new method getQnhInHg to ATISInformationProvider and its implementations
to avoid rounding errors converting from hPa back to inches in ATIS reports.

The CurrentWeatherATISInformationProvider (used when live weather fetch is
not in use) continues to use the property environment/pressure-sea-level-inhg.
This produces the incorrect QNH at airports significantly above sea level
but this needs fixing elsewhere to calculate the correct QNH.
src/ATC/ATISEncoder.cxx
src/ATC/ATISEncoder.hxx
src/ATC/CurrentWeatherATISInformationProvider.cxx
src/ATC/CurrentWeatherATISInformationProvider.hxx
src/ATC/MetarPropertiesATISInformationProvider.cxx
src/ATC/MetarPropertiesATISInformationProvider.hxx