Commit Graph

781 Commits

Author SHA1 Message Date
Klaus Basan
d7b1ed8d31 Hint for simulator if network is connected (slightly related T307) 2018-08-19 14:31:56 +02:00
Klaus Basan
cbb0805c7e Style 2018-08-19 14:31:47 +02:00
Klaus Basan
83e2fcf85e FSX listener adjustments, timer requires "this" parent here
https://swift-project.slack.com/archives/G7GD2UP9C/p1534445228000100
2018-08-16 21:08:02 +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
Klaus Basan
7d2c063aba Clang QtC warnings fixed for FSX common 2018-08-16 14:44:13 +02:00
Klaus Basan
e21328a5a6 Style 2018-08-16 14:44:11 +02:00
Klaus Basan
3a09749103 UI for FSX settings adjustments 2018-08-16 14:44:08 +02:00
Roland Winklmeier
5a5fffa08c Test and report if any SimConnect symbol could not be loaded 2018-08-16 14:33:58 +02:00
Roland Winklmeier
ce99c0535f Check if SimConnect was properly loaded before attempting to use it
This commit adds a check that loadAndResolveSimConnect actually succeeds and
moves it right before SimConnect_Open is called.
The method itself was improved to check whether symbols got loaded already
in a previous run, before doing everything again.
2018-08-16 14:33:57 +02:00
Klaus Basan
755455e8a4 Style, in CGuiApplication sGui can be used as guard (no QPointer needed) 2018-08-16 14:33:54 +02:00
Klaus Basan
9bb3f98489 Style 2018-08-13 02:59:35 +02:00
Klaus Basan
6897abe912 Style, singleShot guard, Doxygen 2018-08-09 01:38:52 +02:00
Roland Winklmeier
a36023f6d8 Add missing copy constructor and assignment operators 2018-08-09 01:25:46 +02:00
Roland Winklmeier
868cae446a Fix misplaced bracket 2018-08-09 01:25:37 +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
9b1b39e3a4 Prefill XSwiftBus server selector widget with default settings value
Initially, the port is filled with 45000 which is reserved for GUI<->Core
DBus communication. Therefore, the default address must be overwritten.
The displayed value might change again in case, a custom TCP address and port
is selected in the user settings.

ref T291
2018-08-07 20:40:51 +02:00
Roland Winklmeier
6a7a9ff710 Refactor X-Plane Plugin Config Window to use DBus server address selector
ref T291
2018-08-07 20:40:45 +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
ee04175a32 Ref T268, set P3D elevation request altitude if value is NULL 2018-07-19 02:52:11 +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
Roland Winklmeier
b16af78142 Load SimConnect dynamically at runtime.
Previously the FSX/P3D driver tried to link a very specific SimConnect version
from the Windows Assembly cache. This caused issues with machines
which did not have this specific version of SimConnect in the assembly
cache since drivers refused to load without much information. Having a different
version of SimConnect in the assembly cache or even in the bin folder did
not help.
To fix this problem, SimConnect is now loaded and resolved manually at
runtime. This allows to try loading different versions from the assembly
cache or prefer to load the shipped one.
For this, the manifests are linked into the binary's resource section and
activated manually before loading. This has the positive effect, that
loading errors can be handled by code instead of raising a cryptic error and
aborting.
2018-07-12 18:29:45 +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
e904a288ad Ref T268, statistics functions moved to interface 2018-07-09 22:30:52 +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
a21a510d82 Use Non ATC aircraft 2018-07-09 22:30:45 +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
8a0b76e6d9 Use string conversion for FSX listener 2018-07-09 22:30:40 +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
ac406d43f6 Ref T286, renaming / adding utility functions in simulator info 2018-07-09 22:30:24 +02:00
Klaus Basan
2798d36435 Ref T275, FSX/P3D obtain model string and CG when model is added and set it in the providers 2018-07-09 22:30:23 +02:00
Klaus Basan
ca87784509 Ref T275, remember CG per model string 2018-07-09 22:30:22 +02:00
Klaus Basan
c168262159 Ref T275, utility functions in simulated aircraft, sim object .. 2018-07-09 22:30:21 +02:00
Klaus Basan
6bcded9264 Style 2018-07-09 22:30:20 +02:00
Klaus Basan
1f689a8830 Ref T275, Ref T280, Ref T245 FSX simulator improvements
* request model info
* stricter checks (asserts)
* display simulator debug messages in simulator view (not as normal status message)
2018-07-09 22:30:16 +02:00
Klaus Basan
9baa10c5f8 Style 2018-07-09 22:30:14 +02:00
Klaus Basan
7a4f723fc0 Fixes so that P3D code compiles on Win32 (FSX) 2018-07-03 21:02:31 +02:00
Klaus Basan
b7df378868 Minor fixes include order 2018-06-27 12:49:17 +02:00
Klaus Basan
7a745d2ce6 Ref T275, improved request id handling for FSX/P3D
* base reange for request IDs
* all operations use offsets
* we can conclude what an id is used for (debugging)

plus

* minor Doxygen fixes
* some renamings
2018-06-27 12:49:11 +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