Commit Graph

37 Commits

Author SHA1 Message Date
Klaus Basan
5d8ed66931 refs #891, FSX using common base class 2017-04-17 23:57:16 +01:00
Mathew Sutcliffe
1c2533f5d2 refs #863 Moved nested status classes to namespace scope. 2017-02-24 15:22:25 +00:00
Mathew Sutcliffe
a167cc8e43 refs #863 Each aircraft gets its own interpolator instance,
so each one can cache calculations from one frame to the next.
The recent situations and parts are members of the interpolator.
2017-02-24 15:22:22 +00:00
Klaus Basan
2a0d0e1d84 refs #873, sendToggledLightsToSimulator as own function
* better resending of lights when light state in simulator is not yet known
* support for cabin/recognition light
2017-02-24 15:20:34 +00:00
Klaus Basan
bcb42b0f0d Formatting 2017-02-24 15:20:33 +00:00
Klaus Basan
a61abfcb8b refs #873, use events for lights
* added members for sim objects
* receive lights for (remote) aircraft from simulator
* update lights
* utility functions for request ids
2017-02-24 00:20:01 +00:00
Klaus Basan
5f701e7547 refs #873, define events for lights 2017-02-24 00:19:47 +00:00
Klaus Basan
f701d6ad4a refs #873, FSX: do not send parts if they are equal
* == operator for struct
* do not send when equal
* fixed missing init of guessed parts struct
2017-02-24 00:19:45 +00:00
Klaus Basan
1967c82221 Formatting 2017-02-24 00:19:19 +00:00
Klaus Basan
0488b4b5ea refs #865, adjusted FSX part to use parts in interpolation hints
* split update of aircraft parts in guessing/sending
* pass hints to interpolator
2017-02-24 00:19:06 +00:00
Klaus Basan
68dccbefa6 Formatting, renaming, Doxygen, minor UI adjustments 2017-02-24 00:18:51 +00:00
Klaus Basan
7ddb69825a refs #865, FSX: use onGround from CAircraftSituation 2017-02-24 00:18:49 +00:00
Mathew Sutcliffe
3f5139d717 refs #852 IInterpolator::getPartsBeforeTime renamed to getInterpolatedParts
and returns a single CAircraftParts object, not a list.
2017-02-24 00:17:55 +00:00
Roland Winklmeier
1a6c7fa192 Add control button to activate and deactivate swift weather
- GUI changes
- Context and ISimulator APIs
- Refactored settings and static weather injection in CSimulatorCommon

refs #807
2017-01-10 23:47:39 +00:00
Klaus Basan
93a18f433c refs #840, FSX driver: get ground elevation from simulator
* fixed wrong request id
* made functions private where possible
* added data definitions for simobject data
2017-01-10 23:45:30 +00:00
Klaus Basan
1a500340f0 refs #836, elevation for own FSX/P3D aircraft in driver
plus some minor improvements such as const where applicable
2017-01-10 23:44:52 +00:00
Klaus Basan
b69008e0b3 refs #829, consolidated settings for simulator/messages
* move traits from blackcore to blackmisc
* renamed CSimulatorSettings/Messages
2016-12-13 19:02:13 +01:00
Klaus Basan
df2073e5e6 refs #814, allow to disable aircraft parts updates, mostly for testing
* added flag in setup
* and UI
* plus some formatting in driver classes, removed unused member
2016-12-13 19:01:38 +01:00
Klaus Basan
26cc77ebab refs #810, using DWORD instead of int to avoid possible issues (signed vs. unsigned)
Requires flags as negative flags do not indicate invalid
2016-12-13 19:01:11 +01:00
Klaus Basan
53d430575c refs #808, set internals object for FSX 2016-12-13 19:01:01 +01:00
Klaus Basan
42549760ed refs #789, support for aircraft out of FSX reality bubble
* such aircraft will be tried to be added again
* removed qeueud adding as it was not solving the problem
2016-12-13 18:59:54 +01:00
Klaus Basan
94d6b8d6b8 refs #789, improvements to try to solve FSX issue in driver
* more asserts to find issues
* limit number of exceptions displayed
* reset() function (there was an issue with not cleaned up values)
* using CSimConnectObjects and adjustments for the previous changes
2016-12-06 09:47:07 +01:00
Klaus Basan
f8c9782da4 refs #789, FSX errors OPERATION_INVALID and EXCEPTION_UNRECOGNIZED_ID
* only emit aircraft as rendered when object id is received, not before
* added CSimualtedAircraft to CSimConnectObject (so it can be used as signal argument)
* some utility functions to get callsign/simobject by id
2016-12-06 09:34:20 +01:00
Klaus Basan
b87a3dffaa refs #780, during tests adjusted
* doxygen for fsx driver
* moved stats members in base class (so all drivers can update those
2016-12-06 09:34:18 +01:00
Roland Winklmeier
4e6c4a076a Delay initial weather injection until simulator is connected
Up to know, the initial weather injection was done in the constructor
of ISimulator implementation. This was to early, since in the best case
the injection was not doing anything and in the worst case, crashed
the application because the plugin wasn't ready yet.
This change also replaces ps_reloadSettings with a specific non-slot
version to avoid code duplication.
2016-08-26 21:05:07 +01:00
Roland Winklmeier
91d2556b16 [FSX] Signal simulator connected once SIMCONNECT_RECV_OPEN is received
refs #549
2016-08-05 11:49:32 +02:00
Mathew Sutcliffe
7a34cc6d9a refs #697 BlackCore settings renamed and reorganized. 2016-08-03 02:19:11 +01:00
Klaus Basan
86d85c6b60 refs #707, removed originator from some signatures
* not used in remote aircraft provider
* adjusted all using interfaces
2016-07-14 18:49:15 +02:00
Roland Winklmeier
10c4fa920d Add weather scenario settings to simulator plugins
refs #663
2016-06-17 10:46:31 +02:00
Mathew Sutcliffe
7ae453b532 refs #666 Moved interpolator to BlackMisc so xbus doesn't need to link BlackCore. 2016-06-08 23:54:13 +01:00
Roland Winklmeier
602beb0da2 Remove obsolete plugin storage
Plugin storage was used before the value cache existed. With the
value cache this is no longer used and can be removed.

refs #660
2016-05-24 16:45:14 +02:00
Roland Winklmeier
781707fb7e Simulator driver fetches and injects weather from weather manager 2016-04-10 16:18:55 +02:00
Roland Winklmeier
dae31a1986 Use CWeatherManager as weathergrid provider in simulator plugins
refs #612
2016-04-10 16:13:58 +02:00
Mathew Sutcliffe
a1861c69f0 refs #624 Some more occurrences of constexpr. 2016-03-22 16:02:53 +00:00
Roland Winklmeier
99ab20bcc5 Inject global weather grid to Flight Simulators via FSUIPC
In the short term FSUIPC is used for all MSFS simulators, but in the
mid term this will be superceded by the Simconnect Weather API.

refs #579
2016-03-02 23:04:13 +01:00
Klaus Basan
1b46e0400c refs #544 doxygen 2015-12-12 04:47:18 +00:00
Michał Garapich
1b06e15b61 refs #510 Remove underscores from all the source file names 2015-11-22 12:53:09 +01:00