Page 1 of 1

Get Information about the aircraft's Gears

Posted: Sun Dec 30, 2018 7:17 pm
by redouane_bpw
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 :)

Re: Get Information about the aircraft's Gears

Posted: Thu Jan 03, 2019 12:35 pm
by BenBaron
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

Re: Get Information about the aircraft's Gears

Posted: Thu Jan 03, 2019 6:51 pm
by redouane_bpw
Can you plz tell me how to calculate it ? Using offsets
i used all my maths but, earth isn't Flat !

Re: Get Information about the aircraft's Gears

Posted: Thu Jan 03, 2019 8:09 pm
by janvaane
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.

Re: Get Information about the aircraft's Gears

Posted: Thu Jan 03, 2019 10:52 pm
by WarpD
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.

Re: Get Information about the aircraft's Gears

Posted: Fri Jan 04, 2019 4:02 am
by redouane_bpw
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

Re: Get Information about the aircraft's Gears

Posted: Fri Jan 04, 2019 3:33 pm
by WarpD
Google is a brilliant help... but here:

http://www.edwilliams.org/avform.htm#LL

Re: Get Information about the aircraft's Gears

Posted: Sat Jan 05, 2019 11:39 am
by BenBaron
...based on heading and distance to nose gear.
Is the x,y,z-offset of the NLG directly available via SimConnect?

Greets, Benny

Re: Get Information about the aircraft's Gears

Posted: Sat Jan 05, 2019 5:53 pm
by JB3DG
Nope. Always been one of those things that we have had to extrapolate.

Re: Get Information about the aircraft's Gears

Posted: Sun Jan 06, 2019 10:39 am
by obinder
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

Re: Get Information about the aircraft's Gears

Posted: Sun Jan 06, 2019 8:01 pm
by redouane_bpw
i think it's about to us too to get them !

Re: Get Information about the aircraft's Gears

Posted: Mon Jan 07, 2019 11:25 am
by obinder
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