1
0
Fork 0

Change CAVOK visibility to 9999.0 metres

This should trigger automatic computation by AW.
This commit is contained in:
James Turner 2018-09-29 12:47:29 +01:00
parent a66f0243bf
commit 2d348bd641

View file

@ -44,6 +44,7 @@
#include "fgmetar.hxx"
const double CAVOK_VISIBILITY = 9999.0;
FGMetar::FGMetar(const string& icao) :
SGMetar(icao),
@ -55,10 +56,10 @@ FGMetar::FGMetar(const string& icao) :
// CAVOK: visibility >= 10km; lowest cloud layer >= 5000 ft; any coverage
if (getCAVOK()) {
if (_min_visibility.getVisibility_m() == SGMetarNaN)
_min_visibility.set(12000.0);
_min_visibility.set(CAVOK_VISIBILITY);
if (_max_visibility.getVisibility_m() == SGMetarNaN)
_min_visibility.set(12000.0);
_min_visibility.set(CAVOK_VISIBILITY);
vector<SGMetarCloud> cv = _clouds;;
if (cv.empty()) {