Commit Graph

887 Commits

Author SHA1 Message Date
Klaus Basan
3a6df31c99 refs #916, interpolator mode utility functions for SimObjects 2017-04-18 00:00:56 +01:00
Klaus Basan
622a2f0937 refs #911, backend function in listener
Can provide information of the system which was connected
2017-04-18 00:00:47 +01:00
Klaus Basan
8a2eef66ae refs #911, formatting FSX/P3D connect info 2017-04-18 00:00:45 +01:00
Klaus Basan
566b6aabf3 refs #911, settings UI for simConnect.cfg improved
* only work with local file, a remote file can be adjusted in the core`s settings
* set UI port/address from file
* formatting/renaming
2017-04-18 00:00:41 +01:00
Klaus Basan
b21f5f18e7 refs #911, fixed some UI strings 2017-04-18 00:00:37 +01:00
Mathew Sutcliffe
6e488533f5 refs #896 Using CInterpolatorMulti in simulator drivers. 2017-04-18 00:00:30 +01:00
Klaus Basan
61dc32e894 refs #910, display SimConnect info in settings 2017-04-18 00:00:11 +01:00
Klaus Basan
83c0dd6dfa refs #910, check SimConnect DLL in listener
(preliminary version before we know P3D string variety)
2017-04-18 00:00:09 +01:00
Klaus Basan
0f2680ba2a Formatting #910 2017-04-18 00:00:06 +01:00
Klaus Basan
c277b26c05 refs #908, detect and check version of P3D or FSX in listener
* added version simulator name etc. to listener
* checking simulator
* simplified CSimulatorFsxCommonListener::SimConnectProc
2017-04-17 23:59:30 +01:00
Klaus Basan
4a984ea1de refs #908, formatting 2017-04-17 23:59:28 +01:00
Klaus Basan
99c792dd4b Refs #868 Use CXPlaneUtil::xplaneRootDir() in the X-Plane plugin 2017-04-17 23:58:46 +01:00
Klaus Basan
03b8739158 refs #895, add initial parts when aircraft is added in FSX
plus some utility functions
2017-04-17 23:58:09 +01:00
Klaus Basan
7427847bb4 refs #895, CPartsStatus(bool supportsParts) 2017-04-17 23:58:03 +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
38ea336cbb refs #894, register dot commands for help
(wherever dor commands are implemented)
2017-04-17 23:57:50 +01:00
Klaus Basan
d3e49d4cf1 refs #863, enabled spline interpolator for FSX 2017-04-17 23:57:44 +01:00
Klaus Basan
056d205488 refs #891, unified "windows.h"
Remark: Using the lc version seems to be slightly smarter
http://stackoverflow.com/a/15466951/356726
2017-04-17 23:57:19 +01:00
Klaus Basan
d280141563 refs #891, P3D driver / config 2017-04-17 23:57:17 +01:00
Klaus Basan
5d8ed66931 refs #891, FSX using common base class 2017-04-17 23:57:16 +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
Klaus Basan
347b54171b refs #891, added dir / config for P3D plugin 2017-04-17 23:57:13 +01:00
Klaus Basan
e2b573b850 refs #891, formatting 2017-04-17 23:57:10 +01:00
Mathew Sutcliffe
04ddd3bfa5 refs #863 Move interpolator logging into a separate class.
A single logger instance can be shared between multiple interpolator instances.
2017-02-24 15:22:34 +00:00
Mathew Sutcliffe
e67b5fccc4 refs #863 Change callsign parameter to be a member instead. 2017-02-24 15:22:32 +00:00
Mathew Sutcliffe
9c918b8799 refs #863 Interpolator inheritance based on CRTP rather than virtual methods. 2017-02-24 15:22:26 +00:00
Mathew Sutcliffe
1c2533f5d2 refs #863 Moved nested status classes to namespace scope. 2017-02-24 15:22:25 +00:00
Mathew Sutcliffe
a167cc8e43 refs #863 Each aircraft gets its own interpolator instance,
so each one can cache calculations from one frame to the next.
The recent situations and parts are members of the interpolator.
2017-02-24 15:22:22 +00:00
Mathew Sutcliffe
2181702c5c refs #863 Change interpolation setup member to be a method parameter instead. 2017-02-24 15:22:21 +00:00
Roland Winklmeier
64a47da67f Use CApplication::isNetworkAccessible() wherever possible
Up to now we had a mixture of different methods to detect whether
network is connected, accessible or both. Even if they implied a
different meaning, they were all doing the same and internally
referred to almost the same code. Almost, since our implementation
of CNetworkUtils::hasConnectedInterface refers to code from Qt 4.4.
However, all of them returned a boolean status whether a network
interface is generally up or not. Instead of maintaining our own
version, use Qt functions.

refs #869
2017-02-24 15:22:11 +00:00
Roland Winklmeier
10f9c9c50a Fix typo 2017-02-24 15:22:10 +00:00
Klaus Basan
2a0d0e1d84 refs #873, sendToggledLightsToSimulator as own function
* better resending of lights when light state in simulator is not yet known
* support for cabin/recognition light
2017-02-24 15:20:34 +00:00
Klaus Basan
bcb42b0f0d Formatting 2017-02-24 15:20:33 +00:00
Klaus Basan
b6ac5cbb45 refs #873, added cabin and recognition light plus anyEngineOn 2017-02-24 15:20:32 +00:00
Klaus Basan
e3ab9d08c3 Do not show tiny airfields of FSX 2017-02-24 15:20:31 +00:00
Klaus Basan
01b79a76a6 refs #873, better guessing of parts (clients without aircraft config) 2017-02-24 15:20:29 +00:00
Klaus Basan
a61abfcb8b refs #873, use events for lights
* added members for sim objects
* receive lights for (remote) aircraft from simulator
* update lights
* utility functions for request ids
2017-02-24 00:20:01 +00:00
Klaus Basan
9c2682f386 refs #873, own data definition for lights
(as events will be used)
2017-02-24 00:19:57 +00:00
Klaus Basan
5f701e7547 refs #873, define events for lights 2017-02-24 00:19:47 +00:00
Klaus Basan
f701d6ad4a refs #873, FSX: do not send parts if they are equal
* == operator for struct
* do not send when equal
* fixed missing init of guessed parts struct
2017-02-24 00:19:45 +00:00
Klaus Basan
1d967b08e8 refs #865, based on discussion https://dev.vatsim-germany.org/issues/865#note-12
* do not call XP`s elevation provider if not needed in interpolator
* some renaming/utility functions
2017-02-24 00:19:41 +00:00
Klaus Basan
085f25fa86 refs #865, FSX: changed how elevation/CG is updated 2017-02-24 00:19:28 +00:00
Klaus Basan
1967c82221 Formatting 2017-02-24 00:19:19 +00:00
Klaus Basan
62d4a94106 refs #865, further improved logging
* set log flag in hints, so no lock for each aircraft is needed
* as a result log functions have a bool log parameter now
* highlight situation and parts changed
2017-02-24 00:19:18 +00:00
Klaus Basan
818cdfba59 Doxygen, added link to dev wiki and fixed group 2017-02-24 00:19:11 +00:00
Klaus Basan
0488b4b5ea refs #865, adjusted FSX part to use parts in interpolation hints
* split update of aircraft parts in guessing/sending
* pass hints to interpolator
2017-02-24 00:19:06 +00:00
Klaus Basan
68dccbefa6 Formatting, renaming, Doxygen, minor UI adjustments 2017-02-24 00:18:51 +00:00
Klaus Basan
7ddb69825a refs #865, FSX: use onGround from CAircraftSituation 2017-02-24 00:18:49 +00:00
Klaus Basan
daab5eed49 refs #865, adjusted interpolator to use elevation or elevation provider
* adjusted IInterpolator::setGroundElevationFromHint
* removed cgAboveGround from getCorrectedAltitude
2017-02-24 00:18:43 +00:00