Commit Graph

425 Commits

Author SHA1 Message Date
Lars Toenning
1a1b5429d5 Partially revert "Remove unused stringutils methods"
This partially reverts commit 0c1a5a5c97.
2022-06-05 22:47:41 +02:00
Lars Toenning
0c1a5a5c97 Remove unused stringutils methods 2022-05-25 19:47:34 +01:00
Mat Sutcliffe
59a27a0d72 Send slowfast before ordinary position update
This solves a server-side performance issue.
2022-05-25 19:47:33 +01:00
Mat Sutcliffe
4703edb841 Fix dbus assert when hostname contains non-Latin characters 2022-02-20 14:33:07 +00:00
oktal3700
dfeb281368 [FSD] Send incremental parts packets to pilots only
I was just told by Mike and Ross that ACC packets should be sent to 94836 (pilot clients) not 94835 (all clients).
2022-02-01 18:19:25 +00:00
Mat Sutcliffe
4b00c0e3bf Bump Vatsim protocol version number 2022-01-29 16:07:54 +00:00
Mat Sutcliffe
a4448dddc6 Issue #94 Implement $SF packet to toggle visual pilot data sending
Still send a visual pilot data update at the slow rate of
every 5 seconds when visual pilot data update is disabled.
2022-01-29 14:44:46 +00:00
Mat Sutcliffe
6d66066d6a Add height AGL and nose gear angle in VisualPilotDataUpdate 2022-01-29 14:40:55 +00:00
Mat Sutcliffe
242a10c9d6 Issue #94 Add new FSD packet type VisualPilotDataUpdate 2022-01-29 14:40:54 +00:00
Mat Sutcliffe
0faa7ed8fc Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation 2022-01-03 16:38:47 +00:00
Mat Sutcliffe
3f2e5b0b69 Remove barely-used aggregate headers 2021-09-18 01:44:58 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
09b58b8084 Issue #22 Error when FL doesn't end in 0 or 5 should be warning 2021-08-21 18:38:55 +01:00
Mat Sutcliffe
bd7d6ac17c Issue #113 Add value class for SIMDATA packet 2021-08-10 16:07:34 +01:00
Mat Sutcliffe
33209fa1eb Use std::as_const (C++17 feature) 2021-07-13 17:56:31 +01:00
Mat Sutcliffe
b81cc9a9dc Issue #77 Break cyclic dependency between CDirectoryUtils and CNetworkUtils by factoring out canPing method 2020-12-19 18:50:39 +00:00
Mat Sutcliffe
4df055afbe Issue #77 Break cyclic dependency between CIcon and CIconList by using CSequence<CIcon> 2020-12-19 18:50:38 +00:00
Mat Sutcliffe
5eb34a5df7 [FSD] PBH unittest 2020-09-16 23:00:07 +01:00
Mat Sutcliffe
d1b6776c44 Issue #77 Break dependency of sequence on propertyindex 2020-08-29 23:25:50 +01:00
Mat Sutcliffe
bb8aeaa3d0 Fix build with Clang on Windows 2020-08-29 14:16:17 +01:00
Mat Sutcliffe
b80114213d Issue #77 Move mixin classes to separate files
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
8e065a8fef Issue #77 Factor out parts of CDirectoryUtils into CSwiftDirectories
CDirectoryUtils is utilities for manipulating directories.
CSwiftDirectories is getters that return directories used by swift.
2020-08-29 14:16:12 +01:00
Mat Sutcliffe
2f22904540 Issue #73 Unittest for CIdentifier dbus object path conversion 2020-08-16 14:54:36 +01:00
Mat Sutcliffe
151810d6fc Issue #15 Shared state unittest 2020-08-01 19:48:36 +01:00
Mat Sutcliffe
073f1549a2 Issue #15 Added CVariant::matches()
If the contained object type has a matches() method, CVariant::matches()
will call that method and return its result.
(This is a utility to allow using CVariant to represent an event subscription.)
2020-08-01 13:18:56 +01:00
Mat Sutcliffe
6aa9f0cc25 Issue #15 Created CPromise, a way to set the result of QFuture objects
This enables several new features:
* singleShot can return a QFuture.
* a version of invokeMethod that returns a QFuture.
* CGenericDBusInterface::callDBusFuture, which returns a QFuture.
2020-08-01 13:18:55 +01:00
Mat Sutcliffe
07f6c8b73c Issue #15 CVariant can convert between CVariantList and our other container classes 2020-08-01 13:18:55 +01:00
Lars Toenning
6cf7571dff Add user-defined literals for physical quantities
Fixes #14
2020-07-17 10:33:01 +02:00
Lars Toenning
368dd1f46d [PQ] Add unary minus operator 2020-07-17 10:33:01 +02:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
1d72d89461 [FSD] Fix UNIT tests, as pilot rating now is correctly send 2020-06-12 18:42:51 +01:00
Klaus Basan
1ab1e8ca70 [FG] Fixed UnitTest which got broken by the FG "modelstring" changes 2020-06-12 18:42:46 +01:00
Klaus Basan
92d53a4077 [FG] Do not send modelstring or a shorter livery string for FG
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Roland Rossgotterer
f98e8f00e1 Add missing linker library 2020-06-12 18:42:40 +01:00
Klaus Basan
f840244bdb [FSD] Adjust UNIT tests for *-1 fix 2020-06-12 18:42:38 +01:00
Klaus Basan
a1ea9a2e10 Fixed unit test warnings as discussed, see https://discordapp.com/channels/539048679160676382/539925070550794240/663426372651319336 2020-01-07 19:57:28 +00:00
Mat Sutcliffe
48d1521d3a Correct filename extension 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Klaus Basan
3a4f114308 [FSD] In order to get the UNIT tests working, we need to call the "FSD direct message" send function
* added sendDirectMessage and renamed other function to sendQueudedMessage
* UNIT tests call "direct message" sending
* minor style changes
2020-01-07 19:57:20 +00:00
Klaus Basan
f38bfc5cf9 [FSD] Style 2020-01-07 19:57:19 +00:00
Roland Rossgotterer
0b8db1a612 [FSD] Don't use CCallsign object to send incremental parts update to special receiver
A client query can be sent to any type of receiver,
not only to valid callsigns. For example also to "@94835".

