Commit Graph

43 Commits

Author SHA1 Message Date
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
cfb51f3a3f Issue #113 Add SIMDATA packet logic in CFSDClient 2021-08-10 16:07:35 +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
63e8de8f00 Issue #77 getLogCategories returns a simple QStringList instead of our own class 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
2ae0352e75 [doxygen] Fix broken groupings 2020-08-01 19:48:37 +01:00
tzobler
66a1a87805 protocol type -MD added 2020-06-12 19:07:57 +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
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
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
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +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
4ef17fed6a [FSD] Threaded (worker) FSD client, based on CContinuousWorker
* locks
* call functions in own thread
2020-01-07 19:57:20 +00:00
Klaus Basan
0876379729 [FSD] Style 2020-01-07 19:57:20 +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
2adf169a0e [FSD] Do not send all FSD messages at once, but equally distributed one-by-one
Rational: The idea is to distribute the messages, so we also get equally distributed responses
2020-01-07 19:57:19 +00:00
Klaus Basan
5bd64b1a2f [FSD] Made those send functions "real" private which are only used with the UNIT test 2020-01-07 19:57:19 +00:00
Klaus Basan
14192585e2 [FSD] Correctly set queried frequency 2020-01-07 19:57:19 +00:00
Klaus Basan
857d5eb005 [FSD] Overload prevention
* only allow aircraft to be added based on new positions, NOT on received ICAO data anymore
* hardcoded max.range

Discussion: https://discordapp.com/channels/539048679160676382/539925070550794240/643163521999306832
2020-01-07 19:57:18 +00:00
Klaus Basan
911b23e29d [FSD] Style 2020-01-07 19:57:18 +00:00
Klaus Basan
9d53696417 {FSD] Improved FSD socket handling
* restricter number of lines handled at once
* messageTypeToString
* add parsing to statistics
2020-01-07 19:57:18 +00:00
Klaus Basan
ad18149c14 [FSD] Style 2020-01-07 19:57:17 +00:00
Klaus Basan
702ca31b38 [FSD] Smaller fixes, style 2020-01-07 19:57:17 +00:00
Klaus Basan
53de0d56b9 Style 2020-01-07 19:46:17 +00:00
Klaus Basan
0fa9bcb520 Doxygen, style 2020-01-07 19:05:42 +00:00
Roland Rossgotterer
5af2366575 [FSD] Send login immediately after connecting for legacy FSD server 2020-01-07 19:05:41 +00:00
Klaus Basan
c8097cc899 Doxygen 2020-01-07 19:05:40 +00:00
Klaus Basan
0e566a5992 [FSD] Pending connection timeout - avoid that a pending FSD conenction blocks forever 2019-10-24 16:28:14 +02:00
Klaus Basan
5846576aae [FSD] Fixed FSD socket error handling 2019-10-24 16:27:25 +02:00
Klaus Basan
cde18d23aa [AFV] Style, Doxygen 2019-10-24 01:22:56 +02:00
Klaus Basan
148824429c Doxygen, style 2019-10-23 00:38:26 +02:00
Klaus Basan
164e9a3306 [AFV] Ref T730, fixed some FSD client issues
* socket error signal (can be used for further actions)
* socket error logs as CLogMessage::error
* handle socket errors in own function, disconnect for severe error
* send homebase at login
2019-10-23 00:38:26 +02:00
Klaus Basan
be99911372 Style, minor adjustments 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
7a1b5a0237 Minor FSD client text message handling fixes 2019-10-19 02:41:26 +02:00
Klaus Basan
c054f4d307 [FSD] Disable voice room signal (precautionary) 2019-10-18 10:36:25 +02:00
Klaus Basan
ca26ddd225 Ref T730, some adjustments in CFSDClient
* avoid return if value is meant to be in statistics
* removed qFatal, replaced by warning/BLACK_VERIFY
2019-10-11 19:00:14 +01:00
Klaus Basan
a24d948acd Ref T732, FSDClient to CFsdClient + style 2019-10-11 18:59:04 +01:00
Roland Rossgotterer
acf540be34 Long live FsdClient 2019-09-18 13:49:37 +02:00