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
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
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
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
Klaus Basan
4dfb973a5b
Ref T259, Ref T243 moved the "awareness" classes to the interfaces
...
* allows access to the awareness objects if only the interface is available
* can change the provider via the interface
2018-04-05 02:54:34 +02:00
Klaus Basan
03af49348b
Ref T259, Ref T243 formatting
2018-04-05 02:53:55 +02:00
Roland Winklmeier
ff37704a59
Filter user password from raw FSD message
...
Everytime a login packet is sent, it contains the password in clear text.
This was also written to file log and users might send this file to
developers without knowing.
The password is now filtered by comparing all FSD messages until the
login packet is found.
2018-02-22 01:26:30 +01:00
Klaus Basan
78e61e25ac
Formatting
2018-02-16 12:13:35 +01:00
Klaus Basan
80f5d9b595
Ref T240, use ITimestampBased / ITimestampObjectList
...
* using the existing base classes (interfaces) gives you plenty of useful utility functions
* hint: we do not init with current timestamp as default as this is relatively slow
2018-02-04 08:59:39 +01:00
Klaus Basan
6e933b089c
Ref T243, track position updates to determine offset times directly in network vatlib
...
* track position updates and keep records of offset times
* hence parts and positions can already have a dynamic offset time
* parts config received will include this offset time
2018-02-04 08:53:54 +01:00
Klaus Basan
e9e0ae1ff4
Ref T241, Ref T243 formatting and minor tweaks
...
* unified how we write thread_local const
* ASSERTs
* formatting
2018-02-04 08:53:48 +01:00
Roland Winklmeier
b12002caa2
Improve the performance and usability of the raw FSD message display
...
* Replaced QListView with QPlainTextEdit
* Added filter options for packet type and text
* Option to globally disable/enable the feature. Default disabled
Maniphest Tasks: Ref T240
2018-02-02 21:26:25 +01:00
Klaus Basan
8eabd468af
Use StringBuilder in network vatlib
2018-01-30 20:30:49 +01:00
Klaus Basan
a3bbb72185
Simplify (remove duplicate spaces) text messages
2018-01-30 20:30:46 +01:00