Elevation Correction with x-plane?

Any questions regarding JoinFS.
Post Reply
criley
Posts: 5
Joined: Wed Sep 26, 2018 2:41 pm

Elevation Correction with x-plane?

Post by criley »

I have been flying with P3D and FSX players and their elevation tends to be 30-50' off from where I am. I have tried to check and uncheck the box in settings as well as checking and unchecking "Runways follow Terrain" in x-plane to no avail. Has this ever worked between these sims? If so, is there a trick?
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Elevation Correction with x-plane?

Post by Peter »

I don't think that has worked correctly in X-Plane previously. It seems difficult to get the ground elevation beneath the other aircraft. Without that information it's not possible to correct for it. Prepar3D/FSX provides this information for all objects.

I think I can fix it for shared cockpit at least. I'm just looking at that now.

Peter
wing_man
Posts: 5
Joined: Wed Dec 05, 2018 10:19 pm

Re: Elevation Correction with x-plane?

Post by wing_man »

other services such as PilotEdge use some type of technique called "snap" or "snap-to-grid" (I'm sure Im butchering that name) which is something to keep the airplanes affixed to the runways. Might be worth checking into.

EDIT: I knew I butchered the technique that is used, it is called "Clamping" and perhaps that is their own term for it and not an industry term.
Daikan
Posts: 11
Joined: Sun Dec 16, 2018 11:15 pm

Re: Elevation Correction with x-plane?

Post by Daikan »

Peter wrote:It seems difficult to get the ground elevation beneath the other aircraft. Without that information it's not possible to correct for it. Prepar3D/FSX provides this information for all objects.
You can probe the terrain using the SDK: https://developer.x-plane.com/sdk/XPLMProbeTerrainXYZ/

For example the IVAO client (x-Ivap) uses this for clamping. The source code for correcting aircraft position is available here:
https://sourceforge.net/p/x-ivap/code/H ... r.cpp#l612
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Elevation Correction with x-plane?

Post by Peter »

Daikan wrote: You can probe the terrain using the SDK: https://developer.x-plane.com/sdk/XPLMProbeTerrainXYZ
Obviously didn’t look hard enough. That’s perfect, just made the job a lot easier. Thanks.

Peter
skelsey
Posts: 26
Joined: Wed Apr 26, 2017 7:51 pm

Re: Elevation Correction with x-plane?

Post by skelsey »

Hi Peter,

FYI had an odd experience with elevation correction this evening - I was running FSX-SE with test version .20 and the other pilot was running P3Dv4 with .18

On the ground when the other pilot had the controls there was a lot of jittering on my side and my aircraft was rolling when going round corners on the ground etc (a common problem I have noticed when connecting to others using P3D).

I took the controls and flew the takeoff. All fine until I handed control back to the other pilot at which point my aeroplane immediately "snapped" to the ground - whilst my student was flying quite happily at 3000ft!

I turned off elevation correction in my settings and all was well again. Interestingly when we taxied back in the synchronisation on the ground was much improved on my side with no jittering and the aircraft staying level during turns, so it seems like there was something odd going on with the elevation correction!

The fix from my point of view is obviously to turn it off, but not sure if there was something there you would want to investigate from your point of view!

Cheers,

Simon
User avatar
Peter
Site Admin
Posts: 2281
Joined: Fri Sep 23, 2016 8:51 am
Contact:

Re: Elevation Correction with x-plane?

Post by Peter »

Hi Simon,

As mentioned in the change log, you both need to be on at least 1.4.20 otherwise you'll likely see some odd things happening.

Peter
skelsey
Posts: 26
Joined: Wed Apr 26, 2017 7:51 pm

Re: Elevation Correction with x-plane?

Post by skelsey »

:oops: guilty, sorry!

Will try with .20 on both sides and report back!
Post Reply