Commit Graph

7228 Commits

Author SHA1 Message Date
Klaus Basan
5193745d12 Ref T397, improved handling and check of interpolated situation 2018-11-04 17:42:43 +01:00
Klaus Basan
b054aa1d31 Ref T397, init (fill) spline values 2018-11-04 17:42:43 +01:00
Klaus Basan
6de663b635 Ref T397, allow to set adjusted time 2018-11-04 17:42:43 +01:00
Klaus Basan
48d5e0daec Ref T397, interpolation / interpolant fixes
* fixed fillSituationsArray to return correct initial situations
* VERIFY ranges and times to avoid inf/NaN and issues in general
* if invalid situations, continue with last situation
* count invalid situations
2018-11-04 17:42:43 +01:00
Klaus Basan
62c532ae1f Ref T397, fix CLANG unsigned warnings 2018-11-04 17:42:43 +01:00
Klaus Basan
842e283be0 Ref T397, count invalid situations in log 2018-11-04 17:42:43 +01:00
Klaus Basan
0b74493eeb Ref T397, sort by timestamp, then adjust offset + function which ignores overlapping situations 2018-11-04 17:42:43 +01:00
Klaus Basan
c010149686 Ref T397, add menu items for aircraft view 2018-11-04 17:42:43 +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
1fecf65a40 Fix parsing of X-Plane ACF file headers
So far the 'version' literal was compared case sensitive. So we did not
parse ACF files which had a capitalized literal. Instead the comparison
should be case insensitive. To do that we convert all strings to lower
case before comparing.

ref T378
2018-11-04 17:42:43 +01:00
Roland Winklmeier
92790f1330 Refactor updateCockpit from X-Plane
X-Plane returns com frequencies in 10 kHz, so we don't have the necessary
precision for the 25 kHz spacing. By using CComSystem::setFrequencyActive
we get the rounding to the system wide spacing for free.
Without that correction we run into system wide issues in code that assumes
the correct frequency spacing is in place.

ref T399
2018-11-04 17:42:42 +01:00
Roland Winklmeier
1addcf631a Refactor the remote hotkeys to avoid round trips
The previous implementation was hard to follow and maintain. Instead of
doing intentional rounds trips, we use now a two way approach. GUI is
automatically forwarding remote actions by calling "callHotkeyActionRemotely"
through DBus. Core on the other hand, emits a signal "remoteHotkeyAction"
that is processed in a different function in GUI.
On both sides, actions from the same local machine are filtered.

ref T402
2018-11-04 17:42:42 +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
Mat Sutcliffe
46def05670 Ref T405 Guard against recursive locks on CWorkerBase::m_finishedMutex. 2018-11-04 17:42:42 +01:00
Klaus Basan
9dc154fe72 Adjusted wizard
* always start with 1st page (legal)
* select XSwiftBus copy page as default.
2018-11-04 17:42:42 +01:00
Klaus Basan
e9386f676a Fixed issue seen in crash report 2018-11-04 17:42:42 +01:00
Klaus Basan
f4822b69dd Allow to save "selected objects" only as JSON 2018-11-04 17:42:42 +01:00
Klaus Basan
6d696cfd91 UI fixes 2018-11-04 17:42:42 +01:00
Roland Winklmeier
5ee8bbe467 Properly initialize and cleanup DirectInput
ref T391
2018-11-04 17:42:42 +01:00
Roland Winklmeier
4b3d3bba48 Destroy DirectInput helper window during shutdown 2018-11-04 17:42:42 +01:00
Roland Winklmeier
294b854ed8 Adjust to the VATSIM policy to skip the last 5 kHz in 25 kHz spacing
When receiving a radio message, round to the closest frequency.
When sending them, remove the last 5 kHz if existing.

