Mathew Sutcliffe
47369c02d0
refs #852 Fixed wrong unit in X-Plane airport elevation.
2017-02-24 00:18:07 +00:00
Mathew Sutcliffe
2b76b27f97
refs #852 On each position update for aircraft not supporting parts,
...
X-Plane driver synthesizes a parts update with guessed onGround flag.
2017-02-24 00:18:06 +00:00
Mathew Sutcliffe
c9b1647e72
refs #852 Extend xbus traffic service to maintain a CAircraftPartsList with onGround flags.
2017-02-24 00:18:00 +00:00
Mathew Sutcliffe
3f5139d717
refs #852 IInterpolator::getPartsBeforeTime renamed to getInterpolatedParts
...
and returns a single CAircraftParts object, not a list.
2017-02-24 00:17:55 +00:00
Roland Winklmeier
1032379773
[FSX] Inject weather via SimConnect instead of FSUIPC
...
refs #851
2017-02-24 00:09:18 +00:00
Klaus Basan
61e7f23847
refs #858 , todo review (demoted, commented)
2017-02-24 00:09:00 +00:00
Roland Winklmeier
1a6c7fa192
Add control button to activate and deactivate swift weather
...
- GUI changes
- Context and ISimulator APIs
- Refactored settings and static weather injection in CSimulatorCommon
refs #807
2017-01-10 23:47:39 +00:00
Roland Winklmeier
440fa9453f
Cleanup QDBusPendingCallWatcher after QDBusPendingCall finished
...
X-Plane plugin triggers several async QDBus calls per second. None
of them were ever cleaned up after they finished, causing a fast increase
in process memory.
refs #845
2017-01-10 23:46:40 +00:00
Klaus Basan
4f1dc00d67
refs #848 , check flags for FSUIPC parts before using them
2017-01-10 23:46:22 +00:00
Klaus Basan
c609c555b4
refs #848 , parse command line in simulator
...
* added default implementation
* sims can override parseDetails for specific cmd lines
* enable/disable FSUIPC in fscommon part
* added useFsuipc(bool on)
2017-01-10 23:46:21 +00:00
Klaus Basan
c20b54466f
refs #848 , some upfront cleanup
2017-01-10 23:46:17 +00:00
Klaus Basan
93a18f433c
refs #840 , FSX driver: get ground elevation from simulator
...
* fixed wrong request id
* made functions private where possible
* added data definitions for simobject data
2017-01-10 23:45:30 +00:00
Klaus Basan
667009c85e
refs #840 , moved interpolator classes into Simulation namespace
2017-01-10 23:45:27 +00:00
Klaus Basan
46fafde7a0
refs #840 , add support for interpolation hints
2017-01-10 23:45:25 +00:00
Klaus Basan
534b9fb09e
refs #840 , style and const-correctness
2017-01-10 23:45:24 +00:00
Roland Winklmeier
58c816197e
Use onGround flag only when ground speed is low
...
OnGround flag is not synchronized with positions and causes jumps
during right before takeoff and after landing. By adding a threshold
currently being 20 kts, we move the jump into an area when the aircraft
is still leveled.
2017-01-10 23:45:06 +00:00
Roland Winklmeier
d46318be5e
Use interpolated timestamp in order to get corresponding parts
...
So far the current timestamp was used to get the aircraft parts. This
caused aircraft jumps during takeoff and landing as soon as the on ground
flag changed.
2017-01-10 23:45:04 +00:00
Klaus Basan
1a500340f0
refs #836 , elevation for own FSX/P3D aircraft in driver
...
plus some minor improvements such as const where applicable
2017-01-10 23:44:52 +00:00
Mathew Sutcliffe
6c36cd202b
refs #837 ICoordinateGeodetic::geodeticHeight is a CAltitude.
2017-01-10 23:44:34 +00:00
Mathew Sutcliffe
0beb7faf06
refs #824 Collect and load CSL packages upon connecting to xbus.
2016-12-13 18:33:19 +00:00
Klaus Basan
b69008e0b3
refs #829 , consolidated settings for simulator/messages
...
* move traits from blackcore to blackmisc
* renamed CSimulatorSettings/Messages
2016-12-13 19:02:13 +01:00
Klaus Basan
364725548d
refs #823 , always gear down on ground
2016-12-13 19:01:55 +01:00
Klaus Basan
add3aa5a74
Minor formatting/tweaks
2016-12-13 19:01:47 +01:00
Klaus Basan
df2073e5e6
refs #814 , allow to disable aircraft parts updates, mostly for testing
...
* added flag in setup
* and UI
* plus some formatting in driver classes, removed unused member
2016-12-13 19:01:38 +01:00
Klaus Basan
20b4044d29
Minor UI and style fixes
...
* completer for airports in ATC component
* log messages
* style fixes
2016-12-13 19:01:18 +01:00
Klaus Basan
1f57f7ca61
refs #812 , use individual signals for web services
...
* trigger other operations directly when data have been read (do not wait for "all data read")
* avoid retriggering for no reason
* new entity flag for all data req. for model matching
2016-12-13 19:01:16 +01:00
Klaus Basan
10d43798b0
refs #811 , airports default implementation
...
* if no sim data are available use reader data
* merge airport data for FSX
* Added "network" in .pro (needed for network classes such as readers)
2016-12-13 19:01:15 +01:00
Klaus Basan
26cc77ebab
refs #810 , using DWORD instead of int to avoid possible issues (signed vs. unsigned)
...
Requires flags as negative flags do not indicate invalid
2016-12-13 19:01:11 +01:00
Roland Winklmeier
c1d8438ab7
Use '%lu' format when printing DWORD
...
Acoording th MSDN, DWORD is a typedef to unsigned long.
2016-12-13 19:01:07 +01:00
Roland Winklmeier
51b2aa6f88
Style
2016-12-13 19:01:06 +01:00
Roland Winklmeier
0ce38cb7d6
Clarify return value from CDirectPlayPeer::directPlayMessageHandler
...
refs #800
2016-12-13 19:01:05 +01:00
Klaus Basan
47b395f6b5
refs #808 , set internals object for FS9
...
(only basic code, needs to be completed)
2016-12-13 19:01:02 +01:00
Klaus Basan
53d430575c
refs #808 , set internals object for FSX
2016-12-13 19:01:01 +01:00
Klaus Basan
c4dd888fa7
refs #808 , added support for internals object
...
* initInternalsObject
* some formatting
2016-12-13 19:01:00 +01:00
Klaus Basan
c70b1ccb00
refs #808 , adjusted FSUIPC class
2016-12-13 19:00:59 +01:00
Klaus Basan
2163fd9b01
refs #808 , CSimulatorInternals
...
* renamed from CSimulatorSetup to CSimulatorInternals
* removed the FSX class, no longer needed
* utility functions for CNameVariantPair
2016-12-13 19:00:58 +01:00
Klaus Basan
871a1dd321
Prevent killing timer with wrong id
2016-12-13 19:00:52 +01:00
Roland Winklmeier
2e5176ebcc
Set timer id to invalid once it got killed
...
After two consecutive calls to CSimulatorFsx::reset(), the timer was
killed again in the second call. This caused an internal Qt warning,
since the id is unknown after it got killed in the first call.
2016-12-13 19:00:51 +01:00
Mathew Sutcliffe
132ffa9ec2
refs #802 Fixed Clang warning (read beyond the end of a string literal).
2016-12-13 19:00:48 +01:00
Mathew Sutcliffe
5080c47288
refs #802 Fixed Clang warnings.
2016-12-13 19:00:47 +01:00
Klaus Basan
42549760ed
refs #789 , support for aircraft out of FSX reality bubble
...
* such aircraft will be tried to be added again
* removed qeueud adding as it was not solving the problem
2016-12-13 18:59:54 +01:00
Klaus Basan
94d6b8d6b8
refs #789 , improvements to try to solve FSX issue in driver
...
* more asserts to find issues
* limit number of exceptions displayed
* reset() function (there was an issue with not cleaned up values)
* using CSimConnectObjects and adjustments for the previous changes
2016-12-06 09:47:07 +01:00
Klaus Basan
9deedf1e10
refs #789 , improvements when addressing FSX driver issue
...
* added new utility funtion is model list / aircraft list
* added setters/getters for CSimConnectObject
* added setters/getters for InterpolationStatus / PartsStatus
* added CSimConnectObjects (better encapsulation)
2016-12-06 09:47:04 +01:00
Klaus Basan
3f6cef1c9f
refs #796 , allow to toggle full interpolation
...
* add setup class, metadata registration, property index ...
* removed enableDebugMessages, added setInterpolatorSetup
* adjusted contexts
* used in interolator
2016-12-06 09:47:01 +01:00
Mathew Sutcliffe
e25785d09b
Fixed wrong CLogMessage constructor being used
...
nullptr was being implicitly converted to a null C-style string
via the initializer_list constructor of CLogCategoryList.
refs #790
2016-12-06 09:46:52 +01:00
Mathew Sutcliffe
b5dfd15d66
When dealing with pitch and bank as signed ints, it is desirable to
...
round down, rather than toward zero, to get a linear distribution.
refs #790
2016-12-06 09:46:51 +01:00
Mathew Sutcliffe
f4d7474941
[FS9] Removed needless constructors
2016-12-06 09:46:50 +01:00
Mathew Sutcliffe
c427052354
[FS9] Using auto to avoid mindless duplication
2016-12-06 09:46:49 +01:00
Roland Winklmeier
6f5193a74f
[FS9] Read and update own aircraft model via FSUIPC
...
FS9 plugin did not detect own aircraft model under all circumstances.
FS9 does not initially send it when connecting - only
during initial selection and if it is changed later. In order
to get the initial model if swift is started while FS9 was already
running, read it regularly from FSUIPC.
2016-12-06 09:46:46 +01:00
Roland Winklmeier
55b19d2f74
[FS9] Move MPChangePlayerPlane sending into its own member function
2016-12-06 09:46:45 +01:00