Get Information about the aircraft's Gears
-
- Posts: 31
- Joined: Sat Dec 01, 2018 1:29 pm
Get Information about the aircraft's Gears
Hello
i'm making an addon using the simconnect and I need help !
i know how to request the user aircraft position but i need to request the front gear (wheel ) position too
in the SDK this variable doesn't exist and i tried many Maths solutions to calculate the position of the front gear But no result :( !
i tried by considering P3D wolrd as 2D falt groud but also no result !
hope some one can help me getting the front gear position in coordinates LAT /LON ( not meters PLZ )
and thnx in advance :)
i'm making an addon using the simconnect and I need help !
i know how to request the user aircraft position but i need to request the front gear (wheel ) position too
in the SDK this variable doesn't exist and i tried many Maths solutions to calculate the position of the front gear But no result :( !
i tried by considering P3D wolrd as 2D falt groud but also no result !
hope some one can help me getting the front gear position in coordinates LAT /LON ( not meters PLZ )
and thnx in advance :)
Re: Get Information about the aircraft's Gears
Hi,
just a quick one: I don't know how to do this via SimConnect, or if this was even possible. When I needed this information, I used FSUIPC to get the path of the currently loaded aircraft.cfg. Within you have the contact_points section where you can query the x, y, z-offset of the front gear. From there, it is easy to calculate it's lat and lon from the aircraft position.
This was the only thing comming to my mind.
Greets, Benny
just a quick one: I don't know how to do this via SimConnect, or if this was even possible. When I needed this information, I used FSUIPC to get the path of the currently loaded aircraft.cfg. Within you have the contact_points section where you can query the x, y, z-offset of the front gear. From there, it is easy to calculate it's lat and lon from the aircraft position.
This was the only thing comming to my mind.
Greets, Benny
-
- Posts: 31
- Joined: Sat Dec 01, 2018 1:29 pm
Re: Get Information about the aircraft's Gears
Can you plz tell me how to calculate it ? Using offsets
i used all my maths but, earth isn't Flat !
i used all my maths but, earth isn't Flat !
Re: Get Information about the aircraft's Gears
It is written in the FSUIPC manuals in C:\P3D4\Modules\FSUIPC Documents\
Use an Offset status pdf document and search with the keyword "position" it will give you the INITIAL POSITION
Offset 0560 and 0568 will give you the LAT and LON
Hope that this will give you some directions.
Use an Offset status pdf document and search with the keyword "position" it will give you the INITIAL POSITION
Offset 0560 and 0568 will give you the LAT and LON
Hope that this will give you some directions.
|KLM149 | i7-8700k-16GB | Radeon RX580 8GB| flightsimeindhoven.com |
Re: Get Information about the aircraft's Gears
1. No need to use FSUIPC to obtain lat/lon of aircraft. None.
2. To calculate lat/lon of gear you simply need to use a great circle projection from the aircraft's lat/lon based on heading and distance to nose gear.
2. To calculate lat/lon of gear you simply need to use a great circle projection from the aircraft's lat/lon based on heading and distance to nose gear.
Ed Wilson
Senior Developer
Mindstar Aviation
Senior Developer
Mindstar Aviation
-
- Posts: 31
- Joined: Sat Dec 01, 2018 1:29 pm
Re: Get Information about the aircraft's Gears
I asked the same question in fsdev
and still no answer how to calculate that
you know i got a solution already but i need to find out how to calculate without my attachment solution
Re: Get Information about the aircraft's Gears
Ed Wilson
Senior Developer
Mindstar Aviation
Senior Developer
Mindstar Aviation
Re: Get Information about the aircraft's Gears
Nope. Always been one of those things that we have had to extrapolate.
Jonathan Bleeker
Milviz systems dev
Formerly known as Naruto-kun
Milviz systems dev
Formerly known as Naruto-kun
Re: Get Information about the aircraft's Gears
Hi @ll,
what about "PUSHBACK CONTACTX, Y, Z"?
If an aircraft is built to spec and if it has a front gear, wouldn't those simulator variables give you the correct location?
Best regards
Oliver Binder
Lorby-SI
what about "PUSHBACK CONTACTX, Y, Z"?
If an aircraft is built to spec and if it has a front gear, wouldn't those simulator variables give you the correct location?
Best regards
Oliver Binder
Lorby-SI
-
- Posts: 31
- Joined: Sat Dec 01, 2018 1:29 pm
Re: Get Information about the aircraft's Gears
i think it's about to us too to get them !
Re: Get Information about the aircraft's Gears
Sorry, but I don't understand.
The simulator variables mentioned above work just fine for me. They give me the offset from the datum reference point to the location on the 3D model where the tug attaches, which, with an aircraft that actually has a front gear, should be pretty much the exact same spot where the front gear itself is.
The lat/lon you get when querying the aircraft position are those of the datum reference point, so a simple calculation using those "PUSHBACK OFFSET" values results in lat/lon of the front gear. No magic required.
Best regards
Oliver Binder
Lorby-SI