Commit Graph

123 Commits

Author SHA1 Message Date
Klaus Basan
891a058f17 Ref T698, enable network stats for restricted distributions 2019-09-16 22:40:17 +01:00
Klaus Basan
a5a6a111e1 Ref T698, write network statistics as file when logged off from network
* enum to string (VatClientQueryType)
* also trace calls in "chronological order"
* added some more "increaseStatisticsValue" calls
2019-09-16 22:40:17 +01:00
Klaus Basan
5e7c335a86 Ref T698, skip further processing of aircraft parts (config) if aircraft NOT in range 2019-09-16 22:40:16 +01:00
Klaus Basan
afba7b9697 Ref T698, improved display of statistics 2019-09-16 22:40:15 +01:00
Klaus Basan
821e7e73c9 Ref T698, added remote aircraft context to network class 2019-09-16 22:40:15 +01:00
Klaus Basan
f754154455 Ref T698, functions to count network VATLIB calls to identify packets
* functions in network classes
* context functions
2019-09-16 22:40:14 +01:00
Klaus Basan
693c94c87a Send FP altitude without unit
https://discordapp.com/channels/539048679160676382/539846348275449887/593211815559823367
https://discordapp.com/channels/539048679160676382/539846348275449887/593063154238619649
2019-09-16 22:40:01 +01:00
Klaus Basan
b2b85795e0 Improved VATLIB error messages
* added missing msg.vatServerWrongType
* Message txt

https://discordapp.com/channels/539048679160676382/539925070550794240/593133713022255126
2019-09-16 22:40:00 +01:00
Klaus Basan
f6d078de34 Ref T684, better detection of callsign type for ATC stations
* detection in "CCallsign::unifyCallsign"
* force ATC callsign in nAtisReplyReceived
2019-09-16 22:39:55 +01:00
Klaus Basan
c9846f45ee Avoid colons in VATLIB packets https://discordapp.com/channels/539048679160676382/567983892791951374/585899398387728395 2019-09-16 20:30:00 +01:00
Klaus Basan
a37ce2d258 Ref T668, allow to set an additional time offset via "dot command" 2019-05-23 13:00:27 +02:00
Klaus Basan
f03d2bf36b Ref T632, QPointer for single shot 2019-05-13 11:20:43 +02:00
Klaus Basan
dd1aec056f Ref T601, added chat command 2019-05-13 11:20:34 +02:00
Roland Rossgotterer
a4dae5335d Filter non-ATC like OBS stations
ref T563
2019-04-11 22:11:51 +01:00
Klaus Basan
a4dc89a295 Ref T562, fix 2-letter aircraft ICAO codes
* added constexpr for aircraft ICAO min/max length
* use ICAO designator in FP if there is no "getCombinedPrefixIcaoSuffix"
2019-04-11 22:11:39 +01:00
Klaus Basan
e31fa91052 FP style 2019-04-11 22:11:38 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
6e9d1c7940 Ref T519, only simplify text messages, do not remove accents 2019-02-22 20:35:35 +00:00
Roland Rossgotterer
f9a215a336 Increase ATIS range to be equal with APP/DEP having 150 nm
Summary: The previous 50 nm were too short.

Maniphest Tasks: T481

Differential Revision: https://dev.swift-project.org/D83
2019-02-22 20:35:16 +00:00
Klaus Basan
cb084427ec Unified "simplification" to ASCII only for text messages
Based on the codepage discussion of text messages

