mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
f80e093a0a
commit
b408c8ffed
@@ -96,7 +96,7 @@ namespace BlackMisc
|
|||||||
//! Set aircraft parts and mark as synchronized
|
//! Set aircraft parts and mark as synchronized
|
||||||
int setAircraftPartsSynchronized(const Aviation::CCallsign &callsign, const Aviation::CAircraftParts &parts, bool onlyFirst = true);
|
int setAircraftPartsSynchronized(const Aviation::CCallsign &callsign, const Aviation::CAircraftParts &parts, bool onlyFirst = true);
|
||||||
|
|
||||||
//! Set aircraft parts
|
//! Set aircraft situation
|
||||||
int setAircraftSituation(const Aviation::CCallsign &callsign, const Aviation::CAircraftSituation &situation, bool onlyFirst = true);
|
int setAircraftSituation(const Aviation::CCallsign &callsign, const Aviation::CAircraftSituation &situation, bool onlyFirst = true);
|
||||||
|
|
||||||
//! Set ground elevation
|
//! Set ground elevation
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace BlackSimPlugin
|
|||||||
CLobbyClient(QObject *parent = nullptr);
|
CLobbyClient(QObject *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CLobbyClient();
|
virtual ~CLobbyClient() override;
|
||||||
|
|
||||||
//! Initialize DirectPlay
|
//! Initialize DirectPlay
|
||||||
HRESULT initDirectPlay();
|
HRESULT initDirectPlay();
|
||||||
|
|||||||
@@ -40,8 +40,6 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
CAircraftSituation aircraftSituationFromFS9(const MPPositionVelocity &positionVelocity)
|
CAircraftSituation aircraftSituationFromFS9(const MPPositionVelocity &positionVelocity)
|
||||||
{
|
{
|
||||||
CAircraftSituation situation;
|
|
||||||
|
|
||||||
double dHigh = positionVelocity.lat_i;
|
double dHigh = positionVelocity.lat_i;
|
||||||
double dLow = positionVelocity.lat_f;
|
double dLow = positionVelocity.lat_f;
|
||||||
|
|
||||||
@@ -78,6 +76,7 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
dLow = dLow / 65536.0;
|
dLow = dLow / 65536.0;
|
||||||
|
|
||||||
|
CAircraftSituation situation;
|
||||||
situation.setPosition(position);
|
situation.setPosition(position);
|
||||||
situation.setAltitude(CAltitude(dHigh + dLow, CAltitude::MeanSeaLevel, CLengthUnit::m()));
|
situation.setAltitude(CAltitude(dHigh + dLow, CAltitude::MeanSeaLevel, CLengthUnit::m()));
|
||||||
const double groundSpeed = positionVelocity.ground_velocity / 65536.0;
|
const double groundSpeed = positionVelocity.ground_velocity / 65536.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user