mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
@@ -128,7 +128,7 @@ namespace BlackSimPlugin
|
||||
{
|
||||
NewVis vis;
|
||||
vis.LowerAlt = visibilityLayer.getBase().value(CLengthUnit::m());
|
||||
vis.UpperAlt = visibilityLayer.getCeiling().value(CLengthUnit::m());
|
||||
vis.UpperAlt = visibilityLayer.getTop().value(CLengthUnit::m());
|
||||
vis.Range = visibilityLayer.getVisibility().value(CLengthUnit::mi()) * 100;
|
||||
nw.Vis = vis;
|
||||
}
|
||||
@@ -179,7 +179,7 @@ namespace BlackSimPlugin
|
||||
default: cloud.Type = 0;
|
||||
}
|
||||
|
||||
cloud.UpperAlt = cloudLayer.getCeiling().value(CLengthUnit::m());
|
||||
cloud.UpperAlt = cloudLayer.getBase().value(CLengthUnit::m());
|
||||
nw.Cloud[nw.nCloudsCtr++] = cloud;
|
||||
}
|
||||
|
||||
|
||||
@@ -544,7 +544,7 @@ namespace BlackSimPlugin
|
||||
for (const auto &cloudLayer : cloudLayers)
|
||||
{
|
||||
int base = cloudLayer.getBase().value(CLengthUnit::m());
|
||||
int top = cloudLayer.getCeiling().value(CLengthUnit::m());
|
||||
int top = cloudLayer.getTop().value(CLengthUnit::m());
|
||||
|
||||
int coverage = 0;
|
||||
switch(cloudLayer.getCoverage())
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace BlackWxPlugin
|
||||
{
|
||||
CCloudLayer cloudLayer;
|
||||
cloudLayer.setBase(CAltitude(cloudLayerIt.value().bottomLevel, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
cloudLayer.setCeiling(CAltitude(cloudLayerIt.value().topLevel, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
cloudLayer.setTop(CAltitude(cloudLayerIt.value().topLevel, CAltitude::MeanSeaLevel, CLengthUnit::ft()));
|
||||
cloudLayer.setCoveragePercent(cloudLayerIt.value().totalCoverage);
|
||||
cloudLayers.insert(cloudLayer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user