Jump to content
The simFlight Network Forums

VS on Landing.


Recommended Posts

Hi.

I’m trying to determine the Vertical Speed of the aircraft when it first touches the runway so I can determine how hard the landing was.

I can read the VS of the aircraft and also determine if it’s on the air or on the ground, so what I’m doing now is waiting for the ground flag to turn true to read the vertical speed, but I always get lower values that I’m supposed to.

If anybody has a better clue of doing this I will really appreciate a comment.

(P.S. I’m working with C#)

Regards.

Link to comment
Share on other sites

You probably need to keep track of the previous value you read. A sudden change from one update to the next will be your indication that the aircraft has hit the ground - even if the aircraft has bounced back up into the air before the Sim On Ground variable has become True.

Doug

Link to comment
Share on other sites

I’m trying to determine the Vertical Speed of the aircraft when it first touches the runway so I can determine how hard the landing was.

I can read the VS of the aircraft and also determine if it’s on the air or on the ground, so what I’m doing now is waiting for the ground flag to turn true to read the vertical speed, but I always get lower values that I’m supposed to.

I think it will be extremely difficiult to get an accurate figure, as the vertical speed will be changing a lot faster than you can reas it. The best you could hope to do from an external program is to match or better the FS frame rate in you read loops -- e.g. for 20 fps, read every 50 mSecs. However, of course, doing this you risk slowing down FS and thereby effectively altering what you are trying to read.

However, assuming that you wouldn't expect the touch-down V/S to be substantially different to the V/S a fraction of a second beforehand (based on the pilot's inability to affect it very quickly), I would imagine that you'd get close to the value you want by reading it at, say 250 mSec intervals, and taking the one BEFORE the ground flag gets set, or even the one BEFORE that (or averge the two?). I suspect this is what Flight Keeper does, as if anything it seems to reckon you hit a bit harder that the pilot things.

The only other solution would be for me to try to do it for you, inside FSUIPC, and provide a "touch-down" V/S by getting the last V/S I saw before the "on-ground" flag is seen. It still wouldn't be precise, but at least FSUIPC can guarantee to read it on every frame.

Regards

Pete

Link to comment
Share on other sites

The only other solution would be for me to try to do it for you, inside FSUIPC, and provide a "touch-down" V/S by getting the last V/S I saw before the "on-ground" flag is seen. It still wouldn't be precise, but at least FSUIPC can guarantee to read it on every frame.

I've done this now, in 3.522. Please check the Interim Versions announcement at the top of this Forum.

Regards,

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.