mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
[GFS] Use Pressure at MSL instead of surface
Pressure at surface level was the wrong value. All barometers and altimeters use pressure reduced to mean sea level. Reading that value from GFS instead returns much more reasonable values. ref T537
This commit is contained in:
committed by
Mat Sutcliffe
parent
d50811c941
commit
9d1299741e
@@ -290,7 +290,7 @@ namespace BlackSimPlugin
|
||||
NewPress press;
|
||||
press.Drift = 0;
|
||||
// Pressure is measured in: 16 x mb
|
||||
press.Pressure = static_cast<ushort>(gridPoint.getSurfacePressure().value(CPressureUnit::mbar()) * 16);
|
||||
press.Pressure = static_cast<ushort>(gridPoint.getPressureAtMsl().value(CPressureUnit::mbar()) * 16);
|
||||
nw.Press = press;
|
||||
|
||||
// writing will take place in
|
||||
|
||||
Reference in New Issue
Block a user