This fixes the corrupted receiver for incremental aircraft parts.
2020-01-07 19:05:42 +00:00
Roland Rossgotterer
0a730ff5dd [FSD] Make sure sysuid is properly zero terminated 2019-10-23 00:38:26 +02:00
Klaus Basan
4f4474336d [FSD], use consolidateTextMessage again 2019-10-23 00:38:25 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
de75cdc214 [AFV] Ref T730 incorporated MS fixes
see https://discordapp.com/channels/539048679160676382/623947987822837779/633025547999510530
2019-10-16 17:40:32 +02:00
Klaus Basan
1d9cd50463 [AFV] Fix context UNIT test crash
* crash: A crash occurred in C:\jenkins\workspace\swift_wip_fsd_and_afv_client\build\out\release\bin\testcontext.exe.
* ASSERT in const QList<QAudioDeviceInfo> allQtDevices2 = QAudioDeviceInfo::availableDevices(QAudio::AudioInput)
* figured out it fails in a Qt console app, runs in a widget app
* see https://discordapp.com/channels/539048679160676382/623947987822837779/631939335255752704
2019-10-11 19:00:54 +01:00
Mat Sutcliffe
ad627fa351 [FSD] Fixed failing test and crashing test 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
077476c138 [FSD] Style 2019-10-11 19:00:39 +01:00
Klaus Basan
81ade55cb5 Ref T730, added QT multimedia in some projects, as it is now needed in blackmisc 2019-10-11 18:59:58 +01:00
Klaus Basan
5e3b758e44 Ref T732, renamed to CFsdClient adjustments 2019-10-11 18:59:05 +01:00