Commit Graph

215 Commits

Author SHA1 Message Date
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
Mat Sutcliffe
db928c8b0e Fixed clazy warnings: QString::arg. 2019-02-22 20:23:42 +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
ab4b4c5067 Style 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
e4e39b6579 Added comments 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
a475d12339 Ref T376, voice (vatlib) getter/setter for CVoiceSetup 2018-10-05 17:39:55 +02:00
Klaus Basan
e51bbd1f5d Ref T376, adjusted CServer class ctor 2018-10-05 17:39:55 +02:00
Roland Winklmeier
28b404d065 Make Vatsim Voice UDP port configurable and 3290 the default 2018-10-05 17:39:55 +02:00
Roland Winklmeier
321c195f4b Change voice room callsign format to "callsign (userid)"
So far the callsign, was the callsign itself only. However, other VATSIM
clients expect it to include the user id in brackets.

ref T354
2018-10-03 03:03:40 +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
Roland Winklmeier
24ebc2ce7f Set the actually opened audio device from vatlib
In the past, the optional arguments currentInput and currentOutput were not
used. Therefore we never knew which device was actually opened by vatlib.
This caused the Audio UI to be completely unsychronized from the reality
when loading swiftgui.

ref T337
2018-09-12 20:30:33 +02:00
Klaus Basan
1dcedfc540 Minor style fixes 2018-09-12 17:40:48 +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
956ffd949d Style 2018-08-26 15:26:49 +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
Klaus Basan
b671c2a0a5 Style, removed redundant CForm overrides 2018-08-07 20:41:06 +02:00
Klaus Basan
a2bca21715 Ref T286, moved server settings into "network" namespace (not VATSIM specific) 2018-07-09 22:30:33 +02:00
Klaus Basan
c1208dd68c Return const & 2018-07-03 21:02:32 +02:00
Klaus Basan
6fb620a8f6 Clearer warning 2018-06-13 13:59:43 +02:00
Roland Winklmeier
990035dd6a Update externals
* vatlib 0.9.8 (without opus codec)
2018-06-13 13:59:40 +02:00
Klaus Basan
abfa12c1ec Ref T272, skip VATSIM readers if (for sure) connected to an other eco system
Remark: This requires the server (=> ecosystem) to be connected, otherwise VATSIM data (before that connection) are still read as default
2018-06-01 01:30:31 +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
Klaus Basan
a1b2e92684 Ref T261, move default offset times to FSD setup
* make it available in "blackmisc"
* remove dependency from "VATSIM"
2018-05-08 16:06:46 +02:00
Klaus Basan
0d76cc8d3e Formatting 2018-05-08 16:06:33 +02:00
Klaus Basan
bedfb5eb67 Ref T259, Ref T243 align timestamp values to qint64 2018-05-04 23:03:26 +02:00
Klaus Basan
9dabef447f Ref T259, Ref T243 directly convert to Client capabilities enum in vatlib, do not use an interim enum 2018-04-13 23:36:47 +02:00
Klaus Basan
011f31ad2b Formatting 2018-04-13 23:36:37 +02:00
Klaus Basan
f8eedda946 Ref T259, Ref T243 use FSDSetup in VATLIB 2018-04-05 02:54:56 +02:00
Klaus Basan
2a0b81de5b Ref T259, Ref T243 client provider used with network classes
Also adds a dummy testing class
2018-04-05 02:54:46 +02:00