Commit Graph

278 Commits

Author SHA1 Message Date
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
ebd916f6d8 Ref T231, Ref T236, Ref T238 added ITimestampWithOffsetBased
* base class for offset timefeaturing classes
* used with parts/situations
2018-01-30 20:34:52 +01:00
Klaus Basan
851fbe165d Ref T236, utility functions to set ground elevation 2018-01-30 20:31:43 +01:00
Klaus Basan
5ec095684a Ref T231, utility functions
* altitude
* situation
* callsign set
* elevation set
2018-01-30 20:31:26 +01:00
Klaus Basan
5f7842163b Ref T231, Ref T232 utility functions 2018-01-30 20:31:09 +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
c39d4f66a3 Setting parent object for timers and formatting 2018-01-30 20:30:39 +01:00
Klaus Basan
f049900e1f Ref T223, use const values for standard pressure
* standardISASeaLevelPressure
* use static const values for standard pressure
* minor formatting
2018-01-15 23:00:34 +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
Roland Winklmeier
51a90a9a71 Differentiate between true and pressure altitude
Altitude can have different meanings in aviation. So far all our
altitudes were true altitudes. But now we also require pressure altitude
including a conversion method between the two.

Maniphest Tasks: T223
2018-01-15 22:43:08 +01:00
Klaus Basan
fea8ed6802 Ref T219, flight plan value class adjustements 2018-01-14 18:46:16 +01:00
Klaus Basan
93d1dcfc1d Ref T219, added some utility functions in value classes 2018-01-14 18:46:14 +01:00
Klaus Basan
d7bc247469 Ref T125, altitude parse and FP string functions
* asFpAltitudeString
* asFpAltitudeSimpleVatsimString (non standard format)
* parseFromFpAltitudeString
2018-01-14 18:45:33 +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
35af956c95 CAltitude formatting 2018-01-13 05:04:31 +01:00
Klaus Basan
8c539fab0a Ref T215, FP value class
* split into prefix / aircraft ICAO / suffix
* suffix equipment code functions
* fixed FP remarks loading (JSON file)
* fixed missing sending of aircraft ICAO
2018-01-13 05:04:17 +01:00
Klaus Basan
b68e232f38 Ref T215, utility functions
* CServer
* ICAO List
2018-01-13 05:04:03 +01:00
Klaus Basan
6374e5e10a Some formatting like "this->m_" => "m_"
During Ref T203
2017-12-21 19:47:46 +01:00
Klaus Basan
12b2bc4181 Ref T201, fixes for info object overview
* more detailed log info
* sort info objects so the correct value is obtained ("raw" names)
* check both "duplicate" strings
2017-12-21 19:47:41 +01:00
Klaus Basan
909342e172 Ref T201, formatting 2017-12-21 19:47:39 +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
Mathew Sutcliffe
e0d9fb9df1 Ref T185 Enable spline interpolation with only one position update,
by just copying it three times, so planes can be rendered without waiting for more updates.
2017-11-12 13:48:07 +00:00
Klaus Basan
9048ff0977 Ref T182, aircraft ICAO, airline ICAO and livery also contribute to scoring log messages 2017-11-09 04:42:20 +01:00
Klaus Basan
7db5e9aea3 Ref T182, adjust scoring in livery, ICAO codes 2017-11-09 04:42:07 +01:00
Klaus Basan
0f133f6505 Ref T182, livery/ICAO classed formatting 2017-11-09 04:42:06 +01:00
Klaus Basan
656d86a4ef Ref T180, isNull for CCoordinateGeodetic / situation 2017-11-04 21:44:43 +01:00
Klaus Basan
b74623599e Ref T118, color search follow up formatting 2017-10-31 15:39:28 +01:00
Klaus Basan
297426ae8e Ref T118, fixed wrong color search (restrict to color liveries) 2017-10-31 15:39:27 +01:00
Klaus Basan
e25a3bdc93 Ref T118, aircraft ICAO formatting 2017-10-31 15:39:19 +01:00
Klaus Basan
d74bd4e7c3 Ref T118, "ZZZZ" ICAO from DB passes validation 2017-10-31 15:39:18 +01:00
Klaus Basan
a4c7cea793 Ref T171, callsign strings can be (alphabetically) sorted 2017-10-18 22:58:40 +02:00
Klaus Basan
2dfb6770da Ref T129, improved flight plan remarks parsing
* unit tests
* improved parsing
* return value objects instead of just strings where applicable
2017-10-10 00:28:24 +01:00
Klaus Basan
3fb2f88032 Ref T129, some more utility functions for aviation value objects
* removed static variables from SELCAL
* more finder functions for airline ICAO list
* check for IATA code
* unify callsign now public
2017-10-10 00:28:20 +01:00
Klaus Basan
686cb03170 Ref T129, SELCAL class improvements
* unify string to also allow strings like AB-FG as input
* removed static variables, replaced by "our normal static const &" style
2017-10-10 00:28:18 +01:00
Klaus Basan
6fbf601aea Ref T129, SELCAL class formatting 2017-10-10 00:28:16 +01:00
Klaus Basan
3d541a8dd1 Ref T129, SVFR/VFR discussion
* utility functions in flight plan class
* adjusted flight plan component and client
2017-10-10 00:28:09 +01:00
Klaus Basan
f95a0b60cc Ref T129, utility function to check airline ICAO against swift DB 2017-10-10 00:28:04 +01:00
Klaus Basan
3c24d5c7f9 Ref T129, created CFlightPlanRemarks as value object and removed flight plan utils
* CFlightPlanRemarks supports the functionality of utils, but is also a valid value object
* deleted CFlightPlanUtils .h/.cpp
* CFlightPlan uses CFlightPlanRemarks
* changed classes like VATSIM data reader to use CFlightPlanRemarks (instead of utils)
2017-10-10 00:27:56 +01:00
Klaus Basan
27281e438d Ref T129, aircraft ICAO and parsed remarks can be obtained from flight plan 2017-10-10 00:27:54 +01:00
Klaus Basan
784cf287f0 Ref T129, extended flight plan utils
* renamed to CFlightPlanUtils::FlightPlanRemarks
* now parsing also SELCAL, airline ICAO
2017-10-10 00:27:46 +01:00
Klaus Basan
3b842679e7 Ref T129, flight plan list 2017-10-10 00:27:43 +01:00
Klaus Basan
1daa640972 Ref T129, added callsign in flight plan and made flight plan timestamp interface compliant 2017-10-10 00:27:39 +01:00
Klaus Basan
5f75943bbb Ref T129, removed CAircraft/CAircraftList as no longer existing 2017-10-10 00:27:37 +01:00
Klaus Basan
db9236a266 Ref T129, formatting aircraft parts/situation 2017-10-10 00:27:36 +01:00
Klaus Basan
bb4f0e7a13 Ref T111, search for location/name 2017-09-24 19:52:06 +01:00
Klaus Basan
0117558ea7 Formatting 2017-09-24 19:52:04 +01:00
Klaus Basan
2805979577 Fixed setting altitude of airport 2017-09-24 19:52:02 +01:00
Klaus Basan
4d9ee1626d Ref T120, refactoring of modulator related classes
* avoid virtual functions in modulator related classes
* removed unused isDefaultValue()
* using null values (which was not present when class was written)
* removed destructor
2017-09-24 19:51:26 +01:00
Klaus Basan
b53a02821b Ref T109, improved lookup and matching log message 2017-09-24 19:51:00 +01:00