Klaus Basan
85a3a0ee99
Style
2019-09-16 22:41:36 +01:00
Roland Rossgotterer
e0b52db77a
[MinGW] Fix many unresolved symbols
2019-09-16 22:41:33 +01:00
Klaus Basan
369e69e610
[libxplanemp] functions to debug the render phases, can be used as needed
2019-09-16 22:41:32 +01:00
Klaus Basan
902d18339a
Improved manual changing of aircraft and reset
...
* deferred adding and reset
* HTML overlay messages
* debug code for DBus messages
2019-09-16 22:41:32 +01:00
Klaus Basan
0e3cba35ff
Minor style changes
2019-09-16 22:41:31 +01:00
Klaus Basan
153602d99e
[libxplanemp] Different containers for render and TCAS planes
2019-09-16 22:41:28 +01:00
Klaus Basan
f8c73c772a
Continue to send CTraffic values if a plane is NOT found, do NOT return
2019-09-16 22:41:27 +01:00
Klaus Basan
9ec1d54908
Ref T610, added COM async getter functions and bundled async calls
...
* reduced the number of async XSwiftBus calls by getting multiple values at once
* the concept was already used for getOwnAircraftSituationDataAsync
* now also used for COM, parts, model and lights
* As Qt restricts to 8 parameters not further bundled
* new COM1 getter functions for receive/volume/transmit
2019-09-16 22:41:26 +01:00
Klaus Basan
d1fac2e1a4
Ref T610, support for XPlane COM volume and receive/transmit
...
* proxy and
* DBus service functions
2019-09-16 22:41:26 +01:00
Klaus Basan
62f5ddab99
Follow aircraft allow to zoom in/out
...
* renamed sniffer
* ignore keystrokes if NO aircraft is followed
* allow to zoom in/out my multiplying the distance
2019-09-16 22:41:25 +01:00
Klaus Basan
0d29471144
Reset keydown (follow aircraft) if mouse no longer moves
2019-09-16 22:41:25 +01:00
Klaus Basan
713972ad7c
Checks to avoid issues during the XPlane startup.
...
Those here are precautionary.
2019-09-16 22:41:25 +01:00
Klaus Basan
3ea8f9c24f
Log starting of the XSwiftPlugin
...
Rational: If XPlane crashes before that log it is most likely something else
Remark: Logger macros using namespace, so they can be used outside XSwiftBus
2019-09-16 22:41:24 +01:00
Klaus Basan
eed46f47a9
[libxplanemp] Fix for the TCAS crash and wrong TCAS distance
...
Closing the gaps:
* Pro: The dataref list is being cleaned up and no "0" entries are needed
* Con: A blip can be re-assigned, maybe loosing map "follow aircraft"
See also https://discordapp.com/channels/539048679160676382/539925070550794240/613834869713272845
2019-09-16 22:41:24 +01:00
Klaus Basan
55d0eb97d0
Ref T709, also log model name (so we can see if a particular model causes a crash)
2019-09-16 22:41:21 +01:00
Klaus Basan
2793502839
[libxplanemp] Ref T715, draw translucent (blend) part after lights (as in the original code)
2019-09-16 22:41:20 +01:00
Klaus Basan
8a6a4ae7d1
Ref T709, use std::advance for message iterator
2019-09-16 22:41:20 +01:00
Klaus Basan
aa765e9adb
Style
2019-09-16 22:41:20 +01:00
Klaus Basan
fab6e677a8
Ref T709, updated XSwiftBus service and messages to support settings
2019-09-16 22:41:19 +01:00
Klaus Basan
0da1881003
Ref T709, added support for taxi lights in XPlane, using the "bundle lights" flag
2019-09-16 22:41:19 +01:00
Klaus Basan
024360a5df
Ref T709, avoid pure virtual assert by removing the JSON ctor, which is calling a virtual function in the ctor
2019-09-16 22:41:18 +01:00
Klaus Basan
0b728053f0
Ref T709, smaller style changes
2019-09-16 22:41:17 +01:00
Klaus Basan
d947baf344
Ref T709, doxygen
2019-09-16 22:41:17 +01:00
Mat Sutcliffe
7295ac5331
Ref T709 Encapsulate the CSettingsProvider pointer in a CSettingsAware base class.
2019-09-16 22:41:17 +01:00
Mat Sutcliffe
463ed4bfbd
Ref T709 Made settings provider non-static.
2019-09-16 22:41:16 +01:00
Mat Sutcliffe
349da3633b
Ref T709 Prevent instantiation of CXSwiftBusSettingsQtFree, to avoid slicing.
...
- Constructors and destructor are protected.
- Therefore destructor doesn't need to be virtual.
- objectUpdated is pure virtual, so the class is abstract.
- Both derived classes are declared final.
2019-09-16 22:41:16 +01:00
Mat Sutcliffe
2e571b72fd
Update libxplanemp.
2019-09-16 22:41:15 +01:00
Klaus Basan
93bf6cb44c
Ref T709, avoid camera below ground if aircraft is on ground
2019-09-16 22:41:15 +01:00
Klaus Basan
55690b423f
Ref T709, review points
...
* overload "normalize"
* renamed to CSettingsProvider
2019-09-16 22:41:15 +01:00
Klaus Basan
add649c321
Ref T709, improved normalization and space pressed handling, unit test
2019-09-16 22:41:14 +01:00
Klaus Basan
cdffc11c99
Ref T715, use "night texture mode" in traffic class
2019-09-16 22:41:13 +01:00
Klaus Basan
e908593847
Ref T709, style
2019-09-16 22:41:13 +01:00
Klaus Basan
0605c2d139
Ref T709, static "ownAircraftString" and improved logging
2019-09-16 22:41:12 +01:00
Klaus Basan
61072c70ce
Ref T709, further checks and voodoo as "follow aircraft still crashes
2019-09-16 22:41:12 +01:00
Klaus Basan
f491f19cfc
Log XSwiftBus version when starting
2019-09-16 22:41:12 +01:00
Klaus Basan
918f22ba16
Ref T709, add colon for "swiftbus:" log messages
2019-09-16 22:41:05 +01:00
Klaus Basan
79d0109e5a
Ref T709, check on screen w/h and report warning instead of info. Also log missing traffic object.
2019-09-16 22:41:05 +01:00
Klaus Basan
be261a2dd4
Ref T709, normalize degrees to +/i180degs
2019-09-16 22:41:04 +01:00
Klaus Basan
2df218ff99
Ref T709, return 0 if there is no camera position (nullptr)
2019-09-16 22:41:04 +01:00
Klaus Basan
b539964906
Ref T709, style
2019-09-16 22:41:04 +01:00
Klaus Basan
447152bd13
Ref T709, only update settings if changed
2019-09-16 22:41:04 +01:00
Klaus Basan
79f347cc1b
Ref T709, changed DBus function to get/setSettingsJson, disambiguate from get/setSettings (returning CSettings)
2019-09-16 22:41:03 +01:00
Klaus Basan
73b8e606e2
Ref T709, further aircraft camera pos. checks and init zoom to 1.0
...
Attempts to avoid the follow aircraft crash
2019-09-16 22:41:02 +01:00
Klaus Basan
4a0101feed
Ref T709, update labels every n-th frame
2019-09-16 22:41:02 +01:00
Klaus Basan
01f90fc9bf
Ref T709, check position for "follow aircraft"
2019-09-16 22:41:01 +01:00
Klaus Basan
f9c87326fb
Ref T709, changed to settings provider
...
* CPlugin is the provider
* it is "kept" in DBus object for traffic, service, weather
2019-09-16 22:41:01 +01:00
Klaus Basan
97926eee26
Ref T709, removed unused includes and style
2019-09-16 22:41:01 +01:00
Klaus Basan
006fbc88ae
Ref T709, settings provider to get settings
...
* allows to use the provider without and overhead
* single source, can be made threadsafe
Signed-off-by: Klaus Basan <klaus.basan@klausbasan.de >
2019-09-16 22:41:01 +01:00
Klaus Basan
7004e85117
Ref T709, ctor from JSON string
2019-09-16 22:41:00 +01:00
Klaus Basan
bbf341743e
Ref T709, changed to MACRO INFO_LOG
2019-09-16 22:40:59 +01:00