Commit Graph

431 Commits

Author SHA1 Message Date
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +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
Mat Sutcliffe
cecec6107c Fixed clazy warnings: use QStringRef. 2019-02-22 20:23:38 +00:00
Mat Sutcliffe
c71d358648 Fixed clazy warnings: unnecessary containers and containers being detached. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Klaus Basan
4dae61c171 Ref T442, ATC station list split per suffix 2018-12-05 04:03:44 +01:00
Klaus Basan
0da8d85999 Ref T442, utility functions for logically sorting by suffix 2018-11-30 22:02:04 +01:00
Klaus Basan
7f7cf2e031 Ref T436, underflow detection for FSX
* utility functions
* force gnd flag to avoid underflow
2018-11-22 19:55:04 +01:00
Klaus Basan
781db93355 Ref T432, find ATC station for frequency utility functions 2018-11-16 02:49:56 +01:00
Klaus Basan
943a6af2ba Ref T415, fixes as reported by RP
* also the CVariant format needs to be parsed
* fixed typo in toFlightPlanRemarks
* see https://swift-project.slack.com/archives/G96QTUBEG/p1542054827021700
2018-11-16 02:49:55 +01:00
Roland Winklmeier
ee8af9f4c6 Filter other pilots ghost aircraft when flying in shared cockpit mode
When flying in shared cockpit mode, both pilots log into the network.
One as pilot to be visible to ATC and other pilots. The other one as
observer. For the observing user, the pilots aircraft needs to be filtered.
Filter algorithm is using the same schema as vPilot does.

ref T427
2018-11-16 02:49:54 +01:00
Klaus Basan
7807a05f2a Ref T429, functions for angle, heading and situation
* normalize angle -180/+180 when set on situation
* clamp vector function
2018-11-16 02:49:53 +01:00
Klaus Basan
67dcd11e73 Ref T422, functions to set XPDR mode 2018-11-06 01:41:48 +01:00
Klaus Basan
19a910f887 Ref T424, FP can have an altitude string which is just send as it is 2018-11-06 01:41:48 +01:00
Klaus Basan
0dbaf989e9 Ref T424, renamed altitude string functions and added "roundedToNearest100ft" 2018-11-06 01:41:48 +01:00
Klaus Basan
4172701586 Ref T422, functions to toggle/set XPDR mode 2018-11-05 01:39:51 +01:00
Klaus Basan
2b51094b02 Ref T412, Ref T227, lists/parts improvements
* Ctor with timestamp
* detect/improved state detection (e.g. "takeoff")
* objects outside range
2018-11-04 17:42:47 +01:00
Klaus Basan
8c3c55afec Ref T415 style 2018-11-04 17:42:46 +01:00
Klaus Basan
620cbe3882 Ref T415, vPilot format and improved voice capability parsing 2018-11-04 17:42:46 +01:00
Klaus Basan
ebd1e78dd4 Ref T415, altitude function with return value 2018-11-04 17:42:46 +01:00
Klaus Basan
437f529767 Ref T415, FP functions to parse SB4 and vPilot format. SB4 implemented, vPilot not yet 2018-11-04 17:42:45 +01:00
Klaus Basan
dec0b12ea2 Ref T397, checks on vector to find root cause NaN/inf issue
* sometimes very large numbers (xxE38) in vector
* sometimes vectors which look correct, but exceed [-1,1]
2018-11-04 17:42:40 +01:00
Klaus Basan
abe363494b Ref T385, added propertyBy functions for airport ICAO + style 2018-10-07 16:17:27 +02:00
Klaus Basan
428c37fd97 Ref T384, check for ATC suffix 2018-10-05 17:39:59 +02:00
Klaus Basan
1195eba417 Ref T385, OBS aircraft callsign
* in CAirspaceMonitor::onIcaoCodesReceived we know we deal with aircraft only and explicitly deal with it
* in other cases we can not tell if we deal with aircraft/ATC callsign for sure, we ignore invalid callsigns
2018-10-05 17:39:59 +02:00
Roland Winklmeier
ebe23a694b Fix GCC7 fallthrough warnings 2018-10-05 17:39:58 +02:00
Klaus Basan
da3b5bb763 Ref T372, callsign clear 2018-10-05 17:39:56 +02:00
Klaus Basan
5dbf4468f2 COM frequency rounding + testcase 2018-10-05 17:39:56 +02:00
Klaus Basan
01cfe644d3 Ref T373, utility functions in COM system 2018-09-25 03:16:22 +02:00
Klaus Basan
418324e64f Ref T372, Ref T370 testing with emulated driver fixes
* added ground speed
* changed altitude parsing to CPqString::SeparatorsBestGuess
* signal when parts form is set
2018-09-25 01:39:08 +02:00
Klaus Basan
a9f0cebe13 Ref T345, fixed bug: only one station must be updated with the new message 2018-09-17 18:28:53 +02:00
Klaus Basan
4913b93724 Style 2018-09-17 18:28:52 +02:00
Klaus Basan
1f3650e7e2 Avoid empty callsign objects 2018-09-17 18:28:51 +02:00
Klaus Basan
c3cf39e102 Renamed to simplifyAccents (actually the chars are not removed, but replaced) 2018-09-17 18:28:29 +02:00
Klaus Basan
6c9804a1df Ref T353, clean string used with remarks and route
* use ASCII only characters
* simplify string
* max. length
2018-09-17 18:28:24 +02:00
Klaus Basan
c675ef5c32 Ref T335, misc. improvements of value classes/list
- verifyModelData
- setModelType
- getCallsignsAsString
2018-09-12 17:40:51 +02:00
Klaus Basan
ad37e67a6b Ref T345, improved handling of info message in CAtcStation 2018-09-12 17:40:32 +02:00
Klaus Basan
62601bde9d Ref T345, fixed value class CInformationMessage
- added property functions
- used ITimestampBased
2018-09-12 17:40:31 +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
Klaus Basan
a9d728f451 Ref T338, utility functions / parsing
- nthIndexOf
- measurement unit can be parsed case insensitive
- CSimpleCommandParser::remainingStringAfter from n-th space
- improved frequency parsing
2018-09-12 17:01:41 +02:00
Klaus Basan
3d2d999f7a Ref T338, style 2018-09-09 02:55:16 +02:00
Klaus Basan
a2486981bd Style 2018-09-08 15:36:25 +02:00
Klaus Basan
651ead5b51 Ref T335, misc improvements in value objects
* allow to reset PBH for terrain probe
* check for null altitude before converting
* function isTerrainProbe for model/aircraft
2018-09-08 15:36:25 +02:00
Klaus Basan
8286da4395 Fixed Doxygen warning 2018-09-01 03:12:44 +02:00
Klaus Basan
260585e35c Ref T308, performance optimized fromDatabaseJsonCaching
* maps for id/object
* caching fromDatabaseJsonCaching
* fixed CAircraftModel::fromDatabaseJson wrong prefix
2018-08-29 03:08:23 +02:00
Klaus Basan
c43fba9abd Ref T308, style 2018-08-29 03:08:21 +02:00
Klaus Basan
84bf19697c Ref T310, utility functions for statistics (incl.renaming) 2018-08-28 01:15:49 +02:00
Klaus Basan
fd751e66c2 Faster QString handling in aircraft ICAO code 2018-08-27 18:58:12 +02:00