Klaus Basan
3031e5b648
Ref T261, set client provider in simulator
...
Needed to obtain client capabilities
2018-05-08 16:06:48 +02:00
Klaus Basan
ac953de6fd
Ref T261, FSX driver improvements
...
* sending gnd flag can be disabled
* check position before adding object
* do not stop requested data if aircraft is pending -> causes FSX SimConnect exception
2018-05-08 16:06:45 +02:00
Klaus Basan
1f3e5c6abf
Formatting, minor tweaks
2018-05-08 16:06:43 +02:00
Klaus Basan
456cb5d1ea
SimConnect config: Allow to enable tracing of sendid via UI
2018-05-08 16:06:40 +02:00
Klaus Basan
4bef444f40
Ref T260, implemented 1st version of FSX terrain probe
2018-05-08 16:06:39 +02:00
Klaus Basan
1b8383bee1
Guarding QTimer::singelShot operations, avoid to access dangling pointers
2018-05-08 16:06:39 +02:00
Klaus Basan
b5ba4013dd
Formatting
2018-05-08 16:06:38 +02:00
Klaus Basan
6061a61d50
Ref T260, changed elevation handling in provider, simulator and FSX common driver
...
* split functions, added findClosestElevationWithinRangeOrRequest
* obtain elevation ids (separate ids are easier to track)
* also added experimental "physicallyAddAITerrainProbe" (FSX) for the FSX elevation probing
* callback / signal when requested elevation is received (async)
2018-05-08 16:06:35 +02:00
Klaus Basan
0d76cc8d3e
Formatting
2018-05-08 16:06:33 +02:00
Klaus Basan
5c6a37c669
Ref T259, Ref T243 removed guessing from FSX driver code (now in interpolator) and also use guessing in emulated driver
2018-05-08 16:06:33 +02:00
Klaus Basan
52dd7a754c
Ref T259, Ref T243 access to last interpolated situation to check if near ground
2018-05-04 23:03:08 +02:00
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