Change CAVOK visibility to 9999.0 metres
This should trigger automatic computation by AW.
This commit is contained in:
parent
a66f0243bf
commit
2d348bd641
1 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,7 @@
|
||||||
|
|
||||||
#include "fgmetar.hxx"
|
#include "fgmetar.hxx"
|
||||||
|
|
||||||
|
const double CAVOK_VISIBILITY = 9999.0;
|
||||||
|
|
||||||
FGMetar::FGMetar(const string& icao) :
|
FGMetar::FGMetar(const string& icao) :
|
||||||
SGMetar(icao),
|
SGMetar(icao),
|
||||||
|
@ -55,10 +56,10 @@ FGMetar::FGMetar(const string& icao) :
|
||||||
// CAVOK: visibility >= 10km; lowest cloud layer >= 5000 ft; any coverage
|
// CAVOK: visibility >= 10km; lowest cloud layer >= 5000 ft; any coverage
|
||||||
if (getCAVOK()) {
|
if (getCAVOK()) {
|
||||||
if (_min_visibility.getVisibility_m() == SGMetarNaN)
|
if (_min_visibility.getVisibility_m() == SGMetarNaN)
|
||||||
_min_visibility.set(12000.0);
|
_min_visibility.set(CAVOK_VISIBILITY);
|
||||||
|
|
||||||
if (_max_visibility.getVisibility_m() == SGMetarNaN)
|
if (_max_visibility.getVisibility_m() == SGMetarNaN)
|
||||||
_min_visibility.set(12000.0);
|
_min_visibility.set(CAVOK_VISIBILITY);
|
||||||
|
|
||||||
vector<SGMetarCloud> cv = _clouds;;
|
vector<SGMetarCloud> cv = _clouds;;
|
||||||
if (cv.empty()) {
|
if (cv.empty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue