Klaus Basan
a871579479
Ref T370, added public removeAllRemoteAircraft
...
* protected clearAllRemoteAircraftData
* ISimulator::clearAllRemoteAircraftData no longer calls clearAllRemoteAircraftData (circular)
2018-09-25 02:14:00 +02:00
Roland Winklmeier
fe97276ee8
Set X-Plane major and minor version in simulator details
...
ref T339
2018-09-17 18:28:23 +02:00
Klaus Basan
7e9f3a6c7f
Ref T342, distance of airport can be recalculated
2018-09-12 17:40:38 +02:00
Roland Winklmeier
3804612bed
Fix the initial weather request in case last position is null
...
calculateGreatCircleDistance returns false immediately if any of the
arguments was null.
ref T324
2018-09-12 17:01:51 +02:00
Klaus Basan
68beaa6d9d
Ref T312, added checkImpl/check in simulator listeners
2018-08-27 18:58:15 +02:00
Klaus Basan
15500c41db
XPlane Clang/PQ integer fixes
2018-08-16 14:44:15 +02:00
Klaus Basan
359d56b6f6
Weather uses null altitude, https://swift-project.slack.com/archives/G7GD2UP9C/p1534378412000100
2018-08-16 14:44:14 +02:00
Roland Winklmeier
05e0480bb4
Move XPlane gnd flag handling from parts to situation
...
ref T276
2018-08-07 20:40:57 +02:00
Roland Winklmeier
488ff96ce6
Add DBus P2P support to XSwiftBus
...
ref T291
2018-08-07 20:40:43 +02:00
Roland Winklmeier
f881b118b6
Connect XSwiftBus signals manually in the proxy
...
This way we can check the return value and make sure that it is properly
connected.
ref T291
2018-08-07 20:40:38 +02:00
Roland Winklmeier
ee2b70ffcc
Change argument type to double
...
DBus does not support float. This was not causing any error, because it
got implicitly converted.
2018-08-07 20:40:30 +02:00
Klaus Basan
fbfbdedb65
Ref T294, display simulator internals correctly
...
* view rows not selectable
* added settings to ISimulator
* ISimulator implements initSimulatorInternals() and sets default values
* also display plugin name
* XPlane using initSimulatorInternals()
2018-07-31 01:43:27 +02:00
Klaus Basan
14faf5136a
Ref T268, XPlane testing showed: height has an influence on the returned elevation result
...
* the most accurate value seems to be returned if the height is close to the elevation
* in normal scenarios there is no much difference of the results if 0 is used
* in Lukla (9200ft MSL) the difference between 0 and 9200 is around 1ft
* in the LOWW scenario using 50000ft MSL results in around 3ft too low elevation
2018-07-19 02:52:16 +02:00
Klaus Basan
88098dddf7
Ref T268, allow to log loopback situations
...
* those are situations reported back from simulator
* and can be logged
2018-07-19 02:52:06 +02:00
Klaus Basan
52513db63f
Ref T290, XPlane refactoring
...
* typo getRemoteAircraftsData -> getRemoteAircraftData (no "s")
* typo getEelevationAtPosition (double "Ee")
* get functions "const"
* added unit for some variables such as latitudeDeg
2018-07-17 19:04:50 +02:00
Klaus Basan
80cee12fdb
Ref T246, utility for 1st model set directory
...
* remove empty enries in directories
* allow to add directory
* detect same directories and avoid duplicates
2018-07-14 19:45:21 +02:00
Klaus Basan
a508ad4ccb
Ref T268, check in XPlane driver
2018-07-12 18:29:40 +02:00
Klaus Basan
d0adcc98cb
Ref T289, merge CSimulatorCommonn/ISimulator
2018-07-12 18:29:36 +02:00
Klaus Basan
f8c64c0296
Ref T268, proxy style
2018-07-09 22:30:51 +02:00
Klaus Basan
df869373e8
Ref T268, XPlane driver improvements
...
* 2 queues, one for pending "to be added" aircraft and one for "adding in progress" (easier timeout detection)
* disconnect DBus when unloading
* check if aircraft "are still in range" before adding
* adding to XPlane only in one place
* data for aircraft can be explicitly request and are requested directly when an aircraft has been added
2018-07-09 22:30:48 +02:00
Klaus Basan
79c1691fdc
Ref T268, Xplane driver style/renaming
2018-07-09 22:30:47 +02:00
Klaus Basan
1ba99b5392
Ref T268, XPlane to do not request updates of values "not near ground"
2018-07-09 22:30:44 +02:00
Klaus Basan
74b044bd19
Ref T268, removed obsolete functions as of https://swift-project.slack.com/archives/G7GD2UP9C/p1530707227000095
2018-07-09 22:30:39 +02:00
Klaus Basan
ca87784509
Ref T275, remember CG per model string
2018-07-09 22:30:22 +02:00
Klaus Basan
e6ac7eb4df
Add Qt += network
2018-06-27 12:49:09 +02:00
Klaus Basan
bc0b4502cf
Ref T275, move some simple implementations into ISimulator
...
Goal: merge CSimulatorCommon/ISimulator
2018-06-27 12:49:08 +02:00
Klaus Basan
0f931eeeb3
Ref T268, moved changeRemoteAircraftModel/Enabled to CSimulatorCommon and removed duplicated code
2018-06-13 14:00:09 +02:00
Klaus Basan
f3edf14186
Ref T273, Ref T275 XPlane uses simulator common function to skip sending equal parts/situations
2018-06-13 13:59:56 +02:00
Klaus Basan
181ed36f3d
Ref T270, interpolator optimization by passing aircraft number
...
Rational: Except for FS9 we interpolate all aircraft in one loop at the same time. This can cause that some steps are always done at the same time for all aircraft of that loop. By passing the number we can more equally distribute such tasks, avoiding peaks.
2018-06-13 13:59:39 +02:00
Klaus Basan
aa7363dcad
Ref T270, Ref T268, plugin common / simulator improvements
...
* connect with "about to quit"
* added interface declarations
* sim statistics, use common function setStatsRemoteAircraftUpdate and double for average values
2018-06-13 13:59:22 +02:00
Roland Winklmeier
654cc1621e
Align the position and surface variable names to plural
2018-06-13 13:59:16 +02:00
Roland Winklmeier
c437c2eabd
Simplify the X-Plane traffic plane positions and surfaces API
2018-06-13 13:59:14 +02:00
Roland Winklmeier
33963041cc
Implement followAircraft for X-Plane
...
ref T266
2018-06-13 13:59:13 +02:00
Roland Winklmeier
794137fc94
Align the CSimulatorXPlane API with its base class
...
Some functions were protected in the base class and in a different order.
This is all corrected now.
2018-06-02 02:08:48 +02:00
Roland Winklmeier
4aaccb44c3
Cleanup the enabled modules in all sub projects
...
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
8a522b5e6d
Ref T270, signal requestedElevation
2018-05-29 00:56:37 +02:00
Klaus Basan
35d78b641a
Fix clang warnings as discussed here: https://swift-project.slack.com/archives/G7GD2UP9C/p1526463295000266
...
Reported in CLANG test build here: https://build.swift-project.org/job/macos_test_job/4/warnings10Result/
2018-05-22 13:20:02 +02:00
Klaus Basan
2ae8f5b03f
Ref T270, added CSimulatorPluginCommon as base class in driver project
...
* unlike BlackCore::CSimulatorCommon we can add also UI aspects here
* used by emulated driver, XP and the FS series
2018-05-18 00:25:11 +02:00
Roland Winklmeier
d743ec98fa
Remove unused code
2018-05-12 21:40:04 +02:00
Roland Winklmeier
2fd4d286d6
Refactor retrieving remote aircraft data
...
Instead of requesting it individually for each callsign and waiting for a
signal from xswiftbus, pass in a list of callsigns and use async callback
to read the data.
2018-05-08 16:06:57 +02:00
Roland Winklmeier
bf8ed5c006
Load X-Plane remote aircrafts one by one sequentially
2018-05-08 16:06:57 +02:00
Roland Winklmeier
0ad18cd0a4
Fix sending of parts to X-Plane
2018-05-08 16:06:56 +02:00
Roland Winklmeier
848da69fe1
Group sending of all plane positions and surfaces into a single DBus call
2018-05-08 16:06:56 +02:00
Klaus Basan
0808cdb223
Ref T261, further unify interpolator handling
...
* return interpolation results parts/situation in one step
* base class init for each interpolation step, less redundant code
* removed old interpolation/parts function
* adjusted unit tests and simulator objects (such as SimObject)
2018-05-08 16:06:52 +02:00
Klaus Basan
3d2a74a652
Ref T261, interpolator mode is now part of setup
...
* added attribute in setup
* adjusted UI
* adjusted interpolator / simulator functions
2018-05-08 16:06:49 +02:00
Klaus Basan
3031e5b648
Ref T261, set client provider in simulator
...
Needed to obtain client capabilities
2018-05-08 16:06:48 +02:00
Klaus Basan
1f3e5c6abf
Formatting, minor tweaks
2018-05-08 16:06:43 +02:00
Klaus Basan
94a334ad75
Ref T259, Ref T243 use "getInterpolatedOrGuessedParts" in XPlane
2018-05-08 16:06:36 +02:00
Klaus Basan
6061a61d50
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)
2018-05-08 16:06:35 +02:00
Klaus Basan
f1faeef84a
Ref T259, Ref T243 added functions to use guessed parts in
...
* sim object
* XPlane aircraft
* forward aircraft model to interpolator for guessing
2018-05-08 16:06:32 +02:00