mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T610, support for XPlane COM volume and receive/transmit
* proxy and * DBus service functions
This commit is contained in:
committed by
Mat Sutcliffe
parent
62f5ddab99
commit
d1fac2e1a4
@@ -75,17 +75,23 @@ namespace BlackSimPlugin
|
||||
QString aircraftModelPath; //!< Aircraft model path
|
||||
QString aircraftIcaoCode; //!< Aircraft ICAO code
|
||||
double latitudeDeg; //!< Longitude [deg]
|
||||
double longitudeDeg; //!< Latitude [deg]
|
||||
double altitudeM; //!< Altitude [m]
|
||||
double longitudeDeg; //!< Latitude [deg]
|
||||
double altitudeM; //!< Altitude [m]
|
||||
double groundspeedMs; //!< Ground speed [m/s]
|
||||
double pitchDeg; //!< Pitch [deg]
|
||||
double rollDeg; //!< Roll [deg]
|
||||
double rollDeg; //!< Roll [deg]
|
||||
double trueHeadingDeg; //!< True heading [deg]
|
||||
bool onGroundAll; //!< All wheels on ground?
|
||||
int com1ActiveKhz; //!< COM1 active [kHz]
|
||||
int com1ActiveKhz; //!< COM1 active [kHz]
|
||||
int com1StandbyKhz; //!< COM1 standby [kHz]
|
||||
int com2ActiveKhz; //!< COM2 active [kHz]
|
||||
bool isCom1Receiving; //!< COM1 receiving
|
||||
bool isCom1Transmitting; //!< COM1 transmittings
|
||||
double com1Volume; //!< COM1 volume 0..1
|
||||
int com2ActiveKhz; //!< COM2 active [kHz]
|
||||
int com2StandbyKhz; //!< COM2 standby [kHz]
|
||||
bool isCom2Receiving; //!< COM2 receiving
|
||||
bool isCom2Transmitting; //!< COM2 transmittings
|
||||
double com2Volume; //!< COM2 volume 0..1
|
||||
int xpdrCode; //!< Transpondder code
|
||||
int xpdrMode; //!< Transponder mode (off=0,stdby=1,on=2,test=3)
|
||||
bool xpdrIdent; //!< Is transponder in ident?
|
||||
@@ -95,7 +101,7 @@ namespace BlackSimPlugin
|
||||
bool strobeLightsOn; //!< Strobe lights on?
|
||||
bool taxiLightsOn; //!< Taxi lights on?
|
||||
double flapsReployRatio; //!< Flaps deployment ratio [%]
|
||||
double gearReployRatio; //!< Gear deployment ratio [%]
|
||||
double gearReployRatio; //!< Gear deployment ratio [%]
|
||||
QList<double> enginesN1Percentage; //!< N1 per engine [%]
|
||||
double speedBrakeRatio; //!< Speed break ratio [%]
|
||||
double seaLevelPressureInHg; //!< Sea level pressure [inhg]
|
||||
@@ -257,10 +263,11 @@ namespace BlackSimPlugin
|
||||
//! Reset the XPlane data
|
||||
void resetXPlaneData()
|
||||
{
|
||||
m_xplaneData = { "", "", 0, 0, 0, 0, 0, 0, 0, false, 122800, 122800, 122800, 122800, 2000, 0, false, false, false, false,
|
||||
m_xplaneData = { "", "", 0, 0, 0, 0, 0, 0, 0, false,
|
||||
122800, 122800, true, true, 1.0, 122800, 122800, true, true, 1.0,
|
||||
2000, 0, false, false, false, false,
|
||||
false, false, 0, 0, {}, 0.0, 0.0
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -314,11 +314,42 @@ namespace BlackSimPlugin
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom1StandbyKhz"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getCom1StandbyKhzAsync(int *o_com1Standby)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getCom1StandbyKhz"), setterCallback(o_com1Standby));
|
||||
}
|
||||
|
||||
bool CXSwiftBusServiceProxy::isCom1Receiving() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("isCom1Receiving"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::isCom1ReceivingAsync(bool *o_com1Rec)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("isCom1Receiving"), setterCallback(o_com1Rec));
|
||||
}
|
||||
|
||||
bool CXSwiftBusServiceProxy::isCom1Transmitting() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("isCom1Transmitting"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::isCom1TransmittingAsync(bool *o_com1Tx)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("isCom1Transmitting"), setterCallback(o_com1Tx));
|
||||
}
|
||||
|
||||
double CXSwiftBusServiceProxy::getCom1Volume() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<double>(QLatin1String("getCom1Volume"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getCom1VolumeAsync(double *o_com1Volume)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getCom1Volume"), setterCallback(o_com1Volume));
|
||||
}
|
||||
|
||||
int CXSwiftBusServiceProxy::getCom2ActiveKhz() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getCom2ActiveKhz"));
|
||||
@@ -337,6 +368,36 @@ namespace BlackSimPlugin
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getCom2StandbyKhz"), setterCallback(o_com2Standby));
|
||||
}
|
||||
|
||||
bool CXSwiftBusServiceProxy::isCom2Receiving() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("isCom2Receiving"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::isCom2ReceivingAsync(bool *o_com2Rec)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("isCom2Receiving"), setterCallback(o_com2Rec));
|
||||
}
|
||||
|
||||
bool CXSwiftBusServiceProxy::isCom2Transmitting() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<bool>(QLatin1String("isCom2Transmitting"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::isCom2TransmittingAsync(bool *o_com2Tx)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("isCom2Transmitting"), setterCallback(o_com2Tx));
|
||||
}
|
||||
|
||||
double CXSwiftBusServiceProxy::getCom2Volume() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<double>(QLatin1String("getCom2Volume"));
|
||||
}
|
||||
|
||||
void CXSwiftBusServiceProxy::getCom2VolumeAsync(double *o_com2Volume)
|
||||
{
|
||||
m_dbusInterface->callDBusAsync(QLatin1String("getCom2Volume"), setterCallback(o_com2Volume));
|
||||
}
|
||||
|
||||
int CXSwiftBusServiceProxy::getTransponderCode() const
|
||||
{
|
||||
return m_dbusInterface->callDBusRet<int>(QLatin1String("getTransponderCode"));
|
||||
|
||||
@@ -271,6 +271,24 @@ namespace BlackSimPlugin
|
||||
void getCom1StandbyKhzAsync(int *o_com1Standby);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::isCom1Receiving
|
||||
//! @{
|
||||
bool isCom1Receiving() const;
|
||||
void isCom1ReceivingAsync(bool *o_com1Rec);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::isCom1Transmitting
|
||||
//! @{
|
||||
bool isCom1Transmitting() const;
|
||||
void isCom1TransmittingAsync(bool *o_com1Tx);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getCom1Volume
|
||||
//! @{
|
||||
double getCom1Volume() const;
|
||||
void getCom1VolumeAsync(double *o_com1Volume);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getCom2ActiveKhz
|
||||
//! @{
|
||||
int getCom2ActiveKhz() const;
|
||||
@@ -283,6 +301,24 @@ namespace BlackSimPlugin
|
||||
void getCom2StandbyKhzAsync(int *o_com2Standby);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::isCom2Receiving
|
||||
//! @{
|
||||
bool isCom2Receiving() const;
|
||||
void isCom2ReceivingAsync(bool *o_com2Rec);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::isCom2Transmitting
|
||||
//! @{
|
||||
bool isCom2Transmitting() const;
|
||||
void isCom2TransmittingAsync(bool *o_com2Tx);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getCom2Volume
|
||||
//! @{
|
||||
double getCom2Volume() const;
|
||||
void getCom2VolumeAsync(double *o_com2Volume);
|
||||
//! @}
|
||||
|
||||
//! \copydoc XSwiftBus::CService::getTransponderCode
|
||||
//! @{
|
||||
int getTransponderCode() const;
|
||||
|
||||
Reference in New Issue
Block a user