mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Issue #113 Add flag for receiving SIMDATA packet in CFsdSetup
This commit is contained in:
@@ -54,7 +54,7 @@ namespace BlackMisc
|
||||
);
|
||||
}
|
||||
|
||||
void CFsdSetup::setSendReceiveDetails(bool partsSend, bool partsReceive, bool gndSend, bool gndReceive, bool interimSend, bool interimReceive)
|
||||
void CFsdSetup::setSendReceiveDetails(bool partsSend, bool partsReceive, bool gndSend, bool gndReceive, bool interimSend, bool interimReceive, bool euroscopeSimDataReceive)
|
||||
{
|
||||
SendReceiveDetails s = Nothing;
|
||||
if (partsSend) { s |= SendAircraftParts; }
|
||||
@@ -63,6 +63,7 @@ namespace BlackMisc
|
||||
if (gndReceive) { s |= ReceiveGndFlag; }
|
||||
if (interimSend) { s |= SendInterimPositions; }
|
||||
if (interimReceive) { s |= ReceiveInterimPositions; }
|
||||
if (euroscopeSimDataReceive) { s |= ReceiveEuroscopeSimData; }
|
||||
this->setSendReceiveDetails(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace BlackMisc
|
||||
ReceiveInterimPositions = 1 << 4, //!< fast position updates in
|
||||
ReceiveGndFlag = 1 << 5, //!< gnd.flag in (position)
|
||||
Force3LetterAirlineICAO = 1 << 6, //!< force 3 letter airline ICAO code
|
||||
// bit 7 reserved for VISUPDATE
|
||||
ReceiveEuroscopeSimData = 1 << 8, //!< euroscope SIMDATA in
|
||||
AllSending = SendAircraftParts | SendInterimPositions | SendGndFlag, //!< all out
|
||||
AllReceive = ReceiveAircraftParts | ReceiveInterimPositions | ReceiveGndFlag, //!< all in
|
||||
All = AllReceive | AllSending, //!< all
|
||||
@@ -93,7 +95,7 @@ namespace BlackMisc
|
||||
void removeSendReceiveDetails(SendReceiveDetails sendReceive) { m_sendReceive &= ~sendReceive; }
|
||||
|
||||
//! Set send / receive details
|
||||
void setSendReceiveDetails(bool partsSend, bool partsReceive, bool gndSend, bool gndReceive, bool interimSend, bool interimReceive);
|
||||
void setSendReceiveDetails(bool partsSend, bool partsReceive, bool gndSend, bool gndReceive, bool interimSend, bool interimReceive, bool euroscopeSimDataReceive);
|
||||
|
||||
//! FSD setup flags
|
||||
//! @{
|
||||
@@ -104,6 +106,7 @@ namespace BlackMisc
|
||||
bool receiveAircraftParts() const { return this->getSendReceiveDetails().testFlag(ReceiveAircraftParts); }
|
||||
bool receiveGndFlag() const { return this->getSendReceiveDetails().testFlag(ReceiveGndFlag); }
|
||||
bool receiveInterimPositions() const { return this->getSendReceiveDetails().testFlag(ReceiveInterimPositions); }
|
||||
bool receiveEuroscopeSimData() const { return this->getSendReceiveDetails().testFlag(ReceiveEuroscopeSimData); }
|
||||
//! @}
|
||||
|
||||
//! Airline codes
|
||||
|
||||
Reference in New Issue
Block a user