ref T399
2018-11-04 17:42:42 +01:00
Klaus Basan
fbfa014fff Login component style 2018-11-04 17:42:42 +01:00
Klaus Basan
4123101e34 Use Qt::QueuedConnection for UI 2018-11-04 17:42:42 +01:00
Klaus Basan
c6025e5994 Use BLACKTEST_MAIN in tests to avoid "QWARN : BlackMiscTest::CTestXPlane::acfPropertiesTest() QCoreApplication::applicationDirPath: Please instantiate the QApplication object first" 2018-11-04 17:42:42 +01:00
Roland Winklmeier
f6ea2a9107 Move CInputManager from singleton to CApplication member
The main reason why CInputManager was singleton is the easy access across
the code. That had the negative side effect that time of destruction was
at a very late stage of the shutdown and could not be controlled by us.
My moving it to CApplication, the access is equally easy (using sApp) and
allows to be cleaned up properly during graceful shutdown.

ref T391
2018-11-04 17:42:42 +01:00
Klaus Basan
705a56b1cb Ref T401, adjusted settings used in components 2018-11-04 17:42:42 +01:00
Klaus Basan
bcc2f557a1 Application info style 2018-11-04 17:42:41 +01:00
Klaus Basan
895bb6b58f Ref T401, info and setting object for crash dumps 2018-11-04 17:42:41 +01:00
Klaus Basan
5e070f1f8c Crash dump related, check getMappingComponent 2018-11-04 17:42:41 +01:00
Klaus Basan
1fbe914cdc Ref T367, Ref T400 global setup loading dialog adjustments
* little delay before retry is triggered
* check for sGui
2018-11-04 17:42:41 +01:00
Klaus Basan
47b12b66cf Ref T367, Ref T400 setup reader improvements
- guards for Qtimer::singleShot
- check empty URLs
- only skip reading if already loaded from web
2018-11-04 17:42:41 +01:00
Klaus Basan
fe99eb261b Ref T367, Ref T400 signal and read handling
* connect this->setupHandlingCompleted directly with reader + renaming
* do not waitForSetup if request already failed
2018-11-04 17:42:41 +01:00
Klaus Basan
9dfc3808c1 Ref T367, Ref T400 global setup flags for web and file reading 2018-11-04 17:42:41 +01:00
Klaus Basan
ffc903de34 Ref T367, Ref T400 style 2018-11-04 17:42:41 +01:00
Klaus Basan
c781da60d2 Ref T346, fixed typo 2018-11-04 17:42:41 +01:00
Klaus Basan
fd9744c73d Ref T397, using receivedPositionFixTsAndGetOffsetTime for normal and interim positions 2018-11-04 17:42:41 +01:00
Klaus Basan
b476da6640 Ref T397, further checks 2018-11-04 17:42:41 +01:00
Klaus Basan
9dd06c4c84 Ref T397, fixed "disable" for fast positions 2018-11-04 17:42:41 +01:00
Klaus Basan
00d859d5b3 Ref T297, style and remarks for T297 2018-11-04 17:42:41 +01:00
Klaus Basan
5d4bab4be0 Allow to disable size grip 2018-11-04 17:42:41 +01:00
Klaus Basan
d7de7785af Ref T398, style 2018-11-04 17:42:41 +01:00
Klaus Basan
dec0b12ea2 Ref T397, checks on vector to find root cause NaN/inf issue
* sometimes very large numbers (xxE38) in vector
* sometimes vectors which look correct, but exceed [-1,1]
2018-11-04 17:42:40 +01:00
Klaus Basan
4038729e82 UI adjustment to find root cause for crash dump 127 2018-11-04 17:42:32 +01:00
Roland Winklmeier
c0529635da Update vatlib and portaudio RELEASE_0.8.6 2018-10-10 16:38:41 +02:00
Klaus Basan
80f2dec764 Smaller UI adjustments 2018-10-08 22:30:25 +02: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
c683d59994 Correct Longitude column index in CAirportListModel 2018-10-08 22:12:33 +02:00
Klaus Basan
00868c8147 Ref T391, temp. workaround to avoid shutdown crash 2018-10-07 18:58:00 +02:00
Klaus Basan
24ee4da4f9 Ref T391, style 2018-10-07 18:56:53 +02:00
Roland Winklmeier
f90ad72d9e CJoystickButton fixes 2018-10-07 16:17:28 +02:00