Commit Graph

45 Commits

Author SHA1 Message Date
Klaus Basan
80e97f749f [XSwiftBus] Misc. style fixes 2020-06-12 18:42:38 +01:00
Mat Sutcliffe
4ca3a925ce [xswiftbus] FramePeriodSampler: hook into a different render phase
Was previously using cockpit phase,
which wouldn't work when the view was external.
2020-06-12 18:42:24 +01:00
Mat Sutcliffe
e50bb6d5c7 [xplane] Add monitoring of the number of minutes behind due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
377b2f6a3e [xplane] Add monitoring of the number of track miles lost due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Mat Sutcliffe
f056d4fcd6 New schema for the 4th segment of the swift version number
Based on a count of the number of commits since
any of the first 3 segments were changed.
2020-01-07 19:57:26 +00:00
Mat Sutcliffe
516c8a2fce [xswiftbus] Added FPS monitoring 2020-01-07 19:57:26 +00:00
Mat Sutcliffe
836eb107a3 Smart xswiftbus compatibility check based on git commit SHA-1
This is more tolerant that the simple check based on version numbers.
Different versions can be compatible if they have the same SHA-1 when
considering only those files that can influence xswiftbus.
2020-01-07 19:57:25 +00: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
713972ad7c Checks to avoid issues during the XPlane startup.
Those here are precautionary.
2019-09-16 22:41:25 +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
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
55690b423f Ref T709, review points
* overload "normalize"
* renamed to CSettingsProvider
2019-09-16 22:41:15 +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
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
bbf341743e Ref T709, changed to MACRO INFO_LOG 2019-09-16 22:40:59 +01:00
Klaus Basan
1440c4d2e9 Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences" 2019-09-16 22:40:57 +01:00
Klaus Basan
cbd93da1c6 Ref T709, send XSwiftBusSettings when driver is connected
* send from swift -> XPlane side
* also send if settings on swift side are updated
2019-09-16 22:40:56 +01:00
Klaus Basan
f6690136f2 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-09-16 22:40:54 +01:00
Klaus Basan
9b424d7287 Clang warnings (QtC) static_cast 2019-09-16 22:40:51 +01:00
Mat Sutcliffe
eff001048c [XSwiftBus] Fixed UTF-8 ellipsis character indicating wrapped text messages. 2019-09-16 22:40:03 +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
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
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
bd222f3c97 Fix segfault if number is bigger than size of airports 2018-10-07 16:17:25 +02:00
Roland Winklmeier
ab45757c8d [XSwiftBus] Add message window menu items
- Popup window when a new message arrives
- Automatically hide window message after 5s

ref T359
2018-10-03 03:03:40 +02:00
Roland Winklmeier
cfc9c3166e Decouple flightloop processing from DBus
There are needs to not only run DBus tasks, but also different generic
tasks during the processing loop.
2018-10-03 03:03:40 +02:00
Roland Winklmeier
a19ccabf35 Refactor shared X-Plane model parser in common header only functions
ref T290
2018-08-24 21:27:00 +02:00
Roland Winklmeier
59da68da5e Delay setting the DBusConnection for a DBusObject
Previously, the DBusconnection had to be set at construction time and could
not be changed over the DBusObject life time. Now a new connection can be
set anytime and as often as required.
The shared ownership is now also properly implemented by shared pointers.

ref T291
2018-08-07 20:40:40 +02:00
Klaus Basan
631ffdb191 Explicit cast to avoid compile warning on Win64 2018-05-08 16:06:33 +02:00
Klaus Basan
0d76cc8d3e Formatting 2018-05-08 16:06:33 +02:00
Roland Winklmeier
45a846da03 Fix clang warnings 2018-05-08 16:06:30 +02:00
Roland Winklmeier
6a8ae67e06 [xswiftbus] Make xswiftbus completely Qt free 2018-05-08 16:06:30 +02:00
Roland Winklmeier
b0a8fcaa45 [xswiftbus] Remove BlackMisc dependency
There were only very few classes used from Blackmisc after the interpolator
was moved to the driver. Therefore replace those few classes with
a simple alternative and remove BlackMisc from xswiftbus.
2018-05-08 16:06:30 +02:00
Roland Winklmeier
d77931e5ec [xswiftbus] Replace QtDBus with a libevent driven C++ wrapper on top of libdbus
QtDBus was the main component of xswiftbus' Qt dependency. This is the
first preparation step to get xswiftbus Qt free.
The new implementation is based on the low level libdbus library, which
was also in use by QtDBus itself. But instead of QtDBus, we use now a thin
C++ wrapper. To keep DBus handling async, libevent is used to monitor
timeouts and fds.
2018-05-08 16:06:29 +02:00
Klaus Basan
9827353f32 Ref T131, formatting 2018-04-05 02:53:33 +02:00
Roland Winklmeier
64ea29dd39 Don't show message window again once it was hidden
The message window was shown again after a new message.
2018-04-05 02:53:07 +02:00
Mathew Sutcliffe
c5a3db49b0 Request own aircraft info upon connecting to XSwiftBus
Summary:
Ref T83
Also removed an unused parameter of the "own aircraft changed" signal of XSwiftBus.

Reviewers: #swift_developers, rwinklmeier

Reviewed By: #swift_developers, rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T83

Differential Revision: https://dev.swift-project.org/D63
2017-11-23 22:15:41 +00:00
Mathew Sutcliffe
bc80fd3bd5 [feature][XPlane] Set own aircraft model string when own aircraft changes.
Summary:
Refactored parts of CAircraftModelLoaderXPlane::parseFlyableAirplanes into static method extractAcfProperties that can be called by xswiftbus.

Used extractAcfProperties in xswiftbus to provide the model string to the driver. Implemented CSimulatorXPlane::ps_emitOwnAircraftModelChanged.

Implements T74.

Reviewers: rwinklmeier

Reviewed By: rwinklmeier

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D23
2017-05-14 17:21:39 +01:00
Mathew Sutcliffe
4a4dea8d4d Rename xbus to xswiftbus
Summary:
I wanted to rename xbus because its relation to //swift// is not immediately clear from the name.

xswiftbus seems reasonable.

Reviewers: #swift_pilot_client, kbasan

Reviewed By: kbasan

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D14
2017-05-05 23:07:11 +01:00