* in text message value object still store the unicode string
* the text is only "cleaned" up and Qt "simplified" (do not confuse with conversion to ASCII)
* only place where we simplify to ASCII only is
** in VATLIB
** or the utility
2019-02-22 20:35:05 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Klaus Basan
d89b217e9b PQ parsing using "best guess" strategy as default plus renamings 2019-02-22 20:23:54 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Klaus Basan
db05388bea Ref T431, send airline ICAO designator or VDesignator depending on setup 2018-11-16 02:49:54 +01:00
Roland Winklmeier
420fc40fb2 Remove _OBS callsign suffix when logging in as observer
ref T428
2018-11-16 02:49:54 +01:00
Klaus Basan
0dbaf989e9 Ref T424, renamed altitude string functions and added "roundedToNearest100ft" 2018-11-06 01:41:48 +01:00
Klaus Basan
3fc0f34646 Ref T409, network vatlib, remove "colon"/send special string if there is no model string 2018-11-04 17:42:45 +01:00
Klaus Basan
e727b29753 No "exit" (qFatal) for unknown VATLIB error, just error
Rational: Why shutdown the client in that very case, terminate connection is enough
2018-11-04 17:42:44 +01:00
Klaus Basan
259aab3c10 Ref T397, Ref T297 split "isInterimPositionUpdateEnabledForServer" into 2 functions and ignore incoming interim positions if disabled 2018-11-04 17:42:44 +01:00
Klaus Basan
74ef1e039c Ref T397, Ref T297 dynamic offset times
* calculate avaerage time
* and use that to decide offset time
2018-11-04 17:42:44 +01:00
Klaus Basan
35b8b29d10 Ref T410, preparation and UI adjustments
Foo
2018-11-04 17:42:43 +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
fd9744c73d Ref T397, using receivedPositionFixTsAndGetOffsetTime for normal and interim positions 2018-11-04 17:42:41 +01:00
Klaus Basan
df4ef3f52d Sending wallop message 2018-10-05 17:39:59 +02:00
Roland Winklmeier
ed80bc90a8 Correct the NetworkVatlib ATIS and password regular expressions
The password one was not matching if the integers had multiple digits.
The ATIS one was matching on every random 'z' in any ATIS line.

ref T380
2018-10-05 17:39:58 +02:00
Roland Winklmeier
c0d9aacbb1 Update to new vatlib 2018-10-05 17:39:58 +02:00
Klaus Basan
e668be9259 Ref T372, clear also fast position receivers when aircraft is removed 2018-10-05 17:39:56 +02:00
Klaus Basan
85f7a37c8b Make sure there are no "illegal" characters in text messages 2018-10-03 03:03:39 +02:00
Klaus Basan
99313bd272 Ref T353, remove "." from FP route 2018-09-17 18:28:25 +02:00
Klaus Basan
27f2fe1b57 Ref T339, simulator info message (version) for SUP supervisor 2018-09-12 17:40:42 +02:00
Klaus Basan
1243d6e93a Ref T323, better parsing of altitude values
- assume "24000" also as FL
- epsilon comparison
- use 0-9 char functions
- style
2018-09-12 17:40:24 +02:00
Roland Winklmeier
7a7f1f2df0 Correct the received range of ATIS stations
ATIS stations seem to send 0 NM as their visibility range. That can cause
them to be filtered in the ATC online view.
Overwrite the range value with the default TWR range of 50 NM.
2018-09-12 17:01:50 +02:00
Roland Winklmeier
00abf48047 Initialze onGround for VatPilotPosition and VatPilotInterimPosition
This caused some issues in the calculation of the PBH integer and consequently
an offset of about 30 degrees heading.

ref T327
2018-09-12 17:01:44 +02:00
Klaus Basan
5b7ec38b0a Clear state of Network VATLIB 2018-08-26 15:26:52 +02:00
Klaus Basan
183280fa75 Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.

- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00
Klaus Basan
5ff5c18b32 Avoid Qt warning of unused cmd.line argument (QCommandLineParser: option not defined)
Log msg: QCommandLineParser: option not defined: "clientIdAndKey"
2018-08-16 14:44:04 +02:00
Klaus Basan
9be7572c36 Network VATLIB refactoring
* use qit64 for timestamp related integers
* use valueInteger for PQ integer values (rounding)
2018-08-16 14:44:03 +02:00
Roland Winklmeier
990035dd6a Update externals
* vatlib 0.9.8 (without opus codec)
2018-06-13 13:59:40 +02:00
Klaus Basan
776a096168 Ref T272, network can add as ECO system provider (the server connected knows its ECO system) 2018-06-01 01:30:29 +02:00
Klaus Basan
ab0c34b16a Ref T261, added toFullJson in parts
* needed, since the "is full" attribute needs to be added
* fixed usage in network vatlib
2018-05-08 16:06:49 +02:00