Commit Graph

141 Commits

Author SHA1 Message Date
Mat Sutcliffe
eff001048c [XSwiftBus] Fixed UTF-8 ellipsis character indicating wrapped text messages. 2019-09-16 22:40:03 +01:00
Mat Sutcliffe
a3ff42793f Disable X-Plane's built-in voice ATIS when XSwiftBus is active. 2019-09-16 22:40:03 +01:00
Mat Sutcliffe
bc2af4fc77 Update libxplanemp. 2019-09-16 22:40:02 +01:00
Mat Sutcliffe
f39b277413 Ref T476 Static asserts to ensure array and non-array datarefs are used correctly. 2019-09-16 22:40:02 +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
Mat Sutcliffe
ceb6ff7451 Ref T459 Update xswiftbus dataref classes to the latest available and use C++11. 2019-02-22 20:23:30 +00:00
Mat Sutcliffe
acdbf9d43d Ref T470 CTraffic::getRemoteAircraftData uses NaN to represent
an unknown vertical offset.
2019-02-22 20:23:30 +00:00
Mat Sutcliffe
73ec162f62 Update libxplanemp for T469 and T470. 2019-02-22 20:23:29 +00:00
Mat Sutcliffe
307e170d5f Integrate swift version numbering into the json config system. 2019-02-22 20:23:26 +00:00
Roland Rossgotterer
901cf34bc8 Fix X-Plane follow aircraft
This commit fixes two bugs:
- The camera position was never initialized until space was pressed. The camera position was therefore random
- Instead of saving the camera position, we actually want to save the delta camera position.

ref T465
2018-12-11 17:42:49 +01:00
Roland Rossgotterer
6246315b90 Set xswiftbus' dep_target configuration to no_check_exist globally
The configuration for MacOS branch got removed in a previous commit which
caused DBus and libevent libraries not to be installed since they are not
yet existing in the expected path at the time when qmake runs.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
49bd38d722 [XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
55c2e2e559 [XSwiftBus] Add getVersionNumber to DBus API
This allows to get the version number of XSwiftBus itself. It maintains the same version as swift (e.g. 0.8.7 without the time stamp) and can be used to compare it for compatibility reasons.

ref T394
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
ec8245ea53 [XSwiftBus] Give PQ variables a unit
ref T313
2018-11-29 20:54:26 +01:00
Roland Winklmeier
1c1d2b23d7 Install and package libevent_core on Mac OS 2018-11-29 20:54:25 +01:00
Mat Sutcliffe
df563d5b29 Fixes needed to compile swift with MSVC with the /permissive- switch
which enables more C++ standard conformance.
2018-11-16 02:49:55 +01:00
Roland Winklmeier
f8cc92341a Unregister DBusObject callback when the object is destroyed
Without that cleanup, DBusConnection might try to call a dangling
std::function in case the DBusObject was removed before. That is for
example happening during shutdown.
2018-11-16 02:49:51 +01:00
Klaus Basan
ab4b4c5067 Style 2018-11-04 17:42:45 +01:00
Roland Winklmeier
1a63c00a71 Change CService::getAircraftLivery() to return livery without path
CService::getAircraftLivery() is expected to return the livery name itself
without the full path.

ref T378
2018-11-04 17:42:43 +01:00
Roland Winklmeier
9bb75a6f2e Rotate camera in follow plane view only if space key is pressed
This commits merges the two orbit plane functions together in CTraffic.
The separation was necessary since XSwiftBus needed to be started manually
and until started, the pointer to CTraffic was invalid. Since XSwiftBus
is started automatically, it can be merged into one function again.
This commit also adds the feature to rotate the camera only if the space key
is pressed. This is equal to how FSX/P3D do it. Using the right mouse was
not possible, since X-Plane SDK does not offer that option.

ref T360
2018-11-04 17:42:42 +01:00
Roland Winklmeier
773a5191a3 Delay the start of XSwiftBus
Starting XSwiftBus in CPlugin constructor called methods that are not
supported during XPluginEnable. Therefore delay the start until X-Plane
is fully loaded.
2018-10-08 22:16:08 +02:00
Roland Winklmeier
910b536dee Automatically start XSwiftBus
In the past, XSwiftBus required to be started from the menu. This was a
historic behaviour since it made it possible to start it with different
DBus connection options. Since those are now moved into a config file,
it can be started right away.
2018-10-07 16:17:26 +02:00
Roland Winklmeier
bd222f3c97 Fix segfault if number is bigger than size of airports 2018-10-07 16:17:25 +02:00
Roland Winklmeier
f3f3ebc306 Cleanup aircraft in X-Plane after DBusConnection drops
ref T392
2018-10-07 16:17:25 +02:00
Roland Winklmeier
ebe23a694b Fix GCC7 fallthrough warnings 2018-10-05 17:39:58 +02:00
Roland Winklmeier
4387c3b433 Fix missing override keyword 2018-10-05 17:39:58 +02:00
Roland Winklmeier
616cc241f4 [XSwiftBus] Convert setPlanesTransponders to list setter
ref T374
2018-10-03 03:03:41 +02:00
Roland Winklmeier
65d00dca6e [XSwiftBus] Fix plural in CTraffic::setPlanesSurfaces 2018-10-03 03:03:41 +02:00