Commit Graph

105 Commits

Author SHA1 Message Date
Mat Sutcliffe
7955d0a06e Remove workarounds for fixed bugs 2021-07-13 17:56:23 +01:00
Roland Rossgotterer
7e04a2c40f [MSFS] Rename FS2020 to MSFS 2021-07-13 17:51:58 +01:00
Mat Sutcliffe
31c0f20ac6 Style 2021-07-13 17:51:57 +01:00
Mat Sutcliffe
ece3173573 Remove unused method declarations 2021-07-13 17:51:57 +01:00
Mat Sutcliffe
3c3b4cd2fe Issue #77 Move some templated member functions into their respective header files 2020-12-19 18:50:37 +00:00
Mat Sutcliffe
371c1f4f7c Issue #77 Break cyclic dependency between CLogCategory and numerous classes 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
63e8de8f00 Issue #77 getLogCategories returns a simple QStringList instead of our own class 2020-12-19 18:50:34 +00:00
Roland Rossgotterer
7a76c6cade [FSD] Normalize heading to 360 deg before sending 2020-09-16 23:00:07 +01:00
Mat Sutcliffe
5f18d87e0b Issue #77 Break dependency of loghandler and tokenbucket on time and units 2020-08-29 14:16:20 +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
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Mat Sutcliffe
92edbb90c2 Issue #77 Refactor to inline functions 2020-08-29 14:16:10 +01:00
Mat Sutcliffe
b8a4ad9270 [doxygen] Fix exclusion of private details of FSD implementation 2020-08-26 22:45:15 +01:00
Mat Sutcliffe
2ae0352e75 [doxygen] Fix broken groupings 2020-08-01 19:48:37 +01:00
Lars Toenning
f987b81e6d Add feedback when .wallop message is sent
This does the following:
- Opens a message-tab called "SUP" when a .wallop message is sent.
- Throws a validation error if another message is directly send into this "SUP" channel as another .wallop should be used.
2020-07-26 19:46:06 +02:00
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
tzobler
66a1a87805 protocol type -MD added 2020-06-12 19:07:57 +01:00
Klaus Basan
991ba5ede8 [FSD] Style and comments 2020-06-12 18:42:56 +01:00
Roland Rossgotterer
9fa3221abc Replace deprecated endl with Qt::endl 2020-06-12 18:42:54 +01:00
Klaus Basan
7b49f56695 [FSD] Use errorString for socket errors 2020-06-12 18:42:53 +01:00
Klaus Basan
15b3ac2daa [FSD] Also log/display socker error string 2020-06-12 18:42:52 +01:00
Klaus Basan
1a71d8afe1 Style 2020-06-12 18:42:52 +01:00
Klaus Basan
388138203e [FSD] Send correct pilot rating, use threadsafe getters in some places
The thread safety is still premature for the FSD client class.
However, most likely no critical as those values have to be preset and never change.
2020-06-12 18:42:49 +01:00
Klaus Basan
4d7468f913 [FSD] Check attributes of full JSON parts 2020-06-12 18:42:48 +01:00
Klaus Basan
afa5ba1fee [FS9] Doxygen, no need to make enum value const 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
Klaus Basan
ce9b9e3e5b [FSD] Gradually increase number of read lines from FSD socket
* Avoid overflow by gradually reading more lines
* Also improved sending in the same way
2020-06-12 18:42:44 +01:00
Klaus Basan
f56adb7af4 [FSD] Ignore IVAO RegistrationInfo 2020-06-12 18:42:42 +01:00
Klaus Basan
5eaa8db1a2 [FSD] use Serializer::fromQString function, to static_cast
see https://discordapp.com/channels/539048679160676382/539925070550794240/694955298217263124
2020-06-12 18:42:42 +01:00
Klaus Basan
81049cd835 [FSD] Adjusted logging of unknown FSD types, queries ....
* made those simple log. messages
* only log. those once

See https://discordapp.com/channels/539048679160676382/539925070550794240/694927156748222475
2020-06-12 18:42:42 +01:00
Klaus Basan
17ab66e50a [FSD] Added "FSD" as prefix for messages 2020-06-12 18:42:40 +01:00
Klaus Basan
077677134c [FSD] Clearer "too many lines" message 2020-06-12 18:42:40 +01:00
Klaus Basan
15353a1f1d Based on the Linux crash, already added some newer SIMS 2020-06-12 18:42:39 +01:00
Klaus Basan
24f3750843 [FSD] Use *-1 instead of "~" (not) for P/B inversion
* see discussion https://discordapp.com/channels/539048679160676382/539925070550794240/687390301530095634
* we now use *-1 inversion, not "~" (vPilot also uses *-1)
* rational: with "~" 0 becomes -1 (that is why we saw so many -1 P/B values on ground)
2020-06-12 18:42:37 +01:00
Klaus Basan
5decc7d917 [FSD] Use qFuzzyCompare for double comparison
fixes "warning: comparing floating point with == or != is unsafe"
2020-06-12 18:42:37 +01:00
Klaus Basan
84ae160b14 PBH, minor style adjustments 2020-06-12 18:42:37 +01:00
Klaus Basan
f6c5e6f3cb [FSD] Demote ASSERT to VERIFY 2020-06-12 18:42:31 +01:00
Roland Rossgotterer
15ced5a77f [FSD] Ignore client query type 'NEWATIS' from private FSD servers 2020-06-12 18:42:30 +01:00
Klaus Basan
12f50dc92c [FSD] Check for empty string in FSD serializer
* follow up of Q_UNREACHABLE
* without that check the UNIT test fails, as BLACK_AUDIT is called
2020-01-23 04:08:03 +01:00
Klaus Basan
bda20f8ff1 Ignore queries in FSD serializer, follows "Q_UNREACHABLE" fixes
See https://discordapp.com/channels/539048679160676382/539925070550794240/669186795790925848
2020-01-22 19:46:14 +01:00
Klaus Basan
bd39b0638c Q_UNREACHABLE fix, minor style adjustments 2020-01-18 20:15:24 +01:00
Klaus Basan
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +00:00
Klaus Basan
081e663997 FSD text message 2020-01-07 19:57:24 +00:00
Klaus Basan
524a9b3793 ATC stations, style and minor fixes 2020-01-07 19:57:23 +00:00
Klaus Basan
e1498adc8e Minor fixes, style
* make sure ATC view is updated when disconnected
* prepared rounding, can be enabled at any time
2020-01-07 19:57:22 +00:00
Klaus Basan
9dbb441e44 [FSD] Send auth(entication) messages as direct messages 2020-01-07 19:57:21 +00:00
Klaus Basan
42648f0c12 [FSD] Slightly adjusted sending of queued FSD messages 2020-01-07 19:57:21 +00:00
Klaus Basan
4e2a47fc41 Ref T761, use "preset" callsign if available
Avoids issue with partner callsign
2020-01-07 19:57:20 +00:00
Klaus Basan
f07ca09424 Ref T761, partner callsign message relay (swift with co-pilot)
* handle server error messages correctly as "error"
* (relayed) sender can be ATC or aircraft
* relay private messages correctly
2020-01-07 19:57:20 +00:00
Klaus Basan
4ef17fed6a [FSD] Threaded (worker) FSD client, based on CContinuousWorker
* locks
* call functions in own thread
2020-01-07 19:57:20 +00:00