Ref T259, Ref T243 prepared sim.env.provider to request elevations

This commit is contained in:
Klaus Basan
2018-04-03 23:56:31 +02:00
parent cf98c46231
commit 225d05d22f
7 changed files with 54 additions and 13 deletions

View File

@@ -112,6 +112,12 @@ namespace BlackSimPlugin
m_watcher = nullptr;
}
bool CSimulatorXPlane::requestElevation(const Geo::ICoordinateGeodetic &reference) const
{
//! \todo KB 2018-04 implement a function fetching the probe value (async) and write it back to provider
return ISimulator::requestElevation(reference);
}
// convert xplane squawk mode to swift squawk mode
CTransponder::TransponderMode xpdrMode(int xplaneMode, bool ident)
{

View File

@@ -104,6 +104,9 @@ namespace BlackSimPlugin
virtual void unload() override;
//! @}
//! \copydoc BlackMisc::Simulation::ISimulationEnvironmentProvider::requestElevation
virtual bool requestElevation(const BlackMisc::Geo::ICoordinateGeodetic &reference) const override;
//! Creates an appropriate dbus connection from the string describing it
static QDBusConnection connectionFromString(const QString &str);