Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Detect landing and takeoff C#

Featured Replies

Hi guys.

 

I've been a long time lurker of this forum, and have gotten a lot of valuable info. But now I've gotten to the point where I need som help.

I'm trying to build a small C# / SimConnect application to monitor a flight. I've have succesfully created the connection, added event listeners and read variables, but I can for the love of god not find an event that fires once the user airplane takes off or land. I've searched the documentation and a number of forums, but haven't found anything. Can anyone help?

 

I've thought about reading the variable "alt above ground", and read it at invervals (very short intervals below 1000 ft), and then implement my action once i reads zero. It would definitely be a way to go, but it would require a lot more coding.

 

Hoping you guys can help?

 

Cheers

How about using vertical speed in conjunction with altitude? For example, when vertical speed is 0 FPM for, say, 5 seconds and the aircraft is less than 500 feet AGL? Since it's very unlikely for an aircraft's vertical speed to go to 0 FPM at any point prior to touchdown under 500 feet AGL - except if the aircraft is going around, hence the need for a time delay on when to say the aircraft has landed.

Luke Harvest

  • Author

That's not a bad idea. I think I'll try it out.... Thanks for your input Noble.

So it is not just me that can't find an event for detecting landing/takeoff?

According to the FSX SDK the SIM ON GROUND flag should be available in Simconnect. Isn't it, or isn't it what I think it is?

Gerry Howard

  • Author

I don't know why I didn't see the SIM ON GROUND flag the first 100 times I looked in the SDK. But it is there, and it works as expected. Thanks for all the help.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.