refs #808, adjusted FSUIPC class

This commit is contained in:
Klaus Basan
2016-11-17 04:40:26 +01:00
parent 2163fd9b01
commit c70b1ccb00
2 changed files with 4 additions and 7 deletions

View File

@@ -36,7 +36,6 @@ namespace BlackSimPlugin
{
namespace FsCommon
{
CFsuipc::CFsuipc()
{
startTimer(100);
@@ -67,7 +66,7 @@ namespace BlackSimPlugin
.arg(QLatin1Char(48 + (0x0f & (FSUIPC_Version >> 16))))
.arg((FSUIPC_Version & 0xffff) ? QString(QLatin1Char('a' + (FSUIPC_Version & 0xff) - 1)) : "");
this->m_fsuipcVersion = QString("FSUIPC %1 (%2)").arg(ver).arg(sim);
// CLogMessage(this).info("FSUIPC connected: %1") << this->m_fsuipcVersion;
CLogMessage(this).info("FSUIPC connected: %1") << this->m_fsuipcVersion;
}
else
{

View File

@@ -26,7 +26,6 @@ namespace BlackSimPlugin
Q_OBJECT
public:
//! Constructor
CFsuipc();
@@ -51,6 +50,9 @@ namespace BlackSimPlugin
//! Write weather grid to simulator
bool write(const BlackMisc::Weather::CWeatherGrid &weatherGrid);
//! Get the version
QString getVersion() const { return m_fsuipcVersion; }
//! Read data from FSUIPC
//! \param aircraft object to be updated
//! \param cockpit update cockpit data
@@ -60,9 +62,6 @@ namespace BlackSimPlugin
//!
bool read(BlackMisc::Simulation::CSimulatedAircraft &aircraft, bool cockpit, bool situation, bool aircraftParts);
//! Find out whether we can connect to FSUIPC or not
static bool canConnect();
//! Error messages
static const QStringList &errorMessages()
{
@@ -129,7 +128,6 @@ namespace BlackSimPlugin
//! Integer representing fractional
static double intToFractional(double fractional);
};
}
}