Commit Graph

2627 Commits

Author SHA1 Message Date
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
5542fcd7d3 Unified how settings are read in audio context 2020-01-18 02:46:56 +01:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Klaus Basan
72c3abb1e7 [xswiftbus] display FPS in simulator data window
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +00:00
Klaus Basan
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +00:00
Mat Sutcliffe
4a0d8e9864 Fixed most Qt 5.14 deprecation warnings 2020-01-07 19:57:25 +00:00
Mat Sutcliffe
1f0c65135d Use qmake $$files function to match wildcards
See https://bugreports.qt.io/browse/QTBUG-81003
2020-01-07 19:57:24 +00:00
Klaus Basan
081e663997 FSD text message 2020-01-07 19:57:24 +00:00
Klaus Basan
30036b6b82 Dot command "help" 2020-01-07 19:57:24 +00:00
Klaus Basan
b3ad7ccdd9 Query real names for ATC stations again,
so we learn about changed "persons" (i.e. real name)

see https://discordapp.com/channels/539048679160676382/632279098244333581/655740912336633868
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
a6a787fdd7 Metar, slight style adjustments 2020-01-07 19:57:23 +00:00
Klaus Basan
091fa5f338 [Audio] Get/set audio device volume (this is the device's value, NOT the logical AFV value) 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
8dd0a06c81 [AFV], Ref T731, Ref T739 remember audio settings in launcher 2020-01-07 19:57:22 +00:00
Klaus Basan
b9ea40e8d1 [FSD] wallop message sending incomplete fixed 2020-01-07 19:57:22 +00:00
Klaus Basan
ef4640e66f [Hotkey] Style 2020-01-07 19:57:21 +00:00
Klaus Basan
9dbb441e44 [FSD] Send auth(entication) messages as direct messages 2020-01-07 19:57:21 +00:00
Klaus Basan
c104e2105c [FSD] FSD range can be disabled and range restriction only for VATSIM
Rational FSC eV does not want restriction
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
c2d2d05566 Log.message 2020-01-07 19:57:21 +00:00
Klaus Basan
64b17b787c Ref T761, relay original sender AND recipient
* display sent messages of partner callsing as send by myself
* allow PMs from partner as normal PMs
2020-01-07 19:57:21 +00:00
Klaus Basan
a54f804cf1 Ref T761, display partner callsign in adv.login screen
* added context functions
* UI readonly fields
2020-01-07 19:57:21 +00:00
Klaus Basan
172fa1ddc8 Fix linker error with newer gcc versions 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
34f9fb89d6 [FSD] Start FSD client in own thread (CContinuousWorker) 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
928a76a042 Minor tweaks for METAR info 2020-01-07 19:57:20 +00:00
Klaus Basan
0876379729 [FSD] Style 2020-01-07 19:57:20 +00:00
Klaus Basan
efee7968dc [AFV] Using the aliased frequencies can be enabled/disabled
* flag
* "dot command"
* register audio "dot commands" for audio
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
f6f719a67e [FSD] "dot" command to restrict max. range for FSD positions
Allows to limit the range in which we handle FSD positions
(This also means FSD planes range)
2020-01-07 19:57:19 +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
02e1427210 [FSD] Preparations of FSD send message for queued messages
* messageToFSDString function
* sendMessageString in FSDClient to send the message itself
2020-01-07 19:57:19 +00:00
Klaus Basan
f38bfc5cf9 [FSD] Style 2020-01-07 19:57:19 +00:00
Klaus Basan
59c6a7ad93 [FSD] Avoid that all matchings are triggered "at the same time"
* the signal from CAirspaceMonitor is connected internally
* this signal is closely related to receive the FSD ICAO data
* and then it is emitted from the context again but staggered
2020-01-07 19:57:19 +00:00
Klaus Basan
0fd1e34d03 [FSD] Verify we really have FSD ICAO data
Problem: Sometime there are aircraft without ICAO daza

* check that we really have received ICAO data
* if not, query data again
* if nothing helps, use data as best guessed (by flightplan data)
2020-01-07 19:57:19 +00:00
Klaus Basan
e9f8be013c [FSD] Style and minor fix, check for network ICAO 1st and not for simulator model (correct display) 2020-01-07 19:57:19 +00:00
Klaus Basan
ff2ab95367 Style 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
8c8073ca0e [FSD] Correctly named ProController (message type) 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
325c869413 [FSD] Style 2020-01-07 19:57:18 +00:00
Klaus Basan
8633502cdb [FSD]FSD improvements and fixes
* Ignore new unused messages
* Correctly increase statistic
2020-01-07 19:57:18 +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
99a02c9b04 [FSD] minor fix "else if" 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