Commit Graph

689 Commits

Author SHA1 Message Date
Klaus Basan
887d1ec401 Ref T246, some upfront formatting 2018-02-09 04:43:54 +01:00
Klaus Basan
e001b0338f Ref T242, utility functions for matching
* search among airline aircraft
* improved logging information
* search among airline ICAO aircraft (which aircraft does the airline use?)
* check ecosystem before merging with VATSIM data
2018-02-09 04:43:47 +01:00
Klaus Basan
10f942e702 Formatting, minor tweaks 2018-02-09 04:43:45 +01:00
Klaus Basan
5d155fb59c Ref T243, adjust offset for timestamp based objects when keeping the order 2018-02-07 02:41:46 +01:00
Klaus Basan
23cd247bd8 Ref T247, utility functions to validate model set 2018-02-07 02:41:44 +01:00
Klaus Basan
84ea7faaca Ref T242, utility functions for improved matching 2018-02-05 03:45:38 +01:00
Klaus Basan
7c7ee65ddc Ref T241, hint asString function (less info, shorter message) 2018-02-05 03:45:30 +01:00
Klaus Basan
5a15e74f63 Ref T241, misc. logger improvements
* string formatting of logger info
* display longer in simulator
* better formatting of message
2018-02-05 03:45:25 +01:00
Klaus Basan
78711487a6 Ref T241, moved inner logger classes out CInterpolationLogger
Reason: More options, such as forward declaration
2018-02-04 09:00:23 +01:00
Klaus Basan
4482e6fdc3 Include order 2018-02-04 09:00:20 +01:00
Klaus Basan
2eb7e602e3 Inperolator log. improvements 2018-02-04 09:00:14 +01:00
Klaus Basan
7c9f2e9aa2 Ref T243, verify parts/positions order (latest first) 2018-02-04 08:59:54 +01:00
Klaus Basan
d903a20f5e Ref T243, use offset times from network vatlib
* no need to check on own situations if the offset time is already set
* use push_frontKeepLatestFirst to ensure order (latest parts/situations first)
2018-02-04 08:59:20 +01:00
Klaus Basan
9fd54864f0 Ref T243, const value in provider to have it in a single place 2018-02-04 08:57:53 +01:00
Klaus Basan
7e0c1033ba Ref T243, use offset times from network vatlib
* changed network config received signature (now with offset time)
* removed code to fix offset time, no longer needed
* using push_frontKeepLatestAdjustedFirst guaranteeing correct order
2018-02-04 08:57:32 +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
Klaus Basan
f99e82ac24 Ref T243, track the interpolated time ("real time" of interpolated situation)
* keep that time in interpolant
* set it for current position
* some comments and renamings
2018-02-04 08:53:45 +01:00
Klaus Basan
6a2435074c Ref T241, further improved interpolation logging
* all interpolation positions can  be logged (3 for spline, 2 for linear)
* interpolated (log) time, setting to real time (i.e. unadjusted time)
* only set logger values with logger attached
2018-02-04 08:50:55 +01:00
Klaus Basan
39533a7508 Ref T231, Ref T236, Ref T238 improved logging "toQString" of hints/setup improved 2018-01-30 20:35:20 +01:00
Klaus Basan
69e2ed6efe Ref T231, Ref T236, Ref T238 improvements based on Unit test
* check for a correct callsign (assert)
* set callsign if missing (fallback)
* resetLastInterpolation - null last inperpolation
2018-01-30 20:35:09 +01:00
Klaus Basan
0a06ad223f Ref T231, Ref T236, Ref T238 improvements of interpolator
* keep last interpolated sitation, removed m_isFirstInterpolation
* allow to obtain the old/new situation
* transfer of elevations to newer situations
2018-01-30 20:35:07 +01:00
Klaus Basan
cd5fdfaf14 Ref T231, Ref T236, Ref T238 improved logging of situation/parts logging
* "dot" commands to log parts/situations
* log can also be displayed in simulator (if simulator can display text messages)
* fixed missings locks for m_interpolationRenderingSetup
* more detailed output
* renamings
* using hints in log
2018-01-30 20:35:05 +01:00
Klaus Basan
17e4dbbd46 Ref T231, disable ARTISTIC forammting for some areas 2018-01-30 20:34:40 +01:00
Klaus Basan
321cb8e563 Ref T236, transfer elevation to newer situations for future reference.
The elevation will be transferred within a given radius
2018-01-30 20:32:06 +01:00
Klaus Basan
6d5509890b Ref T238, moved spline x,y,z ... values to interpolant
* only interpolant needs those values
* encapsulated in struct PosArray
* Interpolant needs no reference to interpolator (anymore)
* const CInterpolatorPbh &pbh()
2018-01-30 20:32:03 +01:00
Klaus Basan
3ee5e68054 Ref T238, comments and formatting 2018-01-30 20:31:56 +01:00
Klaus Basan
c9ad99df2e Ref T238, logParts and getInterpolatedParts can be const 2018-01-30 20:31:53 +01:00
Klaus Basan
00d1315aac Ref T236, getGroundElevation can be used with and without provider 2018-01-30 20:31:47 +01:00
Klaus Basan
28346fbbdc Ref T231, set elevation as default for current situation 2018-01-30 20:31:38 +01:00
Klaus Basan
3da834e964 Ref T231, formatting 2018-01-30 20:31:35 +01:00
Klaus Basan
d30229fafe Ref T231, improved logger
* independent mutexes
* utility functions
* max. values
2018-01-30 20:31:29 +01:00
Klaus Basan
b5106167d9 Renaming 2018-01-30 20:31:23 +01:00
Klaus Basan
b49816795c Ref T231, using corrected altitude with CG in spline interpolator
Ref T207
2018-01-30 20:31:06 +01:00
Klaus Basan
ca13c21943 Ref T231, utility functions
* corrected altitude also considering CG
* 0 if CG is NULL
2018-01-30 20:30:57 +01:00
Klaus Basan
2da4b2719a Ref T231, fix for hovering aircraft
If there is no ground flag:

