Search found 252 matches

by Mike Schroeter
Mon Aug 14, 2023 4:50 pm
Forum: Simulation Object Development Questions
Topic: Helicopter Autopilot / Stabilization
Replies: 1
Views: 14001

Re: Helicopter Autopilot / Stabilization

In your Prepar3D.cfg, do you have a value set for "yaw_damper_gain"? For example...

[autopilot]
yaw_damper_gain=1.000000

This should enable stable pedal turns with the AP on. You may need to increase or decrease the value depending on your model.
by Mike Schroeter
Fri Mar 31, 2023 12:38 am
Forum: Scenario Development (SimDirector) Questions
Topic: Heading indicator (reset)
Replies: 2
Views: 15071

Re: Heading indicator (reset)

Hi Ray, That freeze command will only freeze the Lat/Lon/Alt on the object. It's more of a game-level setting. You might try toggling freeze on/off directly on the user's aircraft using both: "IS LATITUDE LONGITUDE FREEZE ON" and "IS ATTITUDE FREEZE ON" These will toggle freeze o...
by Mike Schroeter
Fri Jan 06, 2023 4:32 pm
Forum: Prepar3D Website and Download Questions
Topic: PDK (API) Engine System (IEngineSystem) Development Sample not working
Replies: 2
Views: 5197

Re: PDK (API) Engine System (IEngineSystem) Development Sample not working

Be sure the compiled .DLL is being loaded. The SDK has more detailed information on configuring add-ons, but basically the addon package needs to be either placed in you My Documents "Prepar3D v5 Add-ons" or specified in the C:\ProgramData\Lockheed Martin\Prepar3D v5\add-ons.cfg file. Hope...
by Mike Schroeter
Tue May 17, 2022 3:59 pm
Forum: Software Development Kit (SDK) Questions
Topic: Faster SDK?!
Replies: 1
Views: 4610

Re: Faster SDK?!

Check out the Prepar3D Development (PDK) API in the SDK. It provides a lot of real-time synchronous interfaces. There are many samples included with the SDK as well.

Hope this helps,
Mike
by Mike Schroeter
Thu Mar 03, 2022 4:50 am
Forum: Software Development Kit (SDK) Questions
Topic: Implementing electrical, hydraulic and pressurisation systems
Replies: 2
Views: 5022

Re: Implementing electrical, hydraulic and pressurisation systems

Yes, this is exactly the type of thing the PDK API was created for. The API you will be most interested in is in ISimObject.h. The SimpleAirplane sample is a good place to start. With an implementation like this, you will define and implement all your own systems and data structures, and doesn't use...
by Mike Schroeter
Mon Feb 21, 2022 4:13 pm
Forum: Software Development Kit (SDK) Questions
Topic: Ground pitch and bank angles
Replies: 3
Views: 5694

Re: Ground pitch and bank angles

Not sure. Maybe we're talking about to different things and I'm the one missing something. My suggestion was to utilize the SurfaceInfo's m_vNormal vector to extract the surface angle for a given latitude/longitude (In this context, "surface" = "terrain"). The normal vector is is...
by Mike Schroeter
Fri Feb 11, 2022 9:36 pm
Forum: Software Development Kit (SDK) Questions
Topic: Ground pitch and bank angles
Replies: 3
Views: 5694

Re: Ground pitch and bank angles

If you're familiar with using the IPdk interfaces, ISurfaceQueryManagerV400::QuerySurfaceInformation will return the SurfaceInfo data structure which contains the surface normal. The SurfaceQueryManager is a service provided by IPdk::QueryService.

Hope this helps,
Mike
by Mike Schroeter
Thu Jan 06, 2022 5:53 pm
Forum: Simulation Object Development Questions
Topic: iSimObject pointmasses
Replies: 1
Views: 4365

Re: iSimObject pointmasses

You can implement your mass property management any way you like within your solution. The IMassPropertiesV01 interface is not required, but can be used if you need to attach masses from another object. For example, the core P3D weapons system will use this interface to register weapon masses on you...
by Mike Schroeter
Fri Nov 26, 2021 7:24 pm
Forum: Software Development Kit (SDK) Questions
Topic: [RESOLVED] E_NOINTERFACE on QueryService(IID_IDISManagerV450)
Replies: 2
Views: 5265

Re: E_NOINTERFACE on QueryService(IID_IDISManagerV450)

I think you may be requesting the wrong service. Try SID_DISManager instead of SID_SimObjectManager.
by Mike Schroeter
Thu Jul 15, 2021 5:36 am
Forum: Simulation Object Development Questions
Topic: Is the BaseObject.Setposition's pitch rotation blocked beyond the -90~90 range?
Replies: 3
Views: 8161

Re: Is the BaseObject.Setposition's pitch rotation blocked beyond the -90~90 range?

This is the standard Euler angle convention we use. Pitch angle is defined as the angle above horizontal, which can only be a max of +/- 90 degrees. For example, an aircraft rotating over the top would go down (as you've noted), but bank angle would invert, e.g. 0 to 180 degrees. It would not make s...
by Mike Schroeter
Wed Jan 27, 2021 8:44 pm
Forum: Prepar3D Client Application Questions
Topic: Major Problem with Wind and Flight Model Behavior
Replies: 1
Views: 5528

Re: Major Problem with Wind and Flight Model Behavior

On which aircraft are you seeing this? You may simply be seeing a gauge incorrectly implemented, as this does work properly in Prepar3D. Try it in a classic stock aircraft such as the Mooney Bravo, or look at the Indicated Airspeed displayed in the Shift+Z information.

Hope this helps,
Mike
by Mike Schroeter
Wed Jan 06, 2021 4:42 pm
Forum: Other Support Questions
Topic: Turbocharged piston simulation Problem
Replies: 2
Views: 9845

Re: Turbocharged piston simulation Problem

Is your mixture set properly? Try turning on Auto Mixture under Options-Realism.

Hope this helps,
Mike
by Mike Schroeter
Mon Mar 09, 2020 10:41 pm
Forum: Simulation Object Development Questions
Topic: [RESOLVED] asm2air error - invalid character
Replies: 4
Views: 21945

Re: asm2air error - invalid character

What is your text editor encoding set to? Try ANSI or UTF-8.

Mike
by Mike Schroeter
Mon Mar 09, 2020 7:20 pm
Forum: Simulation Object Development Questions
Topic: [RESOLVED] asm2air error - invalid character
Replies: 4
Views: 21945

Re: asm2air error - invalid character

I suggest starting with compiling an exact copy of the pistonsample.asm to make sure your process is successful. Then add your changes one by one until you find the offending entry.