Commit Graph

351 Commits

Author SHA1 Message Date
Mat Sutcliffe
39907bf7ea [XP driver] fixed bug that inverted engines on/off state 2020-06-12 18:42:30 +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
4bfa5d5f40 Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition 2020-01-25 16:55:51 +00:00
Klaus Basan
785dc7f016 [XPlane][FG] Q_UNREACHABLE removal follow up
* removed CSimulatorXPlane::connectionFromString as this only works for session DBus
* renamed to "checkConnectionViaSessionBus"
* discussed around here: https://discordapp.com/channels/539048679160676382/539925070550794240/668105458300485652
2020-01-18 18:46:19 +01:00
Mat Sutcliffe
20a2f3b9e7 [XP driver] Using unsigned for timer call counters, to avoid UB on overflow 2020-01-13 18:53:30 +00:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Klaus Basan
72c3abb1e7 [xswiftbus] display FPS in simulator data window
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +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
Mat Sutcliffe
48d1521d3a Correct filename extension 2020-01-07 19:57:25 +00:00
Klaus Basan
a924b5e78b Improved (error) message if owner is empty 2020-01-07 19:57:23 +00:00
Klaus Basan
f80e093a0a Ref T717, function to send parts/situation for testing and in the model browser 2019-09-16 22:41:37 +01:00
Klaus Basan
6151f434c6 Ref T717, simulator "is test" conditions where required 2019-09-16 22:41:37 +01:00
Klaus Basan
6f27032f5c Ref T717, XPlane function to push back situation/parts (surfaces)
* directly update after an aircraft has been added
* push_back functions
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
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
105db27fa8 Avoid ASSERT in XPlane "rapid shutdown" 2019-09-16 22:41:23 +01:00
Klaus Basan
aa765e9adb Style 2019-09-16 22:41:20 +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
0b728053f0 Ref T709, smaller style changes 2019-09-16 22:41:17 +01:00
Klaus Basan
26afc5160d Improved logging of "adding aircraft" so we can see details such as the model string 2019-09-16 22:41:17 +01:00
Klaus Basan
d947baf344 Ref T709, doxygen 2019-09-16 22:41:17 +01:00
Klaus Basan
741843d0c6 Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly) 2019-09-16 22:41:14 +01:00
Klaus Basan
e908593847 Ref T709, style 2019-09-16 22:41:13 +01:00
Klaus Basan
b539964906 Ref T709, style 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
5ebf119acb Ref T709, added "follow aircraft distance" and timestamp, removed old settings 2019-09-16 22:40:57 +01:00
Klaus Basan
8845d1d35c Ref T709, style 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
49a9a767a3 Ref T709, change XPlane driver to TXSwiftBusSettings, send/receive functions 2019-09-16 22:40:55 +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
b36172437b Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors. 2019-09-16 22:40:45 +01:00
Mat Sutcliffe
cb8eb6569e Improved the readability of the loadCslPackages function.
Summary:
In this function, a local class `Prefix` is used to represent the path
of a CSL package and to test whether a model path is a subpath of that
path. To avoid false positives, a trailing `/` character is appended.

This lead to confusing code where a `/` is appended in the first loop
and then chopped in the second loop. Instead, encapsulate the append
and the chop inside the `Prefix` class.

Differential Revision: https://dev.swift-project.org/D107
2019-09-16 22:40:43 +01:00
Klaus Basan
08d7cddfe5 Style 2019-09-16 22:40:40 +01:00
Klaus Basan
b8ba7940ff Style 2019-09-16 22:40:35 +01:00
Klaus Basan
fab65c23b1 Ref T554, changed signature to pass model (object) and not only modelstring
Allows to test if data have changed before "remembering them for auto publish"
2019-09-16 22:40:34 +01:00
Klaus Basan
7ee2814c73 Smaller improvements in matching messages/style 2019-09-16 22:40:30 +01:00
Klaus Basan
cb77279b4d Renamed function id Directory utils and added string only version 2019-09-16 22:40:27 +01:00
Klaus Basan
58b7c875bc Minor performance improvement of subdir check
* follow T689
* no need to always get and init simulator directory as it will not change
2019-09-16 22:40:12 +01:00
Mat Sutcliffe
73d3a341da Ref T689 Add validation that XP model directories are within the XP sim directory. 2019-09-16 22:40:06 +01:00
Klaus Basan
0360704b0b Ref T683, "updateOwnSituationAndGroundElevation"
* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
2019-09-16 22:39:50 +01:00
Klaus Basan
daeea07090 Ref T683, style 2019-09-16 22:39:49 +01:00
Klaus Basan
71e09b008f Ref T681, renamed to rememberElevationAndSimulatorCG and style 2019-09-16 22:38:08 +01:00
Klaus Basan
a86e98ca3a Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed 2019-09-16 20:29:35 +01: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
61adfefa7a [xSwiftBus] Automatically find and load CSL packages
ref T657
2019-05-13 11:21:05 +02:00
Roland Rossgotterer
d21e9e60e8 Don't stop connection to xswiftbus if versions do not match
Keep the version error to bring it to the users attenion and convince him
to upgrade. But let the connection proceed since the interface changes so
rarely.
This also adds version information for swift and xswiftbus sides.

Reviewers: #gatekeepers, msutcliffe

Subscribers: msutcliffe

Maniphest Tasks: T628

Differential Revision: https://dev.swift-project.org/D104
2019-05-13 11:20:47 +02:00