* only use CG/ground elevation close to ground
* and for AGL values clearly not on ground
* otherwise guess by speed ....
2018-01-30 20:30:43 +01:00
Klaus Basan
c39d4f66a3 Setting parent object for timers and formatting 2018-01-30 20:30:39 +01:00
Klaus Basan
50eb93cf40 Ref T229, do not display a directory if same as default
* component: made overlay compliant
* sim.dir can be empty on a machine where no simulator is installed
* formatting
* utility functions
2018-01-30 20:30:12 +01:00
Klaus Basan
0991f20f7d Ref T229, adjusted renamings because of CInterpolationStatus changes 2018-01-30 20:29:48 +01:00
Klaus Basan
75c2eec3d1 Ref T229, adjusted CInterpolationStatus
* The `changed`flag in interpolation was faulty.
* It was able to determine if the value was really changed by interpolation, which was the same as indicating that the value was interpolated.
* But there were cases, when the value was interpolated and not changed.
* Also there were cases when the value was changed, but not interpolated.
2018-01-30 20:29:46 +01:00
Klaus Basan
f17e57bd51 Minor style fixes 2018-01-15 23:00:56 +01:00
Roland Winklmeier
de4fe44156 Fix sending the correct pressure altitude for a pilot position
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet.
* This caused a wrong altitude in radar clients.
* We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation.
* MS Flight Simulators have the pressure altitude in the APIs available.
* For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level.
* Finally, we use the new available pressure altitude to send it to the FSD server.

Maniphest Tasks: Ref T223
2018-01-15 22:49:08 +01:00
Klaus Basan
f0d2336eb6 Ref T199, all file names of multi simulator caches 2018-01-14 18:47:46 +01:00
Klaus Basan
93d1dcfc1d Ref T219, added some utility functions in value classes 2018-01-14 18:46:14 +01:00
Klaus Basan
c23fe86f7f Ref T219, changed or removed some log category functions
* removed unused
* used standard "static const CLogCategoryList &getLogCategories()" patten
2018-01-14 18:46:04 +01:00
Klaus Basan
2fb7bde447 Ref T215, some adjustments of user object
* remove "valid" from some functions, because no validity is checked
* homebase + real name string
2018-01-13 05:04:34 +01:00
Klaus Basan
0975abcc46 Ref T215, remember last server and model as cache value
* also remember last server not VATSIM server
* remember last model used
* server list selector uses remembered value
* login component sets those values
2018-01-13 05:04:11 +01:00
Klaus Basan
0f8bbbbfc2 Ref T210, adjusting classes to use new functions 2017-12-21 19:49:52 +01:00
Klaus Basan
909342e172 Ref T201, formatting 2017-12-21 19:47:39 +01:00
Klaus Basan
8e761f35f1 Ref T197, simulator info
* CSimulatorInfo only initialized once and not over and over again in plugin info
* getSimulatorInfo() no longer virtual, as we can access the member CSimulatorInfo directly
* display exact simualtor in FSX/P3D driver
* renamed to identifierToSimulator and fixed typo "Identifier"
2017-12-21 19:46:17 +01:00
Mathew Sutcliffe
0b67466480 Removed workarounds in metaclass system that were needed for GCC 4.9 and old MSVC. 2017-11-14 17:51:07 +00:00