Commit Graph

14 Commits

Author SHA1 Message Date
Klaus Basan
3c77405b22 Ref T410, set data definitions for "running and connected" SB area flags 2018-11-05 01:39:51 +01:00
Klaus Basan
fc1e45089e Moved FSX common functions to FsCommon as those can also be used with FS9 2018-11-04 17:43:05 +01:00
Klaus Basan
a062607520 Ref T317, fix CLANG warning for SimConnect
- casting functions in "simconnectfunctions.h"
- using correctly casted values
- some other smaller fixes
2018-09-01 20:13:56 +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
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
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
a27f2b3a9c Style, typos 2018-06-13 14:00:21 +02:00
Klaus Basan
bdf58ff538 Ref T275, utility functions to trace request ids 2018-06-13 14:00:18 +02:00
Klaus Basan
6a92ea4cb6 Ref T259, Ref T243 situation/parts/lights adjustments
* guessing now in parts/lights (so it can be used with all sims)
* minor renamings
* init FSX data definitions from parts
2018-04-13 23:37:20 +02:00
Roland Winklmeier
de4fe44156 Fix sending the correct pressure altitude for a pilot position
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet.
* This caused a wrong altitude in radar clients.
* We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation.
* MS Flight Simulators have the pressure altitude in the APIs available.
* For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level.
* Finally, we use the new available pressure altitude to send it to the FSD server.

Maniphest Tasks: Ref T223
2018-01-15 22:49:08 +01:00
Klaus Basan
fd4ac74738 Ref T180, renaming for request remote aircraft data 2017-11-09 20:02:55 +01:00
Klaus Basan
8b1c8c068b refs #895, reset to "invalid" sentParts when object is added
(makes sure the parts are sent at least once)
2017-04-17 23:57:58 +01:00
Klaus Basan
4a0ddfb5d1 refs #895, renamed data structure to DataDefinitionRemoteAircraftPartsWithoutLights 2017-04-17 23:57:53 +01:00
Klaus Basan
70045c046d refs #891, moved common parts for FSX/P3D to fsxcommon
* driver / listener common parts
* config common parts
2017-04-17 23:57:14 +01:00