[FSD] Send correct pilot rating, use threadsafe getters in some places

The thread safety is still premature for the FSD client class.
However, most likely no critical as those values have to be preset and never change.
This commit is contained in:
Klaus Basan
2020-04-17 11:52:59 +02:00
committed by Mat Sutcliffe
parent 000d0da92a
commit 388138203e
3 changed files with 38 additions and 22 deletions

View File

@@ -38,17 +38,17 @@ namespace BlackCore
//! Properties @{
BlackMisc::Aviation::CTransponder::TransponderMode m_transponderMode = BlackMisc::Aviation::CTransponder::StateStandby;
int m_transponderCode = 0;
PilotRating m_rating = PilotRating::Unknown;
double m_latitude = 0.0;
double m_longitude = 0.0;
int m_altitudeTrue = 0.0;
int m_transponderCode = 0;
PilotRating m_rating = PilotRating::Unknown;
double m_latitude = 0.0;
double m_longitude = 0.0;
int m_altitudeTrue = 0.0;
int m_altitudePressure = 0.0;
int m_groundSpeed = 0;
double m_pitch = 0.0;
double m_bank = 0.0;
double m_heading = 0.0;
bool m_onGround = false;
int m_groundSpeed = 0;
double m_pitch = 0.0;
double m_bank = 0.0;
double m_heading = 0.0;
bool m_onGround = false;
//! @}
private: