Commit Graph

61 Commits

Author SHA1 Message Date
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650 clang-format src 2023-04-18 16:07:19 +02:00
Mat Sutcliffe
b3e312e1d3 Use new dataref to compensate for XP12 temperature effect on altitude 2022-11-14 18:12:35 +00:00
Mat Sutcliffe
2ccee127e9 [XP] Get the ground elevation under the own aircraft 2022-02-03 20:43:45 +00:00
Mat Sutcliffe
3f57c66784 Issue #95 [XPlane] Get velocity data from xswiftbus in fast update timer timeout 2022-01-03 16:38:47 +00:00
Mat Sutcliffe
25491c0478 Issue #37 Inhibit monitoring FPS for the first 10 seconds
So we ignore transient FPS drops caused by initial scenery load time.
2021-09-10 18:33:37 +01:00
Mat Sutcliffe
a89ca2d59a Issue #37 Reset FPS counter when network is connected 2021-08-21 18:38:56 +01:00
Mat Sutcliffe
38328d536b Style 2021-07-13 17:56:32 +01:00
Mat Sutcliffe
093138972a Enable C++17 2021-07-13 17:52:01 +01:00
Mat Sutcliffe
1db7969d50 Add missing xswiftbus DBus methods 2021-07-13 17:51:57 +01:00
Mat Sutcliffe
e28df21641 [xswiftbus] Fix UTF-8 bug when displaying text messages
std::string is not UTF-8 aware, so it was possible to create
malformed strings by splitting in the middle of a code point.

The splitting code also did read beyond the end of the input string.

Now we use a Unicode-aware iterator adaptor to help find the
correct place to split the string across multiple lines.
2020-11-24 22:47:22 +00:00
Mat Sutcliffe
bb8aeaa3d0 Fix build with Clang on Windows 2020-08-29 14:16:17 +01:00
Mat Sutcliffe
fb3a611948 Fix mistake in xswiftbus which could crash X-Plane 2020-08-26 22:45:13 +01:00
Mat Sutcliffe
cdd95a3a0b Issue #17 Change FPS hook render phase due to Vulkan changes 2020-08-02 23:01:30 +01:00
Mat Sutcliffe
7c4fe83799 Ref T778 XSwiftBus service emits a signal when scenery is loaded 2020-06-12 18:42:44 +01:00
Klaus Basan
fd3ad207bd [XSwiftBus] Allow to write an updated xswiftbus.conf file
In a distributed core/UI swift we need to write on XPlane side
2020-06-12 18:42:39 +01:00
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