Klaus Basan
6be0586fbc
Ref T709, normalize degrees to +/i180degs
2019-08-11 23:15:56 +01:00
Klaus Basan
5e9be9e96e
Ref T709, return 0 if there is no camera position (nullptr)
2019-08-11 23:15:55 +01:00
Klaus Basan
917d9bb3e7
Ref T709, style
2019-08-11 23:15:55 +01:00
Klaus Basan
cd06c52cb7
Ref T709, only update settings if changed
2019-08-11 23:15:55 +01:00
Klaus Basan
5a8f41611b
Ref T709, changed DBus function to get/setSettingsJson, disambiguate from get/setSettings (returning CSettings)
2019-08-11 23:15:54 +01:00
Klaus Basan
761c45c547
Ref T709, further aircraft camera pos. checks and init zoom to 1.0
...
Attempts to avoid the follow aircraft crash
2019-08-11 23:15:54 +01:00
Klaus Basan
972cca9fed
Ref T709, update labels every n-th frame
2019-08-11 23:15:53 +01:00
Klaus Basan
034cd0c8f3
Ref T709, check position for "follow aircraft"
2019-08-11 23:15:53 +01:00
Klaus Basan
384b50ff80
Ref T709, changed to settings provider
...
* CPlugin is the provider
* it is "kept" in DBus object for traffic, service, weather
2019-08-11 23:15:52 +01:00
Klaus Basan
ba7b97df11
Ref T709, removed unused includes and style
2019-08-11 23:15:52 +01:00
Klaus Basan
c97f1974d7
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-08-11 23:15:52 +01:00
Klaus Basan
cb4d291621
Ref T709, ctor from JSON string
2019-08-11 23:15:51 +01:00
Klaus Basan
5170f3b500
Ref T709, changed to MACRO INFO_LOG
2019-08-11 23:15:50 +01:00
Klaus Basan
4f08fd1083
Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences"
2019-08-11 23:15:49 +01:00
Klaus Basan
a5cefcf18c
Ref T709, style
2019-08-11 23:15:47 +01:00
Klaus Basan
f2bf038501
Ref T709, send XSwiftBusSettings when driver is connected
...
* send from swift -> XPlane side
* also send if settings on swift side are updated
2019-08-11 23:15:47 +01:00
Klaus Basan
81577d29c5
Ref T709, style
2019-08-11 23:15:45 +01:00
Klaus Basan
44d8e043e0
Ref T709, added DBus signatures and use CSettings class in service class
...
* CSettings objects will be shared among all services (traffic, weather, service)
* It is "global" for plugin
2019-08-11 23:15:44 +01:00
Klaus Basan
2d2eca6ccd
Ref T709, added XSwiftBus settings class als based on the same Qt free base class
...
In order to compile included the cpp file
2019-08-11 23:15:44 +01:00
Klaus Basan
6793fbdc43
Ref T709, move case insensitive compare to utils (so it can be used elsewhere)
2019-08-11 23:15:43 +01:00
Klaus Basan
73808d696e
Clang warnings (QtC) static_cast
2019-08-11 23:15:13 +01:00
Mat Sutcliffe
eaa24952d1
Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors.
2019-07-29 23:36:58 +01:00
Klaus Basan
9c5d5c1ae7
Ref T669, improved logging for XPlane model loading
2019-07-23 02:08:43 +02:00
Mat Sutcliffe
70a79bdd10
[XSwiftBus] Fixed UTF-8 ellipsis character indicating wrapped text messages.
2019-06-26 22:08:47 +01:00
Mat Sutcliffe
81352d8f07
Disable X-Plane's built-in voice ATIS when XSwiftBus is active.
2019-06-26 22:08:46 +01:00
Mat Sutcliffe
24d45b7f85
Update libxplanemp.
2019-06-26 22:08:45 +01:00
Mat Sutcliffe
c3f7173d21
Ref T476 Static asserts to ensure array and non-array datarefs are used correctly.
2019-06-26 22:08:45 +01:00
Roland Rossgotterer
013bd08b5f
Fix segfault when a parser error occurred before any parsed CSL plane
2019-05-16 10:12:51 +02:00
Roland Rossgotterer
8943db5b2b
Revert "[xSwiftBus] Automatically find and load CSL packages"
...
This reverts commit 61adfefa7a .
2019-05-15 17:19:56 +02:00
Roland Rossgotterer
aebf07511e
[XSwiftBus] Allocate big memory buffers on the heap instead of stack
2019-05-14 11:37:54 +02:00
Mat Sutcliffe
9c07326462
Treat an OBJ8_AIRCRAFT command with too many arguments as merely a warning.
...
The aircraft can still be successfully loaded.
2019-05-13 11:21:06 +02:00
Roland Rossgotterer
61adfefa7a
[xSwiftBus] Automatically find and load CSL packages
...
ref T657
2019-05-13 11:21:05 +02:00
Roland Rossgotterer
267a9720da
Don't skip CSL package parsing after an error occurred
...
Summary:
This patch fixes X-Plane CSL package parsing to no longer skip the rest
of the package when an error occurred. Instead CSL planes are marked
having errors and are removed after the full package has been parsed.
Reviewers: #gatekeepers, msutcliffe
Reviewed By: #gatekeepers, msutcliffe
Maniphest Tasks: T616
Differential Revision: https://dev.swift-project.org/D101
2019-05-13 11:20:46 +02:00
Klaus Basan
c51dce8bfd
Style
2019-05-13 11:20:44 +02:00
Mat Sutcliffe
1ecf46071f
Fix build error in MSVC 2019 RC.
2019-04-12 14:54:47 +01:00
Roland Rossgotterer
821e0b10b6
Fix assert in DBus if dbus_server_listen returned NULL
...
ref T589
2019-04-11 22:12:11 +01:00
Roland Rossgotterer
6b17f847e9
Fix and improve xswiftbus version mismatch warning
2019-04-11 22:12:03 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Roland Rossgotterer
7a2ed1433d
[XSwiftBus] Add more Linux library dependencies
2019-02-22 20:36:28 +00:00
Roland Rossgotterer
b775d99dc4
[XSwiftBus] Apply XPLM 2.1 packaging structure
2019-02-22 20:36:28 +00:00
Mat Sutcliffe
d1822b6829
Update libxplanemp
2019-02-22 20:35:53 +00:00
Roland Rossgotterer
b23583552b
[XSwiftBus] Fix crash when using P2P and no connection has been created
2019-02-22 20:35:50 +00:00
Roland Rossgotterer
27b857abc4
[XSwiftBus] Remove unconditional socket error handling
...
Summary:
Socket errors are handled in libdbus conditionally. There was no need to set an error
on any kind of error code.
This caused libdbus to drop our P2P connection, since MacOS regularly raised
EAGAIN warning on the socket which seems to be expected behavior.
Reviewers: #gatekeepers
Maniphest Tasks: T513
Differential Revision: https://dev.swift-project.org/D95
2019-02-22 20:35:21 +00:00
Roland Rossgotterer
4c99ac4fa9
Fix typo
2019-02-22 20:35:17 +00:00
Mat Sutcliffe
f4a0df315d
Ref T488 Fixed undefined behaviour in g2clib and libxplanemp.
2019-02-22 20:34:58 +00:00
Mat Sutcliffe
7cb581f865
Ref T488 Fixed cppcheck warnings.
2019-02-22 20:34:57 +00:00
Mat Sutcliffe
5a17f43a5b
Ref T488 Update cppcheck suppressions.
2019-02-22 20:34:56 +00:00
Roland Rossgotterer
4c15193693
Read deploy_ratio as ArrayDataRef and not as single DataRef
...
Summary:
deploy_ratio is an array dataref of size 10. Reading it via XPLMGetDatad
returned always 0.0 as invalid.
Reviewers: #swift_pilot_client, msutcliffe
Reviewed By: #swift_pilot_client, msutcliffe
Maniphest Tasks: T474
Differential Revision: https://dev.swift-project.org/D77
2019-02-22 20:34:51 +00:00
Mat Sutcliffe
8979b5257e
Fixed clazy warnings: returning void expression.
2019-02-22 20:23:34 +00:00
Mat Sutcliffe
228ab8602c
Ref T459 Using 8.33 kHz spacing COM radio datarefs.
2019-02-22 20:23:30 +00:00