mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
f80e093a0a
commit
b408c8ffed
@@ -40,8 +40,6 @@ namespace BlackSimPlugin
|
||||
{
|
||||
CAircraftSituation aircraftSituationFromFS9(const MPPositionVelocity &positionVelocity)
|
||||
{
|
||||
CAircraftSituation situation;
|
||||
|
||||
double dHigh = positionVelocity.lat_i;
|
||||
double dLow = positionVelocity.lat_f;
|
||||
|
||||
@@ -78,6 +76,7 @@ namespace BlackSimPlugin
|
||||
|
||||
dLow = dLow / 65536.0;
|
||||
|
||||
CAircraftSituation situation;
|
||||
situation.setPosition(position);
|
||||
situation.setAltitude(CAltitude(dHigh + dLow, CAltitude::MeanSeaLevel, CLengthUnit::m()));
|
||||
const double groundSpeed = positionVelocity.ground_velocity / 65536.0;
|
||||
|
||||
Reference in New Issue
Block a user