Get Information about the aircraft's Gears

redouane_bpw
Posts: 24
Joined: Sat Dec 01, 2018 1:29 pm

Get Information about the aircraft's Gears

Postby redouane_bpw » Sun Dec 30, 2018 7:17 pm

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 :)

BenBaron
Posts: 52
Joined: Fri Jan 16, 2015 7:51 am

Re: Get Information about the aircraft's Gears

Postby BenBaron » Thu Jan 03, 2019 12:35 pm

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

redouane_bpw
Posts: 24
Joined: Sat Dec 01, 2018 1:29 pm

Re: Get Information about the aircraft's Gears

Postby redouane_bpw » Thu Jan 03, 2019 6:51 pm

Can you plz tell me how to calculate it ? Using offsets
i used all my maths but, earth isn't Flat !

User avatar
janvaane
Posts: 904
Joined: Mon Apr 23, 2012 11:17 am
Contact:

Re: Get Information about the aircraft's Gears

Postby janvaane » Thu Jan 03, 2019 8:09 pm

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.
|KLM149 | i7-8700k-16GB | Radeon RX580 8GB| flightsimeindhoven.com |

User avatar
WarpD
Posts: 1407
Joined: Mon Feb 14, 2011 5:29 am

Re: Get Information about the aircraft's Gears

Postby WarpD » Thu Jan 03, 2019 10:52 pm

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.
Ed Wilson
Senior Developer
Mindstar Aviation

redouane_bpw
Posts: 24
Joined: Sat Dec 01, 2018 1:29 pm

Re: Get Information about the aircraft's Gears

Postby redouane_bpw » Fri Jan 04, 2019 4:02 am

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.
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

User avatar
WarpD
Posts: 1407
Joined: Mon Feb 14, 2011 5:29 am

Re: Get Information about the aircraft's Gears

Postby WarpD » Fri Jan 04, 2019 3:33 pm

Google is a brilliant help... but here:

http://www.edwilliams.org/avform.htm#LL
Ed Wilson
Senior Developer
Mindstar Aviation

BenBaron
Posts: 52
Joined: Fri Jan 16, 2015 7:51 am

Re: Get Information about the aircraft's Gears

Postby BenBaron » Sat Jan 05, 2019 11:39 am

...based on heading and distance to nose gear.
Is the x,y,z-offset of the NLG directly available via SimConnect?

Greets, Benny

JB3DG
Posts: 325
Joined: Mon Jan 09, 2012 6:44 pm

Re: Get Information about the aircraft's Gears

Postby JB3DG » Sat Jan 05, 2019 5:53 pm

Nope. Always been one of those things that we have had to extrapolate.
Jonathan Bleeker
Milviz systems dev

Formerly known as Naruto-kun

obinder
Posts: 93
Joined: Sun Jun 08, 2014 9:43 am

Re: Get Information about the aircraft's Gears

Postby obinder » Sun Jan 06, 2019 10:39 am

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

redouane_bpw
Posts: 24
Joined: Sat Dec 01, 2018 1:29 pm

Re: Get Information about the aircraft's Gears

Postby redouane_bpw » Sun Jan 06, 2019 8:01 pm

i think it's about to us too to get them !

obinder
Posts: 93
Joined: Sun Jun 08, 2014 9:43 am

Re: Get Information about the aircraft's Gears

Postby obinder » Mon Jan 07, 2019 11:25 am

i think it's about to us too to get them !
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


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 3 guests