Search found 25 matches

by mer
Thu Dec 06, 2018 9:17 am
Forum: Scenario Development (SimDirector) Questions
Topic: find if vor is located on the airport
Replies: 1
Views: 1518

find if vor is located on the airport

Hello,

Is there any way for us to find out from the bgl files if a VOR is located on an airport ? Apart from reading the lat-lon values and checking if they match?

Thank you
by mer
Sat Oct 13, 2018 6:46 am
Forum: SimConnect Interface Questions
Topic: regular expression to match cloud layer of metar string
Replies: 0
Views: 3231

regular expression to match cloud layer of metar string

Is there a way to define a regex pattern for the cloud layers in Prepar3d's metar?

Thank you
by mer
Mon Oct 01, 2018 10:57 am
Forum: Software Development Kit (SDK) Questions
Topic: can PdkServices be invoked from processes other than P3ds?
Replies: 4
Views: 3690

can PdkServices be invoked from processes other than P3ds?

Hello, Is there any way to access scenario and environment parameters of Prepar3d (such as global temperature,visibility etc) by invoking PDk's services from outside of Prepar3d? Normally we write plugins with DLLStart and stop methods that Prepar3d calls. If we want a console application or some ot...
by mer
Mon Oct 01, 2018 7:41 am
Forum: Software Development Kit (SDK) Questions
Topic: Attempt to extract global pressure from weatherSystemService in a COM setting
Replies: 0
Views: 2398

Attempt to extract global pressure from weatherSystemService in a COM setting

Hello, I have tried to retrieve the global pressure value from P3d v4 through it's weather service by attempting to access the IWeatherSystemv430 service outside of P3d. Code for my ATL COM server and client below: Could you please help me out with it? Thank you ATL COM server // HelloWeather.cpp : ...
by mer
Thu Sep 27, 2018 12:04 pm
Forum: Software Development Kit (SDK) Questions
Topic: can weather be implemented as a SIM object?
Replies: 3
Views: 2478

Re: can weather be implemented as a SIM object?

Hello, I just went through this link, something I should have done much earlier https://www.prepar3d.com/SDKv4/sdk/simulation_objects/simobject_api/simobject_api_overview.html Is it possible for me to create a COM SimObject WeatherRecorder, that reads weather values using the WeatherSystem Services?...
by mer
Thu Sep 27, 2018 6:12 am
Forum: Software Development Kit (SDK) Questions
Topic: can weather be implemented as a SIM object?
Replies: 3
Views: 2478

Re: can weather be implemented as a SIM object?

Thank you. Could you please provide some help on how it can be done? What I have done so far is create a weather.cpp file in my project and written this code: #include <atlcomcli.h> #include <math.h> #include <Pdk.h> #include<IWeatherSystem.h> //#include<servprov.h> using namespace P3D; class __decl...
by mer
Thu Sep 27, 2018 5:05 am
Forum: Software Development Kit (SDK) Questions
Topic: can weather be implemented as a SIM object?
Replies: 3
Views: 2478

can weather be implemented as a SIM object?

Hello, I found that the PDK samples where COM objects are created (SimpleCar,SimpleAirplane etc) implement these as SimObjects. Can I also create a COM object like Weather which can be called from a COM client outside of PDK and make available the weather parameters through the IWeatherSystem and IW...
by mer
Thu Sep 27, 2018 4:49 am
Forum: Software Development Kit (SDK) Questions
Topic: how to obtain CLSID of WeatherSystem Service COM Component
Replies: 3
Views: 2776

Re: how to obtain CLSID of WeatherSystem Service COM Component

Thank you Clifton Crane My intent is to create a COM weather object as has been done in SimpleCar/SimpleAeroplane/Radar Altimeter examples. If I can create a COM object which has access to the WeatherSystem Services, I can access it from a C# client console application. I am not able to invoke Query...
by mer
Tue Sep 25, 2018 12:40 pm
Forum: Software Development Kit (SDK) Questions
Topic: how to obtain CLSID of WeatherSystem Service COM Component
Replies: 3
Views: 2776

Re: how to obtain CLSID of WeatherSystem Service COM Component

Also, why does the documentation page refer to them as classes while the header files declare them as interfaces? Does that mean their IIDs are actually their CLSIDs?
by mer
Tue Sep 25, 2018 11:21 am
Forum: Software Development Kit (SDK) Questions
Topic: how to obtain CLSID of WeatherSystem Service COM Component
Replies: 3
Views: 2776

how to obtain CLSID of WeatherSystem Service COM Component

Hello, I was just told that I would need CLSID of the COM object implementing the WeatherSystem and WeatherStation interfaces in order to instantiate this object outside of the plugin. My search yielded only IIDs and SID. Should I look elsewhere for CLSID and if I don't find it, does it mean that th...
by mer
Sat Sep 15, 2018 2:48 pm
Forum: SimConnect Interface Questions
Topic: [RESOLVED] access values through STRUCT LONGLATALT
Replies: 2
Views: 3257

[RESOLVED] access values through STRUCT LONGLATALT

Hello, Does STRUCT LATLONALT return the same set of values as PLANE LATITUDE, PLANE LONGITUDE and PLANE ALTITUDE? For the code below, i got matching values for latitude and longitude but altitude values were different. Could anyone guide me on what to set right? [StructLayout(LayoutKind.Sequential, ...
by mer
Thu Sep 13, 2018 3:06 pm
Forum: SimConnect Interface Questions
Topic: How can these parameters be represented in P3d?
Replies: 1
Views: 2874

How can these parameters be represented in P3d?

Hello,

Does Prepar3d have simulation variables to represent:
1. Total time the sim has been up
2. Total time since the flight got reset
3. Gear deployment ratio

Thank you
by mer
Thu Sep 13, 2018 5:51 am
Forum: SimConnect Interface Questions
Topic: reference to map xplane variables to prepar3d variables
Replies: 1
Views: 2935

reference to map xplane variables to prepar3d variables

Hello, I need to get the corresponding P3d variables for these variables in Xplane http://www.xsquawkbox.net/xpsdk/docs/DataRefs.html Is there any reference which would be useful or could anyone help me map a few variables For instance, what prepar3d variables should we use to denote Position of pil...

Go to advanced search