Commit Graph

282 Commits

Author SHA1 Message Date
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
b9e388ee97 Ref T429, style 2018-11-16 02:49:53 +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
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
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
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
b6ce9e0408 Ref T245, a P3D version of follow aircraft, still experimental
* testing approaches camera, observer, and guessing view name
* SimObject code for camera/observer
* functions aircraft situation -> FSX formats
2018-11-04 17:42:48 +01:00
Klaus Basan
93bcbc0755 Ref T421, function to get interpolation messages from the simulator drivers 2018-11-04 17:42:47 +01:00
Klaus Basan
41685df4ee Ref T421, interpolation log messages in interpolator(s) 2018-11-04 17:42:47 +01:00
Klaus Basan
d2da072128 Ref T412, Ref T227, set timestamps for own parts/situations 2018-11-04 17:42:47 +01:00
Klaus Basan
38bd626638 Exclude emulated driver from FSX settings as this will cause issues
The emulated driver looks like P3D/FSD, but is a different class
2018-11-04 17:42:47 +01:00
Klaus Basan
35b8b29d10 Ref T410, preparation and UI adjustments
Foo
2018-11-04 17:42:43 +01:00
Klaus Basan
177ee27654 Make FSUIPC/SB offsets configurable
* based https://swift-project.slack.com/archives/CC6THKCAZ/p1538387046000100
* "dot" commands added
* Plugin settings
2018-10-05 17:39:57 +02:00
Klaus Basan
be9cd12335 Ref T379, misc. FSX common improvements
- mark as rendered if SimObject exists
- improved log message
- cleanup when adding failed
2018-10-05 17:39:57 +02:00
Klaus Basan
e312718bbb Ref T379, style 2018-10-05 17:39:57 +02:00
Klaus Basan
e0594271f1 Ref T379, use own "toFsxChar" conversion so we can adjust it 2018-10-05 17:39:57 +02:00
Klaus Basan
5323cb09d7 Ref T372, fixed freeze so aircraft is really stable
see https://swift-project.slack.com/archives/G96QTUBEG/p1537784648000100
2018-09-25 02:14:03 +02:00
Klaus Basan
f50266a5a3 Ref T370, Ref T372 loopback situations updated from FSX/P3D simulator 2018-09-25 02:14:01 +02:00
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
Klaus Basan
24c2da67e7 Ref T372, style 2018-09-25 01:43:08 +02:00
Klaus Basan
09acea6eb4 Ref T370, re-init terrain probe when all objects are removed 2018-09-24 00:54:09 +02:00
Klaus Basan
22160c146e Ref T370, further remove models improvements
* timer checks not only for add, but also for remove
* renamed to facilitate changes
2018-09-23 20:12:47 +02:00
Klaus Basan
527f666d1f Ref T370, remove models from FSX/P3D
* clearAllRemoteAircraftData also removes aircraft (from simulator)
* debugVerifyStateAfterAllAircraftRemoved only makes sense if removing aircraft and then emit the messages
2018-09-23 20:12:32 +02:00
Roland Winklmeier
c379a722e3 Fix clash with struct interface 2018-09-17 18:29:06 +02:00
Klaus Basan
754049971d Ref T357, Ref T348, probe improvements
- release AI also traces id
- info that probe is disabled in error case
2018-09-17 18:28:46 +02:00
Klaus Basan
19ec4c3cf1 Ref T357, FSX settings component allows to copy terrain probe via context 2018-09-17 18:28:45 +02:00
Klaus Basan
c26af17b2f Ref T348, probe improvements
* use oldest probe (round robin)
* only init probes once
* release AI control for probes
2018-09-17 18:28:28 +02:00
Klaus Basan
8e4369b41c Ref T348, style/removed unused function 2018-09-17 18:28:26 +02:00
Klaus Basan
42f6cd9d30 Ref T348, FSX common improvements
- listener only logs changed messages
- changed name of terrain probe object to "water drop" (other object is not available on P3D x86)
- reset timestamp when adding pended

Related: Ref T317 Ref T247 Ref T335
2018-09-17 18:28:19 +02:00
Klaus Basan
0e1cf965e1 Ref T348, preset terrain probe checkbox
Related: Ref T317 Ref T247 Ref T335
2018-09-17 18:28:18 +02:00
Klaus Basan
849bc0b9d0 Ref T348, style 2018-09-17 18:28:15 +02:00
Klaus Basan
13ebf6bafe Ref T348, updated utility functions in CSimConnectObject/CAircraftCfgEntriesList, also fixed bug that type need to be updated to probe setting when aircraft changes
Related: Ref T317 Ref T247 Ref T335
2018-09-17 18:28:14 +02:00
Klaus Basan
fe86f1a2db Ref T348, "verify model" functions moved to FSX common
Related: Ref T317 Ref T247 Ref T335
2018-09-17 18:28:11 +02:00
Klaus Basan
bea69e682e Trigger FSX/P3D send id tracing always for an exception 2018-09-17 18:28:10 +02:00
Klaus Basan
44b1273085 UI FSX settings component 2018-09-12 20:30:32 +02:00
Klaus Basan
409cc6c164 Ref T335, FSX/P3D improvements
- eceptions for an added object will be handled, retry once, then disable
- add/directly remove agains tried twice, then disabled
- disable aircraft in severe cases
- adjusted signal, indicate aircraft was enabled
2018-09-12 20:28:55 +02:00
Klaus Basan
3ee17120b7 Ref T335, improved CSimConnectObject
- support for outdated objects
- count exceptions/directly removed incidents
2018-09-12 17:40:57 +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
b1013b6c66 Ref T335, UI to enable/disable terrain probe 2018-09-09 02:55:12 +02:00
Klaus Basan
bbd6a70162 Ref T335, improve FSX/P3D probe/aircraft handling
- probes handled in same sim object list as aircraft
- init probes at beginning, probes can be disabled
- better handle SIMCONNECT_EXCEPTION_CREATE_OBJECT_FAILED:
- CSimulatorFsxCommon::verifyAddedTerrainProbe
- use "SimConnect_AICreateSimulatedObject" for probes
2018-09-09 02:54:41 +02:00
Klaus Basan
2020c04f52 Ref T335, improved probe support for CSimConnectObject/CSimConnectObjects. We will no longer use 2 separate object lists for probes/aircraft. 2018-09-09 02:54:39 +02:00