Search found 7 matches

by Prepar3DGuy
Wed Mar 11, 2020 9:16 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Panel Service
Replies: 4
Views: 21861

Re: PDK Panel Service

flyboy7798 wrote: Wed Mar 11, 2020 1:38 pm The purpose of getting a gauge callback is to get and set Cvars.
Why not to simply use ExecuteCalculatorCode method from PanelSystemV400
Look at this forum thread.
by Prepar3DGuy
Wed Mar 11, 2020 8:35 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Panel Service
Replies: 4
Views: 21861

Re: PDK Panel Service

If your module_init doesn't receive pointer to IPdk, use query_pdk from gauge.h as alternative.
by Prepar3DGuy
Wed Mar 11, 2020 8:01 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Panel Service
Replies: 4
Views: 21861

Re: PDK Panel Service

To get pointer to the panel service (IPanelSystemV400) you can QueryService on the pointer to IPdk that was passed to your module_init entry point function. void FSAPI module_init(__in __notnull P3D::IPdk* pPdk) { CComPtr<P3D::IPanelSystemV400> spPanelSystem; pPdk->QueryService(P3D::SID_PanelSystem,...
by Prepar3DGuy
Tue Jun 04, 2019 12:39 pm
Forum: Software Development Kit (SDK) Questions
Topic: Whether aircraft information can be obtained and sent out in a 10ms cycle??
Replies: 2
Views: 12530

Re: Whether aircraft information can be obtained and sent out in a 10ms cycle??

We are trying to control another aircraft in real time (a 10 ms cycle) to enable it to fly in formation with the aircraft. And the following is the step we used: You can implement IAIBehaviourWingmanFormationV01 interface from PDK for another aircraft or SimObject in the wingman. (Required Professi...
by Prepar3DGuy
Thu May 02, 2019 6:50 pm
Forum: Simulation Object Development Questions
Topic: Axis data range for SimObject
Replies: 2
Views: 12555

Re: Axis data range for SimObject

Clifton, thank you for fast reply. After some research with Joystick axis control I ran into additional questions: 1. The behaviour of "native" aircraft on "Sensitivity" and "Null zone" setting in UI differ from property values received by SimObject or SupplementalSyste...
by Prepar3DGuy
Mon Apr 29, 2019 6:02 pm
Forum: Simulation Object Development Questions
Topic: Axis data range for SimObject
Replies: 2
Views: 12555

Axis data range for SimObject

I have registered implementation of SimObject's event method to joystick axis as described in PDK. It says "Axis event data is in the range of +/-1.0." but after user have set "Null Zone" and "Sensitivity" in some values different from defaults the range became smaller ...
by Prepar3DGuy
Fri Sep 21, 2018 8:16 pm
Forum: Software Development Kit (SDK) Questions
Topic: PDK Animations
Replies: 2
Views: 12184

Re: PDK Animations

Hi, Benny.
Look at this topic http://prepar3d.com/forum/viewtopic.php?t=117974. SimpleAirplane example well illustrate creation of animation and controlling it through PDK.