Commit Graph

997 Commits

Author SHA1 Message Date
Klaus Basan
ec6b7ed37d Ref T437, some FSUIPC style/message adjustments 2018-12-01 05:17:41 +01:00
Klaus Basan
07eac1d46f Ref T436, used interpolated situation if possible for new FSX/P3D aircraft 2018-11-30 22:02:04 +01:00
Roland Rossgotterer
c27d401e70 Remove SystemBus from XSwiftBus connection options 2018-11-29 20:54:26 +01:00
Roland Rossgotterer
db7ed76bc5 Refactor listening for and connecting to XSwiftBus
- Use common function for Session and P2P connections
- Don't use the DBus service watcher as it did not allow to test in regular intervals
- Add a XSwiftBus version check to X-Plane listener
- Try to initialize and acquire multiplayer planes in checkConnection() already and warn the user if any of those failed. The plugin will be loaded only if everything succeeded.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
49bd38d722 [XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
55c2e2e559 [XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons.

ref T394
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
e959075a56 Fix missing include 2018-11-29 20:54:26 +01:00
Roland Rossgotterer
ec8245ea53 [XSwiftBus] Give PQ variables a unit
ref T313
2018-11-29 20:54:26 +01:00
Roland Winklmeier
2843e20d54 Update xswiftbus.conf when updating connection details
ref T434
2018-11-29 20:54:25 +01:00
Klaus Basan
13f6cc1180 Ref T437, Ref D29 fixed Jenkins build warnings
Discussed here: https://swift-project.slack.com/archives/G7GD2UP9C/p1543238741010300
The manual changed applied on the original FSUIPC SDK file were reveretd b adding a newer version
2018-11-29 20:54:25 +01:00
Klaus Basan
9292b63be6 Ref T437, FSUIPC thread assert check 2018-11-22 19:55:04 +01:00
Klaus Basan
d6fad99474 Ref T437, renamed CFsuipc functions to align with FSUIPC code 2018-11-22 19:55:04 +01:00
Klaus Basan
410d77330f Ref T437, extern C and use normal pointer 2018-11-22 19:55:04 +01:00
Klaus Basan
7f7cf2e031 Ref T436, underflow detection for FSX
* utility functions
* force gnd flag to avoid underflow
2018-11-22 19:55:04 +01:00
Klaus Basan
f6e04d4488 Ref T437, skip updates for FSUIPC and SB area for some cycles 2018-11-22 19:55:04 +01:00
Klaus Basan
39e4b2a61d Style
* CLANG
* #ifdef
2018-11-22 19:55:04 +01:00
Klaus Basan
034525316e Ref T437, fixed missing update of "m_simTransponder" which caused SB area changes to be ignored
* also added SELCAL hints
* sync m_simTransponder
2018-11-22 19:55:04 +01:00
Klaus Basan
7bd3d2793e Ref T437, FSX common improvements
* some SB area fixes like SIMCONNECT_CLIENT_DATA_SET_FLAG_DEFAULT
* use either SB area or FSUIPC
* also write XPDR via FSUIPC
2018-11-22 19:55:03 +01:00
Klaus Basan
33116d3b21 Ref T437, adjusted CFsuipc class 2018-11-22 19:55:03 +01:00
Klaus Basan
39d2eba85b Ref T437, updated 64bit FSUIPC file 2018-11-22 19:55:03 +01:00
Klaus Basan
657aea9323 Ref T437, copy the client area byte array instead of just casting it 2018-11-22 19:55:03 +01:00
Klaus Basan
82467da45b Ref T436, correct file name handling (UNC) and validate FSX position 2018-11-22 19:55:03 +01:00
Klaus Basan
6caba4b1ef Ref T437, added data definition for running 2018-11-22 19:55:03 +01:00
Klaus Basan
10b242cec8 Ref T437, update cockpit from FSUIPC 2018-11-22 19:55:03 +01:00
Klaus Basan
ebde8e7360 Ref T436, style 2018-11-22 19:55:03 +01:00
Klaus Basan
d424abdefb Ref T437, style 2018-11-22 19:55:03 +01:00
Klaus Basan
8ce3ac06ae Ref T437, update internals when changing FSUIPC on/off 2018-11-22 19:55:03 +01:00
Klaus Basan
22f17bec44 Ref T437, renamed SB4 to SB3 (as the extension was already available in SB3) 2018-11-22 19:55:02 +01:00
Klaus Basan
3f8ea99d14 FSUIPC Clang fixes 2018-11-22 19:55:02 +01:00
Klaus Basan
cb422d72cf Misc. style issues interpolation/model adding 2018-11-22 19:55:02 +01:00
Klaus Basan
b452cd7530 Ref T410, show number of SB4 packets received under simulator/information 2018-11-16 02:49:55 +01:00
Klaus Basan
fe28c220fa Unit test fix
* Use correct version of loadAndResolveP3DSimConnect/loadAndResolveFsxSimConnect
* use CLogCategory::driver() for SimConnectSymbols
* added load(common_pre/post)
2018-11-16 02:49:54 +01:00
Klaus Basan
c88d02ff5f Ref T429, allow to set heading in emulated driver so PBH can be tested 2018-11-16 02:49:54 +01:00
Klaus Basan
b9e388ee97 Ref T429, style 2018-11-16 02:49:53 +01:00
Klaus Basan
a7a1578775 Ref T423, aligned "emulated driver"
* renamed to "updateRemoteAircraft"
* use new force update functions
2018-11-16 02:49:52 +01:00
Klaus Basan
64b0ec87b1 Ref T423, changed strategy to force position updates
* force update for "some time", and remove all sent information
* no longer update some cycles, but for some time
* updated FSX/P3D/XPlane drivers
2018-11-16 02:49:52 +01:00
Klaus Basan
6e1c0633df Ref T349, log message if P3D driver is loaded 2018-11-16 02:49:52 +01:00
Klaus Basan
2d4cdc8010 Ref T349, P3D version settings UI 2018-11-16 02:49:52 +01:00
Klaus Basan
e9101ab4c6 Ref T349, P3D version as setting 2018-11-16 02:49:52 +01:00
Klaus Basan
bb86701c9c Ref T349, added some P3D SimConnect API functions and utility functions to resolve string 2018-11-16 02:49:52 +01:00
Roland Winklmeier
a5d1363019 Add missing override keyword 2018-11-16 02:49:52 +01:00
Roland Winklmeier
f63008dd3f Load P3D 64 bit SimConnect shared library at runtime
This aligns the behavior and concept with the 32 bit FSX version. SimConnect
is loaded at runtime, depending on the version being selected.
It also adds a featuren to change the P3D SimConnect version at runtime by
unloading the previous and loading a new one.

ref T349
2018-11-16 02:49:51 +01:00
Klaus Basan
dfd33e40c1 Detect emulated driver before casting to avoid crashs 2018-11-16 02:49:51 +01:00
Klaus Basan
2b8e388ba1 Ref T423, force update if simulator was paused or interrupted before
* force full updates for some cycles "m_updateAllRemoteAircraftCycles"
* only use "emitSimulatorCombinedStatus" to emit changed simulator status
* renamed to "finishUpdateRemoteAircraftAndSetStatistics"
* override "forced" in "getInterpolationSetupConsolidated"

This addresses the issue that aircraft appear below ground after moving the aircraft
2018-11-06 01:41:47 +01:00
Klaus Basan
4d7ca00324 Ref T421, interpolation log message follow up, deprecated "clampedLog" 2018-11-05 01:39:51 +01:00
Klaus Basan
212460f676 Ref T410, simConnectProc / FsxCommon SB area
* count number of received data
* set network and SB running flag
2018-11-05 01:39:51 +01:00
Klaus Basan
e98a420d5d Improved FSX/P3D time sync 2018-11-05 01:39:51 +01:00
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
4ff531c6c4 Fixed CLANG warnings for FS9 2018-11-04 17:43:06 +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