• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v4 How to calculate the front wheel coordinates ?

Messages
579
Country
france
Hello
i want to get the coordinates of my front wheels ( aircraft ) using the simconnect and the p3d sdk, i know that we can get the center coordinates and i do it already.
i need to calculate the front wheel coordinates only ( maybe with the aircraft.cfg entries ...) for my addon
hope you help me guys and thnx in advance.
have a nice day :)
 
You can use either SimConnect or PDK to retrieve the fully qualified path to the .air file.
Once you have that, you have the path to the aircraft.cfg file. Just read the information from there.
 
is the whell position is the same as contact point ?
and how i can get the air file path with simconnect ?
thnx for reply :)
 
Yes, that's the entire point of the contact point definition is to define the wheel's position. From the SDK's description of [contact_points]: "You can configure and adjust the way aircraft reacts to different kinds of contact, including landing gear contact and articulation, braking, steering, and damage accrued through excessive speed."

A read of the SDK, particularly the SimConnect_SubscribeToSystemEvent API function, details how to request notification when and what .AIR file is loaded by the sim.

All of this information is available to one who takes the time to search.
 
sommetimes i hate reading C++ code cus I use C#
and when there is no more hope, i just start converting that c++ to C#, which is a very hard job to me
i'll reread that doc i think i missed it
thnx for reply guys :)
 
hey
the earth in the flight sim : is it a perfect ball or like the real earth
thnx in advance :)
 
There is so little difference in C/C++/C# I really don't understand the issue.

I believe it is a oblate spheroid adhering to w WGS84 data.
 
we have calculation problems everytime we get far from the Equator and when we reach the poles it become an other equation
so calculation of position and distances isn't easy
 
i have the aircraft position and heading
i have the distance between the front wheel and the center
i need to calculate the front wheel position
the earth isn't a sphere
so a lot of calculations
i did that yester day and i got a result but not 100% correct
i keep trying :(
 
From the SDK:

"In Flight Simulator, the earth is defined as an “oblate spheroid,” an ellipse rotated about its minor axis. In terms of shape, it's much like a sphere that is a little bit fat around the equator. In Flight Simulator, the earth has the following dimensions:
• Equatorial diameter=12756.27 km
• Equatorial circumference=40075.0 km
• Polar diameter=12734.62 km
• Polar circumference=40007.0 km"
 
i maybe found it :D
i still have one question as i can't test right now
in simobjects : are the contact points considered as attach points ?
cus i found a fonction that is SimConnect_RequestAttachPointData
that returns the coordinates :)
 
That does not exist in FSX and I'm not certain it is supposed to reference contact points at all. Attach points are defined for weapons placement and are only valid in the Professional Plus license level.
 
Why do you need to "calculate" the precise wheel point anyway? What is the purpose of knowing that?
 
:O
i used the taxi lights effect
but attach point are also effects :(
if that is for pro plus only i'm in a big problem

Why do you need to "calculate" the precise wheel point anyway? What is the purpose of knowing that?
well i'm working on an addon and once i get the solution for all my problems with the simconnect , i'll release some news
but for now , it won't see the light until i get it to work. :)
 
Fair enough, I only asked as knowing the "why" might provide some better clue to solving the problem.
 
I can't imagine the need to calculate the exact Euler coordinate of the nose gear.
 
my addon will also need the last point of the wings and the tail
but the front gear was the priority an now it works and i'll keep programming and deliver some news in the show room :)
 
yes so i got an idea that i attach an empty points in to the aircraft model
then with the simconnect i request thier positions
i tested with the front wheel and it worked :)
 
Back
Top