SimConnect Events for wheels up and wheels down?

I’ve been using SIM ON GROUND to determine if an aircraft goes wheels up or wheels down, but this is bulky and doesn’t always perform the way I expect it to.

Would it be possible for us to get some events like ALL WHEELS DOWN or ALL WHEELS UP to determine these states more objectively?

The vast majority of aircraft use A:GEAR HANDLE POSITION with K:GEAR_SET.

There are also several versions of A:GEAR POSITION, and A:GEAR TOTAL PCT EXTENDED
https://docs.flightsimulator.com/msfs2024/html/6_Programming_APIs/SimVars/Aircraft_SimVars/Aircraft_Brake_Landing_Gear_Variables.htm#GEAR_POSITION

Perhaps I was unclear. I don’t mean in respect to the gear position, but whether the landing gear is on the ground or not. Like state changes for that. No, what I needed (and y’all helped guide me there) is GEAR IS ON GROUND. Thank you!

1 Like

A:CONTACT POINT IS ON GROUND:index

Now that I’ve had coffee, I see that this is all SimVar stuff. That’s great, but I don’t want to have to manage all the SimVar delta (change) logic for everything I register. I’m trying to build it to be more flexible and dynamic.

Checking a few various sources, events are only for input scenarios, it seems. Like the flipping of a switch, not the inherent state change between “in the air” or “on the ground”.

As such, I’m just going back to the whole bit of listening for the SimVar and managing state change on my own in my code. Yuck.

It would be nice if there was just an easy way to say “Hey, SimConnect. Tell me when this event ID changes: …” and have hooks for it in the client library.

SimConnect_RequestDataOnSimObject accepts a flag called SIMCONNECT_DATA_REQUEST_FLAG_CHANGED which might give some of the functionality you’re looking for

1 Like

I gave it a shot but it doesn’t seem to be firing. I’ll keep playing with it though.

Thanks for the tip!

I imagine a future where MSFS would have common, strategic support for publishing and subscribing to rich events available across all the subsystems. The current state is so fragmented across XML, SimConnect, the html API family and the Controls Keybinds that a new clean general solution for event propagation might actually be possible.

1 Like