mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 03:35:35 +08:00
Ref T260, changed elevation handling in provider, simulator and FSX common driver
* split functions, added findClosestElevationWithinRangeOrRequest * obtain elevation ids (separate ids are easier to track) * also added experimental "physicallyAddAITerrainProbe" (FSX) for the FSX elevation probing * callback / signal when requested elevation is received (async)
This commit is contained in:
committed by
Roland Winklmeier
parent
dcc348c9d9
commit
6061a61d50
@@ -114,10 +114,10 @@ namespace BlackSimPlugin
|
||||
m_watcher = nullptr;
|
||||
}
|
||||
|
||||
bool CSimulatorXPlane::requestElevation(const Geo::ICoordinateGeodetic &reference) const
|
||||
bool CSimulatorXPlane::requestElevation(const ICoordinateGeodetic &reference, const CCallsign &callsign)
|
||||
{
|
||||
//! \todo KB 2018-04 implement a function fetching the probe value (async) and write it back to provider
|
||||
return ISimulator::requestElevation(reference);
|
||||
return ISimulator::requestElevation(reference, callsign);
|
||||
}
|
||||
|
||||
// convert xplane squawk mode to swift squawk mode
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace BlackSimPlugin
|
||||
//! @}
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::ISimulationEnvironmentProvider::requestElevation
|
||||
virtual bool requestElevation(const BlackMisc::Geo::ICoordinateGeodetic &reference) const override;
|
||||
virtual bool requestElevation(const BlackMisc::Geo::ICoordinateGeodetic &reference, const BlackMisc::Aviation::CCallsign &callsign) override;
|
||||
|
||||
//! Creates an appropriate dbus connection from the string describing it
|
||||
static QDBusConnection connectionFromString(const QString &str);
|
||||
|
||||
Reference in New Issue
Block a user