Klaus Basan
a7f1e15f39
Ref T259, Ref T243 pass the providers along the hierarchy
2018-04-13 23:37:49 +02:00
Klaus Basan
9abc57bb3d
Ref T259, Ref T243 remove aircraft parts and situations from interpolator
...
* no longer using the add parts/situations signals
* will use the remote aircraft provider parts directly
Result: all parts/situations are stored only once in memory and in one single place
2018-04-13 23:37:37 +02:00
Klaus Basan
4248c1b689
Ref T259, Ref T243 improved utility function to store elevations in multiple providers
2018-04-13 23:37:36 +02:00
Klaus Basan
3f9ec92fb4
Ref T259, Ref T243 removed guessing from sim classes
2018-04-13 23:37:22 +02:00
Klaus Basan
0c06ac26f7
Ref T259, Ref T243 removed interpolation hints
...
* no longer needed with providers in that form
* pure refactoring commit, just guarantees compilation
* already minor adjustments to use providers
2018-04-13 23:37:18 +02:00
Klaus Basan
b8de29201a
Ref T259, Ref T243 adjusted simulator classes to use new setup provider
2018-04-13 23:36:42 +02:00
Klaus Basan
3346a92b56
Ref T259, Ref T243 simulator environment provider
...
* access to elevation
* future: more data such as airport info
2018-04-05 02:54:32 +02:00
Klaus Basan
67e8f94481
Ref T259, Ref T243 renaming and adding flags in situation to also represent inbound situations
2018-04-05 02:54:20 +02:00
Klaus Basan
63d7e36389
Ref T251, also set GND info for own aircraft
2018-02-16 12:13:38 +01:00
Klaus Basan
897a6f301f
Ref T232, aircraft can be re-added or removed via "dot-commands"
...
* can be used for testing
* utility functions to find inconsistent aircraft states
* reset highlight state
2018-01-30 20:31:59 +01:00
Klaus Basan
3da834e964
Ref T231, formatting
2018-01-30 20:31:35 +01:00
Klaus Basan
d118ea402f
Ref T232 clear remote aircraft data once network disconnects
...
* blackconfig in .pro
* verify function to detect dangling states
* clear remote data when disconnected from network
* there was one problem that the data where not correctly cleaned up and hence new aircraft where not added again after a disconnect/reconnect from network
* it is not yet clear why data happens (dangling data), that is what the debugVerify function is for
2018-01-30 20:31:11 +01:00
Klaus Basan
dac1ee85f9
Ref T232, some (dispatch) timer code was duplicated
...
* fixed a bug, where a non existing timer was killed
* unified code in base class
2018-01-30 20:30:20 +01:00
Klaus Basan
467f8cbac9
Ref T229, fixed problems in FSX driver
...
* use correct status (the problem was that even not interpolated situations can be valid)
* track last position (SimObject), do not resend same position
2018-01-30 20:29:53 +01:00
Klaus Basan
0991f20f7d
Ref T229, adjusted renamings because of CInterpolationStatus changes
2018-01-30 20:29:48 +01:00
Klaus Basan
67426b755f
Ref T229, FSX/P3D character encoding
...
* we have to use an encoding function for FSX/P3D string
* encapsulated, so we can later can/improve it
2018-01-30 20:29:43 +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
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
Klaus Basan
ff963d7d39
Ref T195, warning if interpolator situation is invalid
2017-12-21 19:46:11 +01:00
Klaus Basan
f9c7ce0ea8
Ref T189, DWORD is unsigned
2017-12-21 19:46:08 +01:00
Klaus Basan
8103df18f7
Ref T195, formatting
2017-12-21 19:45:46 +01:00
Klaus Basan
868ae7ec74
Ref T180, stop requesting data when aircraft is removed
2017-11-09 20:02:58 +01:00
Klaus Basan
cd838b2cb6
Ref T180, function to stop requesting remote aircraft data
...
Also added details to trace function
2017-11-09 20:02:57 +01:00
Klaus Basan
fd4ac74738
Ref T180, renaming for request remote aircraft data
2017-11-09 20:02:55 +01:00
Klaus Basan
fd0eec689f
Ref T180, trace parts and positions even if the object is not yet used with simulator
...
* interpolator will be prefilled with data
* in case the used SimObject is created, it can already use earlier position/parts updates
2017-11-09 20:02:55 +01:00
Klaus Basan
02c45588c3
Ref T180, CSimConnectObject improvements / added CSimConnectObject::getInterpolatedParts
2017-11-09 20:02:54 +01:00
Klaus Basan
fa50e6a8ea
Ref T180, formatting
2017-11-09 20:02:40 +01:00
Klaus Basan
3afe510736
Ref T180, allow to log invalid interpolated data
2017-11-09 04:42:13 +01:00
Klaus Basan
822ef11c02
Ref T180, formatting
2017-11-09 04:42:11 +01:00
Klaus Basan
6273892b84
Ref T180, update situation of pending aircraft
2017-11-09 04:42:10 +01:00
Klaus Basan
46a7b67ae5
Ref T180, interpolator status can check validity of situation and provide an info string
2017-11-09 04:42:10 +01:00
Klaus Basan
40dcd9c167
Ref T180, remove aircraft
...
* utility function getAllCallsigns
* allow to trace sendId (in removing)
* make sure aircraft are not added again by upfront clearing lists
2017-11-09 04:42:09 +01:00
Klaus Basan
fd62ef80e0
Ref T180, formatting and renaming of member/function
2017-11-09 04:42:08 +01:00
Klaus Basan
4fb30fdbc3
Ref T180, log pattern for cmd. line and logging some cmd line activities
2017-11-09 04:42:07 +01:00
Klaus Basan
4b082ac99a
Ref T180, renamed function removeFromPendingAndAddAgainAircraft
2017-11-05 20:02:34 +01:00
Klaus Basan
57a7407ef9
Ref T180, check result of removing aircraft
2017-11-05 20:02:33 +01:00
Klaus Basan
986110b50b
Ref T180, use SIMCONNECT_DATA_REQUEST_ID as type for request id
2017-11-05 20:02:32 +01:00
Klaus Basan
93a29b2b11
Ref T180, formatting
2017-11-05 20:02:06 +01:00
Klaus Basan
05ec07edf3
Ref T180, allow to trace send ids
...
(Rational: hope to get more details about exceptions of FSX)
* trace functions
* command line parsing to set tracing on/off
2017-11-05 20:02:01 +01:00
Klaus Basan
ce7ae9701d
Ref T180, formatting and minor fixes of FSX driver
...
* timer no longer a pointer
* formatting/comments
* unified naming to simObject
* default model initialized in derived class (P3D/FSX)
2017-11-04 21:44:45 +01:00
Klaus Basan
68225e7bf6
Ref T180, FSX driver validates situation to check if there are any problems with that
2017-11-04 21:44:44 +01:00
Klaus Basan
924d4aab7f
Ref T180, get interpolated situation utility function in CSimConnectObject, returning the aircraft situation if there is no interpolation value
2017-11-04 21:44:44 +01:00
Klaus Basan
e5261c3e99
Ref T180, added utility function getInterpolatorInfo() allowing to log some info about interpolator
2017-11-04 21:44:42 +01:00
Klaus Basan
5560d6cb78
Ref T180, support for SimConnect.ini files and some renamings in CSimConnectUtilities
2017-11-04 21:44:39 +01:00
Klaus Basan
1018d06f70
Ref T180, do not disconnect from dispatch (SimConnectProc) function
...
This causes a crash in P3Dv4 and has been wrong all the time because it closes itself from within the dispatcher
2017-11-04 21:44:38 +01:00
Klaus Basan
df3dbff8e3
Ref T180, directly add parts/situation in CSimConnectObject ctor
2017-11-04 21:44:17 +01:00
Klaus Basan
d5bb1733f4
Ref T180, formatting / const
2017-11-04 16:03:40 +01:00
Klaus Basan
c5da828679
Ref T171, typo and formatting for interpolation logger/multi
2017-10-18 22:58:38 +02:00
Klaus Basan
b6333e69d8
Ref T171, made remote aircraft provider and web service "protected slots" -> "protected"
...
* Unlike in other cases, the remote aircraft provider slots are also very frequently called. So besides "style", it might be also useful here to avoid the extra MOC layers.
* Also renamed 2 web service signals and made web service connections Qt::QueuedConnection
2017-10-18 22:58:24 +02:00
Klaus Basan
61a23d700b
Ref T171, driver formatting
2017-10-18 22:58:22 +02:00