Commit Graph

46 Commits

Author SHA1 Message Date
Klaus Basan
c56775e815 Ref T637, allow 3 letter ICAOs in FP
* strict or lenient airport check
* allow to enter 3 letter ICAO codes in FP
2019-05-13 11:20:48 +02:00
Klaus Basan
9f8f70c22a Ref T609, set send/receive COM1/2 from P3D/FSK 2019-05-13 11:20:38 +02:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
6470c61d0a Ref T515, added failover flag for addingRemoteModelFailed
* adjusted signatures
* renamings and minor style adjustments
2019-02-22 20:35:41 +00:00
Mat Sutcliffe
7cb581f865 Ref T488 Fixed cppcheck warnings. 2019-02-22 20:34:57 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Roland Rossgotterer
e959075a56 Fix missing include 2018-11-29 20:54:26 +01:00
Klaus Basan
657aea9323 Ref T437, copy the client area byte array instead of just casting it 2018-11-22 19:55:03 +01:00
Klaus Basan
cb422d72cf Misc. style issues interpolation/model adding 2018-11-22 19:55:02 +01:00
Klaus Basan
212460f676 Ref T410, simConnectProc / FsxCommon SB area
* count number of received data
* set network and SB running flag
2018-11-05 01:39:51 +01:00
Klaus Basan
e98a420d5d Improved FSX/P3D time sync 2018-11-05 01:39:51 +01:00
Klaus Basan
35b8b29d10 Ref T410, preparation and UI adjustments
Foo
2018-11-04 17:42:43 +01:00
Klaus Basan
754049971d Ref T357, Ref T348, probe improvements
- release AI also traces id
- info that probe is disabled in error case
2018-09-17 18:28:46 +02:00
Klaus Basan
8e4369b41c Ref T348, style/removed unused function 2018-09-17 18:28:26 +02:00
Klaus Basan
bea69e682e Trigger FSX/P3D send id tracing always for an exception 2018-09-17 18:28:10 +02:00
Klaus Basan
409cc6c164 Ref T335, FSX/P3D improvements
- eceptions for an added object will be handled, retry once, then disable
- add/directly remove agains tried twice, then disabled
- disable aircraft in severe cases
- adjusted signal, indicate aircraft was enabled
2018-09-12 20:28:55 +02:00
Klaus Basan
bbd6a70162 Ref T335, improve FSX/P3D probe/aircraft handling
- probes handled in same sim object list as aircraft
- init probes at beginning, probes can be disabled
- better handle SIMCONNECT_EXCEPTION_CREATE_OBJECT_FAILED:
- CSimulatorFsxCommon::verifyAddedTerrainProbe
- use "SimConnect_AICreateSimulatedObject" for probes
2018-09-09 02:54:41 +02:00
Klaus Basan
97f5661690 Comment for driver added 2018-09-08 15:36:21 +02:00
Klaus Basan
cbb0805c7e Style 2018-08-19 14:31:47 +02:00
Klaus Basan
2798d36435 Ref T275, FSX/P3D obtain model string and CG when model is added and set it in the providers 2018-07-09 22:30:23 +02:00
Klaus Basan
1f689a8830 Ref T275, Ref T280, Ref T245 FSX simulator improvements
* request model info
* stricter checks (asserts)
* display simulator debug messages in simulator view (not as normal status message)
2018-07-09 22:30:16 +02:00
Klaus Basan
9baa10c5f8 Style 2018-07-09 22:30:14 +02:00
Klaus Basan
7a745d2ce6 Ref T275, improved request id handling for FSX/P3D
* base reange for request IDs
* all operations use offsets
* we can conclude what an id is used for (debugging)

plus

* minor Doxygen fixes
* some renamings
2018-06-27 12:49:11 +02:00
Klaus Basan
abdecaf9d8 Ref T275, count simconnectProc calls and how often it was doing nothing 2018-06-27 12:49:06 +02:00
Klaus Basan
dff5c90853 Ref T275, move simulator info into env. provider 2018-06-27 12:49:05 +02:00
Klaus Basan
d864789890 Ref T280, FSX/P3D also measure time of inner SimConnectProc to see if SimConnect_CallDispatch has any influence 2018-06-18 03:04:51 +02:00
Klaus Basan
444c7a18ba Ref T275, use getSimObjectForObjectId / getProbeForObjectId
* added getProbeForObjectId
* used getSimObjectForObjectId where not yet used
2018-06-13 14:00:31 +02:00
Klaus Basan
44f01d8d97 Ref T275, asynchronous version triggerUpdateRemoteAircraftFromSimulator and only fast updates for moving aircraft 2018-06-13 14:00:24 +02:00
Klaus Basan
a27f2b3a9c Style, typos 2018-06-13 14:00:21 +02:00
Klaus Basan
4975ecd712 Ref T275, improved tracing for FSX
* getStatisticsSimulatorSpecific for simulator specific traces/logs
* trace CSimulatorFsxCommon::SimConnectProc times
* trace which receive id is handled in SimConnectProc
* allow to limit aircraft updates (max FPS)
* handle airport updates outside SimConnectProc
2018-06-13 14:00:19 +02:00
Klaus Basan
11aa3052f7 Ref T270, Ref T275 FSX/P3D auto trace sendId
In case of problems sendId tracing is automatically switched on for some tome
2018-06-13 14:00:05 +02:00
Klaus Basan
5d6952031d Formatting 2018-06-13 13:59:20 +02:00
Klaus Basan
4bef444f40 Ref T260, implemented 1st version of FSX terrain probe 2018-05-08 16:06:39 +02:00
Klaus Basan
78e61e25ac Formatting 2018-02-16 12:13:35 +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
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
d5bb1733f4 Ref T180, formatting / const 2017-11-04 16:03:40 +01:00
Klaus Basan
61a23d700b Ref T171, driver formatting 2017-10-18 22:58:22 +02:00
Klaus Basan
645faf8373 Ref T27, improved adding of sim objects
* only add one object at a time
* only query object values (from sim) when object is confirmed
* better debug logging (can be switched on)
* physicallyAddRemoteAircraftImpl for better tracing of added objects
* wait until light state is available
2017-09-24 19:48:57 +01:00
Klaus Basan
6d26c96569 Ref T27, preparation for refactoring, turned private slots into normal member functions
* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter
* renamed some members to better reflect future use
* timer intervals as constexpr
* fixed some typos and comments
2017-06-27 20:50:26 +02:00
Klaus Basan
8a2eef66ae refs #911, formatting FSX/P3D connect info 2017-04-18 00:00:45 +01:00
Klaus Basan
4a984ea1de refs #908, formatting 2017-04-17 23:59:28 +01:00
Klaus Basan
70045c046d refs #891, moved common parts for FSX/P3D to fsxcommon
* driver / listener common parts
* config common parts
2017-04-17 23:57:14 +01:00